/* ============================================
   AJAIA Cookie Consent Banner
   Corner Widget Design - Matches Landing Page Theme
   ============================================ */

/* === Cookie Banner Container === */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.1);
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        sans-serif;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-consent-banner.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner[hidden] {
    display: none;
}

/* === Banner Header === */
.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.cookie-banner-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
    font-size: 18px;
    color: white;
}

.cookie-banner-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.cookie-banner-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 2px 0 0;
}

/* === Banner Body === */
.cookie-banner-body {
    padding: 16px 20px;
}

.cookie-banner-text {
    font-size: 13px;
    line-height: 1.6;
    color: #b0b8c4;
    margin: 0 0 16px;
}

.cookie-banner-text a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-banner-text a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* === Cookie Categories === */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.cookie-category:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    color: white;
}

.cookie-category-icon.essential {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.cookie-category-icon.functional {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.cookie-category-icon.analytics {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.cookie-category-label {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.cookie-category-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

/* === Toggle Switch === */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 24px;
    transition: all 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
}

.cookie-toggle input:checked+.cookie-toggle-slider::before {
    transform: translateX(20px);
}

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

.cookie-toggle input:disabled+.cookie-toggle-slider::before {
    background: #10b981;
}

/* === GPC Notice === */
.gpc-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    margin-bottom: 16px;
}

.gpc-notice i {
    color: #a78bfa;
    font-size: 14px;
}

.gpc-notice span {
    font-size: 12px;
    color: #a78bfa;
    line-height: 1.4;
}

/* === Banner Actions === */
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.cookie-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: #b0b8c4;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cookie-btn-accept {
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.cookie-btn-save {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
    color: white;
}

.cookie-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* === Responsive === */
@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }

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

    .cookie-btn {
        width: 100%;
    }
}

/* === Animation for minimize/settings toggle === */
.cookie-banner-settings {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cookie-banner-settings.expanded {
    max-height: 300px;
}