/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border-top: 3px solid #3498db;
    animation: slideUpIn 0.4s ease-out;
    display: none; /* Initially hidden */
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.cookie-banner-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-link {
    color: #3498db !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #5dade2 !important;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cookie-banner .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-banner .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.cookie-banner .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.cookie-banner .btn-secondary {
    background-color: #95a5a6;
    border-color: #95a5a6;
}

.cookie-banner .btn-secondary:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    transform: translateY(-1px);
}

.cookie-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    transform: translateY(-1px);
}

/* Cookie Settings Modal Styles */
.cookie-category {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.cookie-category:hover {
    background-color: #f1f3f4;
}

.cookie-category h6 {
    font-weight: 600;
    color: #2c3e50;
}

.cookie-category .form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.cookie-category .form-check-input:focus {
    border-color: #85c1e9;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

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

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

    .cookie-banner .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .cookie-banner-title {
        font-size: 1rem;
    }

    .cookie-banner-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.8rem 0;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner .btn {
        width: 100%;
        margin: 0.2rem 0;
    }
}

/* Cookie preferences link in footer */
.cookie-preferences-link {
    color: #6c757d !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.cookie-preferences-link:hover {
    color: #495057 !important;
    text-decoration: underline;
}

/* Animation for banner hiding */
.cookie-banner.hide {
    animation: slideDownOut 0.4s ease-in forwards;
}

@keyframes slideDownOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Modal enhancements */
#cookieSettingsModal .modal-header,
#cookiePolicyModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#cookieSettingsModal .modal-title,
#cookiePolicyModal .modal-title {
    color: #2c3e50;
    font-weight: 600;
}

/* Cookie icon animation */
.cookie-banner-title i {
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(10deg);
    }
}
