/* styles-modals.css - Modal styles */

/* Beta Modal */
.beta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beta-modal-overlay.show {
    opacity: 1;
}

.beta-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.beta-modal-overlay.show .beta-modal {
    transform: scale(1);
}


/* Legal Modal */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal-overlay.show {
    opacity: 1;
}

.legal-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.legal-modal-overlay.show .legal-modal {
    transform: translateY(0);
}

.legal-modal-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.legal-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.legal-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.legal-modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.legal-modal-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.legal-modal-body {
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: none;
}

.legal-modal-body::-webkit-scrollbar { display: none; }

.legal-section {
    margin-bottom: 24px;
}

.legal-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.legal-section-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}

.legal-section-text a {
    color: var(--accent-light);
    text-decoration: underline;
}

.legal-section-text a:hover {
    color: var(--accent);
}

.legal-last-updated {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.beta-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beta-modal-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-light);
}

.beta-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.beta-modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.beta-modal-close {
    padding: 12px 32px;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.beta-modal-close:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero-content { flex-direction: column; text-align: center; padding-top: 100px; }
}


/* Cookie Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cookie-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-overlay.hide {
    opacity: 0;
    pointer-events: none;
}


/* Decline Reprompt Modal */
.decline-reprompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
}

.decline-reprompt-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.decline-reprompt-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 32px 28px;
    box-sizing: border-box;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.decline-reprompt-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.decline-reprompt-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent);
}

.decline-reprompt-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.decline-reprompt-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.decline-reprompt-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.decline-reprompt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.decline-reprompt-btn {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.decline-reprompt-btn.decline-confirmed {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.decline-reprompt-btn.decline-confirmed:hover {
    background: var(--hover-bg);
    border-color: var(--text-muted);
}

.decline-reprompt-btn.accept-instead {
    background: var(--accent);
    color: var(--bg-primary);
}

.decline-reprompt-btn.accept-instead:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent.hide {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-consent-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-description a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-consent-description a:hover {
    text-decoration: none;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-consent-btn.accept {
    background: var(--accent);
    color: var(--bg-primary);
}

.cookie-consent-btn.accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-consent-btn.decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-consent-btn.decline:hover {
    background: var(--hover-bg);
    border-color: var(--text-muted);
}

.cookie-consent-btn.settings {
    background: transparent;
    color: var(--accent);
    padding: 10px 12px;
}

.cookie-consent-btn.settings:hover {
    background: var(--accent-glow);
}


/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 20px;
    overflow: hidden;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: clip;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-settings-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cookie-settings-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookie-option {
    padding: 16px 0;
    border-bottom: none;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-option-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-option-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-option-toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-option-toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-option-toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.cookie-option-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-option-toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-option-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.cookie-settings-actions .cookie-consent-btn {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 16px 12px;
        bottom: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-consent-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .cookie-consent-description {
        font-size: 13px;
        line-height: 1.4;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cookie-consent-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 80px;
        white-space: nowrap;
    }

    .cookie-consent-btn.settings {
        padding: 10px 12px;
        flex: 0 0 auto;
    }

    
    .cookie-settings-modal {
        padding: 0;
        align-items: flex-end;
    }

    .cookie-settings-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
        margin: 0;
        overflow-x: clip;
    	box-sizing: border-box;
    }

    .cookie-settings-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .cookie-settings-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cookie-option {
        padding: 14px 0;
    }

    .cookie-option-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cookie-option-title {
        font-size: 15px;
        flex: 1 1 auto;
    }

    .cookie-option-description {
        font-size: 12px;
        line-height: 1.4;
        margin-top: 4px;
    }

    .cookie-settings-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        margin-left: 0;
        margin-right: 0;
        padding-top: 20px;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .cookie-settings-actions .cookie-consent-btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 600;
        min-height: 48px;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .cookie-consent {
        padding: 12px 8px;
    }

    .cookie-consent-title {
        font-size: 14px;
    }

    .cookie-consent-description {
        font-size: 12px;
    }

    .cookie-consent-actions {
        gap: 6px;
    }

    .cookie-consent-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
    }

    .cookie-settings-modal-content {
        padding: 20px 16px;
    }

    .cookie-option-title {
        font-size: 14px;
    }

    .cookie-option-description {
        font-size: 11px;
    }

    
    .decline-reprompt-modal-content {
        padding: 24px 20px;
    }

    .decline-reprompt-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }

    .decline-reprompt-icon svg {
        width: 26px;
        height: 26px;
    }

    .decline-reprompt-title {
        font-size: 18px;
    }

    .decline-reprompt-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .decline-reprompt-actions {
        flex-direction: column-reverse;
    }

    .decline-reprompt-btn {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .decline-reprompt-modal-content {
        max-width: 420px;
        padding: 28px 24px;
    }

    .decline-reprompt-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .scroll-nav { display: none; }
}

/* Scroll Nav */
.scroll-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scroll-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-nav-btn:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    background: var(--surface-container-high);
}

.scroll-nav-btn.active {
    border-color: var(--accent-light);
    background: var(--active-bg);
    color: var(--accent-light);
}

.scroll-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.scroll-nav-btn-label {
    display: none;
}
