/* BBL Premium Styles - Sick V2 */

:root {
    --color-primary: #1a73e8;
    --color-primary-rgb: 26, 115, 232;
    --theme-color: #1a73e8;
    --theme-color-light: #e8f0fe;
    --color-text-primary: #202124;
    --color-text-secondary: #5f6368;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --premium-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.main-content.premium-layout {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    background: #f8faff;
}

/* --- Hero Section --- */
.hero-premium {
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    text-align: center;
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    opacity: 0.06;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-powered-premium {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: inline-block;
    background: var(--theme-color-light);
    padding: 8px 20px;
    border-radius: 100px;
}

.hero-title-premium {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    color: #202124;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle-premium {
    font-size: 1.25rem;
    color: #5f6368;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-stats-chips {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-chip {
    background: #fff;
    padding: 12px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f3f4;
    transition: transform 0.3s;
}

.stat-chip:hover { transform: translateY(-5px); }

.stat-chip-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-chip-value { font-size: 1.1rem; font-weight: 700; color: #202124; }
.stat-chip-label { font-size: 0.75rem; color: #5f6368; font-weight: 500; }

/* --- Grid & Cards --- */
.bbl-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

.bbl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.premium-card {
    position: relative;
    background: #fff;
    border-radius: 32px;
    padding: 32px;
    border: 1px solid #eef2f7;
    box-shadow: var(--premium-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.premium-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--theme-color);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--theme-color);
    opacity: 0.05;
    border-radius: 50%;
    transition: all 0.4s;
}

.premium-card:hover::before {
    transform: scale(3);
    opacity: 0.1;
}

.category-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--theme-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--theme-color);
    transition: all 0.3s;
}

.premium-card:hover .category-icon-box {
    background: var(--theme-color);
    color: #fff;
    transform: rotate(-10deg) scale(1.1);
}

.premium-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #202124;
    letter-spacing: -0.5px;
}

.premium-card p.summary {
    font-size: 1rem;
    color: #5f6368;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.premium-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.premium-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-footer {
    margin-top: auto;
    border-top: 1px solid #f1f3f4;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-container-premium { width: 100%; }

.progress-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #80868b;
    margin-bottom: 8px;
}

.progress-track-premium {
    height: 8px;
    background: #f1f3f4;
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill-premium {
    height: 100%;
    background: var(--theme-color);
    width: 0%;
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-link-premium {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-weight: 700;
    color: var(--theme-color);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.premium-card:hover .action-link-premium { gap: 12px; }

/* --- Modals --- */
.bbl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-shell-premium {
    background: #fff;
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes modalPop {
    from { transform: translateY(60px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header-premium {
    padding: 48px;
    background: #fff;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
}

.modal-close-premium {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #f1f3f4;
    background: #fff;
    color: #202124;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modal-close-premium:hover { background: #f8f9fa; transform: rotate(90deg); }

.modal-body-premium {
    padding: 48px;
    overflow-y: auto;
    background: #fdfdff;
}

/* Timeline */
.timeline-premium { position: relative; padding-left: 20px; }

.step-card-premium {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #eef2f7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.step-marker-premium {
    position: absolute;
    left: -50px;
    top: 40px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 6px solid #e8f0fe;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s;
}

.step-card-premium.active .step-marker-premium {
    border-color: #1a73e8;
    background: #1a73e8;
    box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.1);
}

.timeline-premium::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: #eef2f7;
    z-index: 1;
}

.step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.step-number-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
}

/* Step content styling */
.bbl-step-content p {
    font-size: 1rem;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bbl-step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #202124;
    margin: 24px 0 12px;
}

.bbl-step-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.bbl-step-content li {
    margin-bottom: 8px;
    color: #5f6368;
}

/* Code Blocks */
pre {
    background: #1e1e1e !important;
    border-radius: 16px;
    padding: 24px !important;
    margin: 24px 0;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.premium-complete-btn {
    background: var(--theme-color);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.premium-complete-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(26, 115, 232, 0.4);
}

/* --- Optional Exercise (Step 6 fix) --- */
.optional-exercise {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.optional-exercise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #fbbf24;
}

.optional-exercise h4 {
    color: #92400e;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.optional-exercise ul {
    margin-bottom: 0;
}

.optional-exercise li {
    color: #92400e;
    opacity: 0.9;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-title-premium { font-size: 2.8rem; }
    .bbl-grid { grid-template-columns: 1fr; }
    
    .bbl-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-shell-premium {
        max-height: 92vh;
        border-radius: 40px 40px 0 0;
        animation: mobileSheet 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes mobileSheet {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-header-premium, .modal-body-premium { padding: 32px 24px; }
    .step-card-premium { padding: 32px 20px; }
    .timeline-premium { padding-left: 0; }
    .timeline-premium::before { display: none; }
    .step-marker-premium { display: none; }
}
