/**
 * Site Notice Banner & User Preferences Modal Styles
 */

/* Use site's primary color variable from the selected theme */

/* Banner Principal */
.site-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.site-notice.show {
    transform: translateY(0);
}

.site-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-notice-text h3 {
    margin: 0 0 0.5rem 0;
    color: #202124;
    font-size: 1.1rem;
    font-weight: 600;
}

.site-notice-text p {
    margin: 0;
    color: #5f6368;
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-notice-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.site-notice-text a:hover {
    text-decoration: underline;
}

.site-notice-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.notice-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.notice-btn-primary {
    background: var(--primary-color);
    color: white;
}

.notice-btn-primary:hover {
    filter: brightness(0.9);
}

.notice-btn-secondary {
    background: transparent;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.notice-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #5f6368;
}

/* User Preferences Modal */
.user-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.user-preferences-modal.show {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.user-preferences-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dfe1e5;
}

.modal-header h3 {
    margin: 0;
    color: #202124;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0 0 1rem 0;
    color: #5f6368;
    line-height: 1.6;
}

.modal-body strong {
    color: #202124;
}

.modal-body ul {
    margin: 0.5rem 0 1rem 0;
    padding-left: 2rem;
}

.modal-body li {
    color: #5f6368;
    margin: 0.25rem 0;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dfe1e5;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primary {
    background: var(--primary-color);
    color: white;
}

.modal-btn-primary:hover {
    filter: brightness(0.9);
}

.modal-btn-secondary {
    background: transparent;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.modal-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #5f6368;
}

/* Responsive */
@media (max-width: 768px) {
    .site-notice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .site-notice-buttons {
        width: 100%;
        flex-direction: column;
    }

    .notice-btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}
