/**
 * Cookie Consent Banner Styles
 * Matches the site's dark theme with cyan accent
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #001517 0%, #002428 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

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

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

.cookie-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
}

.cookie-icon {
    font-size: 2.5rem;
    color: #00FFFF;
    animation: cookieBounce 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes cookieBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.cookie-message h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.cookie-learn-more {
    color: #00FFFF;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cookie-learn-more:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #001517;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #00CCCC 0%, #00AAAA 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.cookie-btn-secondary {
    background: rgba(0, 255, 255, 0.1);
    color: #00FFFF;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00FFFF;
    transform: translateY(-2px);
}

.cookie-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

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

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

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

.cookie-modal-content {
    position: relative;
    background: linear-gradient(135deg, #001517 0%, #002428 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 255, 255, 0.1);
}

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

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.cookie-modal-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-modal-header h3 i {
    color: #00FFFF;
}

.cookie-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Cookie Category */
.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(0, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-info h4 i {
    color: #00FFFF;
    font-size: 0.9rem;
}

.cookie-category-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle.always-on {
    display: flex;
    align-items: center;
}

.cookie-toggle.always-on .toggle-label {
    background: rgba(0, 255, 255, 0.15);
    color: #00FFFF;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cookie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    border-color: #00FFFF;
}

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

.cookie-toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.3);
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.25rem 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }
    
    .cookie-consent-text {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .cookie-icon {
        font-size: 2rem;
    }
    
    .cookie-message h4 {
        font-size: 1rem;
    }
    
    .cookie-message p {
        font-size: 0.9rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-modal-content {
        max-height: 85vh;
        margin: 1rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cookie-toggle-switch,
    .cookie-toggle.always-on {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-modal-header {
        padding: 1rem;
    }
    
    .cookie-modal-body {
        padding: 1rem;
    }
    
    .cookie-modal-footer {
        padding: 1rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
}
