/**
 * Cookie Consent Banner Styles
 * GDPR-compliant design
 */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(450px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.cookie-banner.cookie-banner-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Overlay - Not used anymore */
.cookie-banner-overlay {
    display: none;
}

/* Banner Content */
.cookie-banner-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 360px;
    width: 360px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

@keyframes slideInRight {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header */
.cookie-banner-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

/* Body */
.cookie-banner-body {
    padding: 18px 20px;
}

.cookie-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.cookie-category-header {
    padding: 18px 20px;
    background: #f9fafb;
    cursor: default;
}

.cookie-category-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-category-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-category-icon {
    color: #2196F3;
    font-size: 1.1rem;
}

.cookie-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    min-width: 150px;
}

.cookie-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-badge-required {
    background: #e3f2fd;
    color: #2196F3;
}

.cookie-category-description {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Cookie Details */
.cookie-details {
    padding: 18px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.cookie-item {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
}

.cookie-item:last-child {
    margin-bottom: 0;
}

.cookie-item strong {
    color: #1f2937;
    font-weight: 600;
}

/* Footer */
.cookie-banner-footer {
    padding: 15px 20px 18px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-link {
    font-size: 0.8125rem;
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #1976D2;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Buttons - Only within cookie banner */
.cookie-banner .btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-banner .btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.cookie-banner .btn-primary:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.cookie-banner .btn-primary:active {
    transform: translateY(0);
}

/* Cookie Settings Button - REMOVED (not needed) */
.cookie-settings-btn {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        padding: 0;
    }

    .cookie-banner-content {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .cookie-banner-header {
        padding: 18px 18px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cookie-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .cookie-title {
        font-size: 1.05rem;
    }

    .cookie-banner-body {
        padding: 15px 18px;
    }

    .cookie-banner-footer {
        padding: 12px 18px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-links {
        justify-content: center;
    }

    .cookie-actions {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-category-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Smooth Scrolling for Banner Content */
.cookie-banner-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-banner-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.cookie-banner-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cookie-banner-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for Settings Button */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.cookie-settings-btn.pulse {
    animation: pulse 2s ease-in-out infinite;
}
