/**
 * Cookie Consent Styles
 * GDPR Compliant Cookie Consent System
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0B1315;
    border-top: 2px solid #FFDE9F;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.cookie-consent-icon {
    flex-shrink: 0;
    text-align: center;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-family: 'Elsie', serif;
    font-size: 24px;
    font-weight: 400;
    color: #FFDE9F;
    margin: 0 0 10px 0;
}

.cookie-consent-description {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.cookie-consent-links {
    margin-top: 10px;
}

.cookie-policy-link {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    color: #FFDE9F;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #FFFFFF;
}

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

.cookie-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-essential {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #99A9AD;
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFDE9F;
    color: #FFDE9F;
}

.cookie-btn-accept {
    background: #FFDE9F;
    color: #0B1315;
}

.cookie-btn-accept:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 222, 159, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #99A9AD;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFDE9F;
    color: #FFDE9F;
}

.cookie-settings-link {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    color: #FFDE9F;
    background: transparent;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 12px 24px;
    transition: color 0.3s ease;
}

.cookie-settings-link:hover {
    color: #FFFFFF;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    pointer-events: all;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 19, 21, 0.9);
    backdrop-filter: blur(5px);
}

.cookie-settings-content {
    position: relative;
    background: #0B1315;
    border: 2px solid #FFDE9F;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 222, 159, 0.2);
}

.cookie-settings-header h2 {
    font-family: 'Elsie', serif;
    font-size: 28px;
    font-weight: 400;
    color: #FFDE9F;
    margin: 0;
}

.cookie-settings-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
}

.cookie-settings-close:hover {
    color: #FFDE9F;
}

.cookie-settings-body {
    margin-bottom: 30px;
}

.cookie-settings-intro {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 222, 159, 0.05);
    border: 1px solid rgba(255, 222, 159, 0.1);
    border-radius: 10px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cookie-category-info h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #FFDE9F;
    margin: 0 0 5px 0;
}

.cookie-category-info p {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #99A9AD;
    margin: 0;
}

.cookie-category-description {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #99A9AD;
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #FFDE9F;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #FFDE9F;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 222, 159, 0.2);
}

/* Settings Button in Footer */
.cookie-consent-settings-btn {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    background: #0B1315;
    border: 1px solid #FFDE9F;
    color: #FFDE9F;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cookie-consent-settings-btn-bottom-right {
    left: auto !important;
    right: 20px !important;
}

.cookie-consent-settings-btn-bottom-left {
    right: auto !important;
    left: 20px !important;
}

.cookie-consent-settings-btn-top-right {
    bottom: auto;
    top: 20px;
    right: 20px;
}

.cookie-consent-settings-btn-top-left {
    bottom: auto;
    top: 20px;
    right: auto;
    left: 20px;
}

.cookie-consent-settings-btn:hover {
    background: #FFDE9F;
    color: #0B1315;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 222, 159, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-settings-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }

    .cookie-settings-header h2 {
        font-size: 24px;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }

    .cookie-consent-settings-btn {
        bottom: 10px !important;
        left: 10px !important;
        right: auto !important;
        padding: 8px 16px;
        font-size: 11px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }

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

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

    .cookie-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Accessibility */
.cookie-consent-banner:focus,
.cookie-settings-modal:focus {
    outline: 2px solid #FFDE9F;
    outline-offset: 2px;
}

.cookie-btn:focus-visible,
.cookie-settings-close:focus-visible {
    outline: 2px solid #FFDE9F;
    outline-offset: 2px;
}

/* Animation for settings button */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner.show {
    animation: slideInUp 0.3s ease;
}

