/* =========================================
   SUBPAGES GLOBAL STYLES
   ========================================= */

/* --- Article Hero Section --- */
.article-hero {
    padding: 80px 5% 100px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
}

.article-hero .badge {
    display: inline-block;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.article-hero h1 span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    color: transparent;
}

.article-hero p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* --- Article Body Layout --- */
.article-body {
    max-width: 900px;
    margin: -60px auto 80px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    padding: 50px;
    position: relative;
    z-index: 10;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 1.8rem;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-block h2 i {
    color: #8b5cf6;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.bg-gray-rounded {
    background: #f9fafb;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
}

/* --- Visual Showcase (Images/Slides) --- */
.visual-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.showcase-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.showcase-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.showcase-card:hover img {
    transform: scale(1.05);
}

.showcase-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.showcase-label.highlight {
    background: rgba(139, 92, 246, 0.9);
}

/* --- Tool Grid --- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: #8b5cf6;
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.1);
}

.tool-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    color: transparent;
}

.tool-card h3 {
    color: #111827;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Buttons --- */
.inline-btn {
    display: inline-flex;
    width: auto;
    padding: 14px 30px;
    margin-top: 20px;
    gap: 10px;
}


/* =========================================
   HASHTAG LADDER UNIQUE SECTIONS
   ========================================= */
.ladder-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
}

.ladder-step {
    padding: 25px;
    border-radius: 12px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ladder-step:hover {
    transform: scale(1.02);
}

.ladder-step h3 { margin: 0; font-size: 1.4rem; display: flex; align-items: center; gap: 10px;}
.ladder-step p { margin: 0; font-weight: 600; font-size: 1.1rem; opacity: 0.9; color: white !important;}

.step-1 { background: linear-gradient(135deg, #ef4444, #b91c1c); width: 100%; }
.step-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); width: 85%; margin: 0 auto; }
.step-3 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); width: 70%; margin: 0 auto; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f9fafb;
    padding: 15px;
    text-align: left;
    font-size: 1.2rem;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 500;
}

.comparison-table td:first-child { background: #fef2f2; border-right: 1px solid #e5e7eb; } 
.comparison-table td:last-child { background: #ecfdf5; } 
.bad-icon { color: #ef4444; margin-right: 8px; }
.good-icon { color: #10b981; margin-right: 8px; }


/* =========================================
   BENCHMARKS & PERFORMANCE BARS
   ========================================= */
.benchmark-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

.b-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.b-header h2 { 
    font-size: 1.8rem; 
    color: #111827; 
    margin: 0; 
    line-height: 1.3;
    display: block !important;
}

.b-header h2 span {
    display: block;
    margin-top: 5px;
}

.b-header .price-tag { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #8b5cf6; 
    background: #f5f3ff;
    padding: 8px 16px;
    border-radius: 8px;
}

.bar-container { margin-bottom: 30px; }
.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
    color: #374151;
    font-size: 1.05rem;
}

.bar-bg {
    width: 100%;
    background: #e5e7eb;
    border-radius: 50px;
    height: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 50px;
    width: 0; 
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s; 
}

.fill-budget-fps { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.fill-budget-render { background: #9ca3af; }
.fill-pro-fps { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.fill-pro-render { background: #10b981; }

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.pro-box, .con-box {
    padding: 25px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.pro-box:hover, .con-box:hover { transform: translateY(-5px); }
.pro-box { background: #ecfdf5; border-left: 5px solid #10b981; }
.con-box { background: #fef2f2; border-left: 5px solid #ef4444; }

.pro-box h4 { color: #047857; margin-bottom: 15px; font-size: 1.2rem; display: flex; align-items: center; gap: 8px;}
.con-box h4 { color: #b91c1c; margin-bottom: 15px; font-size: 1.2rem; display: flex; align-items: center; gap: 8px;}

ul.custom-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

ul.custom-list li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

ul.custom-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: currentColor;
    opacity: 0.6;
}


/* =========================================
   3-SECOND HOOKS UNIQUE SECTIONS
   ========================================= */
.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 50px 0;
    padding-top: 20px;
}

.timeline-line {
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 30%;
}

.timeline-marker {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 800;
    font-size: 1rem;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px #8b5cf6;
}

.timeline-step h3 { font-size: 1.2rem; color: #111827; margin-bottom: 8px; }
.timeline-step p { font-size: 0.95rem; color: #6b7280; line-height: 1.5; }

.hook-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.hook-card {
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.hook-card:hover { transform: translateY(-5px); }
.hook-card.fail { border-top: 5px solid #ef4444; }
.hook-card.viral { border-top: 5px solid #10b981; }

.hook-card h3 { 
    margin-top: 0; 
    font-size: 1.3rem;
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 15px;
}

.hook-card.fail h3 { color: #b91c1c; }
.hook-card.viral h3 { color: #047857; }
.hook-card p { font-size: 1rem; color: #4b5563; margin-bottom: 0; }


/* =========================================
   COMMUNITY FUNNEL UNIQUE SECTIONS
   ========================================= */
.funnel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.funnel-step {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15);
}

.funnel-step:hover {
    transform: translateY(-5px);
}

.funnel-step h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    color: white;
}

.funnel-step p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.funnel-arrow {
    color: #8b5cf6;
    font-size: 1.8rem;
}

.funnel-step.step-1 { max-width: 100%; }
.funnel-step.step-2 { max-width: 85%; }
.funnel-step.step-3 { max-width: 70%; }
.funnel-step.step-4 { 
    max-width: 55%; 
    background: linear-gradient(135deg, #10b981, #047857); 
}


/* =========================================
   NICHE DOWN UNIQUE SECTIONS
   ========================================= */
.roadmap-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin: 40px 0;
}

.roadmap-phase {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.roadmap-phase:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.12);
}

.phase-1 { border-top: 5px solid #ef4444; } 
.phase-2 { border-top: 5px solid #3b82f6; } 
.phase-3 { border-top: 5px solid #10b981; } 

.phase-num {
    background: #f9fafb;
    color: #111827;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.2rem;
    border: 2px solid #e5e7eb;
}

.roadmap-phase h3 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 15px;
}

.roadmap-phase p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0;
}


/* =========================================
   MASTER MOBILE RESPONSIVENESS PATCH
   ========================================= */
@media (max-width: 850px) {

    /* --- GLOBAL TEXT CENTERING ON MOBILE --- */
    p {
        text-align: center !important;
    }
    
    .content-block h2 {
        justify-content: center; /* Centers the headings and icons */
        text-align: center;
    }

    /* Fix Custom Lists (Pros/Cons) so bullets stay aligned when text is centered */
    ul.custom-list li {
        text-align: center;
        padding-left: 0;
    }
    
    ul.custom-list li::before {
        position: relative;
        left: auto;
        margin-right: 8px;
    }

    /* --- TOPBAR & NAVBAR --- */
    .topbar {
        flex-direction: column;
        text-align: center;
        padding: 10px 5%;
        gap: 8px;
    }
    
    .topbar p {
        font-size: 13px;
        word-break: break-all;
    }

    .nav-actions .menu-toggle {
        display: none !important; 
    }
    
    .navbar {
        padding: 15px 5%;
    }

    .navbar img {
        max-width: 160px !important; 
        height: auto;
    }

    /* --- ARTICLE HERO OVERFLOW FIXES --- */
    .article-hero {
        padding: 50px 5% 60px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; 
    }

    .article-hero h1 {
        font-size: 2.2rem !important; 
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word; 
    }

    .article-hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* --- MAIN BODY & GENERAL GRIDS --- */
    .article-body {
        width: 100%; 
        margin: -30px 0 50px; 
        padding: 30px 20px;
        box-sizing: border-box;
        border-radius: 16px;
    }

    .bg-gray-rounded {
        padding: 25px 15px;
    }

    .visual-showcase, .tool-grid {
        grid-template-columns: 1fr; 
    }

    /* --- HASHTAG LADDER --- */
    .ladder-step { 
        width: 100% !important; 
        flex-direction: column; 
        align-items: center; /* Centered visually */
        gap: 8px; 
    }
    .comparison-table th, .comparison-table td { 
        padding: 10px; 
        font-size: 0.9rem; 
        text-align: center; /* Centers table content */
    }

    /* --- BENCHMARKS --- */
    .benchmark-card {
        padding: 25px 15px; 
    }
    .b-header { 
        flex-direction: column; 
        align-items: center; /* Centered headers */
        text-align: center;
        gap: 12px; 
    }
    .b-header h2 {
        font-size: 1.5rem; 
    }
    .b-header h2 span {
        font-size: 1rem !important; 
    }
    .pros-cons-grid { 
        grid-template-columns: 1fr; 
    }
    .bar-label {
        flex-direction: column;
        align-items: center; /* Centers the benchmark text above bars */
        gap: 5px;
    }

    /* --- 3-SECOND HOOKS TIMELINE --- */
    .timeline-container { 
        flex-direction: column; 
        gap: 30px; 
        padding-left: 0; 
        align-items: center; /* Centers the whole timeline block */
    }
    .timeline-line { 
        width: 4px; 
        height: 100%; 
        left: 50%; /* Moves the line directly to the center of the screen */
        margin-left: -2px; /* Offsets for perfect pixel alignment */
        top: 0; 
    }
    .timeline-step { 
        width: 100%; 
        text-align: center; 
        padding-left: 0; 
    }
    .timeline-marker { 
        margin: 0 auto 10px; 
        position: relative; /* Centers the circle bubbles on the line */
    }
    .hook-examples { 
        grid-template-columns: 1fr; 
    }
    .hook-card h3 {
        justify-content: center; /* Centers icons next to titles */
    }

    /* --- COMMUNITY FUNNEL & ROADMAP --- */
    .funnel-step { 
        max-width: 100% !important; 
    } 
    .roadmap-container {
        flex-direction: column;
        gap: 25px;
    }
}