/* ============================================
   Aesthetic Cookie Consent Hub
   ============================================ */

.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(0px);
}

.cookie-consent-modal.show {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(12px);
}

.cookie-hub-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 90%;
    max-width: 650px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-consent-modal.show .cookie-hub-box {
    transform: translateY(0) scale(1);
}

.cookie-hub-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.5), rgba(255, 255, 255, 0.8));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-hub-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -5px rgba(245, 117, 57, 0.4);
}

.cookie-hub-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.cookie-hub-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 350px;
}

.cookie-hub-tabs {
    background: rgba(0, 0, 0, 0.02);
    padding: 1rem 0;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-tab.active {
    color: var(--dark);
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cookie-tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray);
}

.cookie-tab.active .cookie-tab-dot {
    background: var(--orange);
}

.cookie-hub-panels {
    padding: 2rem;
    overflow-y: auto;
}

.cookie-panel {
    display: none;
}

.cookie-panel.active {
    display: block;
}

.cookie-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.cookie-panel p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.cookie-toggle-row {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.cookie-switch {
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-switch.active {
    background: var(--orange);
}

.cookie-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-switch.active::after {
    left: 22px;
}

.cookie-hub-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hub-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.hub-btn.secondary {
    background: transparent;
    color: var(--gray);
}

.hub-btn.primary {
    background: var(--dark);
    color: white;
}

.hub-btn.accent {
    background: var(--orange);
    color: white;
}

.hub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 650px) {
    .cookie-hub-content {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 50vh;
    }
    .cookie-hub-tabs {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }
    .cookie-tab {
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }
}
