/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1.5rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text p {
    margin: 0;
    color: #e0e0e0;
}

.cookie-banner-text a {
    color: white;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #ccc;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn.accept {
    background: white;
    color: #000;
    border-color: white;
}

.cookie-btn.accept:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

.cookie-btn.settings {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn.settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Cookie settings modal */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-settings.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
}

.cookie-settings h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 1rem;
    text-align: center;
}

.cookie-settings p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.cookie-category p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-toggle label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.cookie-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-switch.active {
    background: #000;
}

.cookie-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-switch.active::after {
    transform: translateX(26px);
}

.cookie-settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.cookie-settings-btn {
    padding: 0.75rem 2rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-settings-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.cookie-settings-btn.save {
    background: #000;
    color: white;
    border-color: #000;
}

.cookie-settings-btn.save:hover {
    background: #333;
    border-color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        display: block !important;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 250px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .cookie-settings {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-settings-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* Ensure banner is always visible on mobile */
@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .cookie-banner-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .cookie-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Ensure banner visibility on all devices */
.cookie-banner {
    display: block !important;
    visibility: visible !important;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cookie-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .cookie-btn {
        min-height: 44px; /* iOS touch target minimum */
        touch-action: manipulation;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.show {
    animation: slideUp 0.3s ease;
}
