/* 
 * Beta Preview Notice Styling
 * Styles for the beta preview notice and modal
 */

.beta-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.beta-notice:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.beta-notice-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.beta-notice:hover .beta-notice-arrow {
    transform: translateX(3px);
}

/* Modal base styling - prevent background scrolling */
.beta-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
    overflow: hidden; /* Prevent background scrolling */
}

/* Modal content container */
.beta-modal .modal-content {
    position: relative;
    max-width: 700px;
    max-height: 90vh; /* Limit height to 90% of viewport */
    margin: 5vh auto; /* Center vertically with space at top and bottom */
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow for rounded corners */
}

.beta-modal .modal-header {
    background-color: var(--primary-dark);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.beta-modal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.beta-modal .modal-header .close {
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beta-modal .modal-header .close:hover {
    transform: scale(1.2);
}

.beta-modal .modal-body {
    padding: 20px;
    overflow-y: auto; /* Make the body scrollable */
    max-height: calc(90vh - 60px); /* Account for header height */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) #f1f1f1;
}

.beta-icon-container {
    text-align: center;
    margin-bottom: 20px;
}

.beta-icon {
    font-size: 48px;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 20px;
    border-radius: 50%;
}

.beta-disclaimer {
    font-size: 18px;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding: 10px;
    background-color: var(--primary-light);
    border-radius: 8px;
}

.beta-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.beta-section:last-child {
    border-bottom: none;
}

.beta-section h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.beta-section h4 i {
    color: var(--primary-color);
}

.beta-list {
    margin-left: 25px;
    margin-top: 10px;
}

.beta-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

.beta-footer {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
}

.compliance-notice {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.beta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .beta-notice {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .beta-modal .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .beta-disclaimer {
        font-size: 16px;
    }
}
