/* StudyWithLuna Cookie Consent Styles */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid #FFD700;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.cookie-consent-content {
    color: white;
}

.cookie-consent-header {
    margin-bottom: 25px;
}

.cookie-consent-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 10px;
}

.cookie-consent-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.cookie-info strong {
    display: block;
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 5px;
}

.cookie-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 26px;
}

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

input:checked + .slider {
    background-color: #FFD700;
}

input:focus + .slider {
    box-shadow: 0 0 1px #FFD700;
}

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

input:disabled + .slider {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Cookie action buttons */
.cookie-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.cookie-btn-accept-all {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
}

.cookie-btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.cookie-btn-accept-selected {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.cookie-btn-accept-selected:hover {
    background: rgba(255, 215, 0, 0.1);
}

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

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-footer a {
    color: #FFD700;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.cookie-footer a:hover {
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 20px;
    }
    
    .cookie-consent-header h3 {
        font-size: 20px;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #cookie-consent-banner {
        transition: none;
    }
    
    .slider {
        transition: none;
    }
    
    .slider:before {
        transition: none;
    }
}