/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

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

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

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-1px);
}

.btn-tertiary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-tertiary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-1px);
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

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

.cookie-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-modal-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.cookie-categories {
    margin-bottom: 2rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cookie-category input[type="checkbox"] {
    margin-top: 0.25rem;
    transform: scale(1.2);
    accent-color: #3498db;
}

.cookie-category input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-left: 2rem;
    margin-bottom: 0;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

/* Cookie Settings Link */
.cookie-settings-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-settings-link:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    color: white;
}

/* Cookie consent indicators */
.cookie-status {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 9998;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.cookie-status.show {
    opacity: 1;
    transform: translateX(0);
}

.cookie-status.analytics {
    background: rgba(52, 152, 219, 0.9);
}

.cookie-status.marketing {
    background: rgba(230, 126, 34, 0.9);
}

/* Loading state for cookie operations */
.cookie-loading {
    position: relative;
    overflow: hidden;
}

.cookie-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-buttons button {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 10px;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-category p {
        margin-left: 1.5rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons button {
        width: 100%;
    }
    
    .cookie-settings-link {
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .cookie-status {
        top: 80px;
        right: 10px;
        left: 10px;
        text-align: center;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content h3 {
        font-size: 1.1rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-modal-content {
        padding: 1rem;
        max-height: 90vh;
    }
    
    .cookie-category {
        padding: 0.75rem;
    }
    
    .cookie-category label {
        font-size: 0.9rem;
    }
    
    .cookie-category p {
        font-size: 0.8rem;
        margin-left: 1.25rem;
    }
}

/* High contrast and accessibility improvements */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000;
        border-top: 3px solid #fff;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .cookie-modal-content {
        border: 3px solid #000;
    }
    
    .cookie-category {
        border-left-color: #000;
        border: 2px solid #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal-content,
    .cookie-loading::after {
        animation: none;
        transition: none;
    }
    
    .cookie-banner.show {
        transform: none;
    }
    
    @keyframes modalSlideIn {
        from, to {
            opacity: 1;
            transform: none;
        }
    }
}

/* Focus management for accessibility */
.cookie-modal:focus-within .cookie-modal-content {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.cookie-category input[type="checkbox"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles - hide cookie elements */
@media print {
    .cookie-banner,
    .cookie-modal,
    .cookie-settings-link,
    .cookie-status {
        display: none !important;
    }
}
