/* TRT Cluster Pages — Shared Styles
 * Used by all testosterone/men's health cluster pages:
 * testosterone-levels-by-age.html, trt-cost-insurance.html,
 * get-trt-online.html, trt-injections-vs-gel-vs-patches.html,
 * signs-low-testosterone-by-age.html, trt-side-effects.html,
 * andropause.html, testosterone-erectile-dysfunction.html,
 * trt-before-and-after.html, trt-and-fertility.html,
 * testosterone-and-fitness.html
 */

/* =====================================================
   CLUSTER HERO (reuses trt-hero pattern)
   ===================================================== */
.cluster-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #706d9c 0%, #926ecc 100%);
    overflow: hidden;
}

.cluster-hero .hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cluster-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cluster-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cluster-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* =====================================================
   COMPARISON TABLE (Featured Snippet Target)
   ===================================================== */
.table-scroll-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    min-width: 700px;
}

.comparison-table thead th {
    background: linear-gradient(135deg, #706d9c 0%, #926ecc 100%);
    color: white;
    padding: 1.5rem 2rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table tbody td {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.6;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tbody tr:hover {
    background: rgba(112,109,156,0.05);
}

.comparison-table .highlight-row {
    background: rgba(146,110,204,0.08) !important;
    font-weight: 500;
}

.comparison-table .price-low { color: #2e7d32; font-weight: 600; }
.comparison-table .price-mid { color: #f57c00; font-weight: 600; }
.comparison-table .price-high { color: #c62828; font-weight: 600; }

/* =====================================================
   DATA TABLE (Simpler table for reference data)
   ===================================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    margin: 2rem 0;
}

.data-table thead th {
    background: #f8f9fa;
    color: #333;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #706d9c;
}

.data-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:hover {
    background: rgba(112,109,156,0.03);
}

/* =====================================================
   PROCESS STEPS (Numbered steps for "how to" pages)
   ===================================================== */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2.4rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #706d9c 0%, #926ecc 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.step-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.step-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #706d9c;
    font-weight: 500;
}

.step-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   KEY TAKEAWAY BOX
   ===================================================== */
.key-takeaway {
    background: linear-gradient(135deg, rgba(112,109,156,0.08) 0%, rgba(146,110,204,0.08) 100%);
    border-left: 4px solid #926ecc;
    border-radius: 0 12px 12px 0;
    padding: 2.4rem 3rem;
    margin: 3rem 0;
}

.key-takeaway h4,
.key-takeaway strong:first-child {
    color: #706d9c;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

.key-takeaway p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #333;
}

/* =====================================================
   STAT HIGHLIGHT (Inline callout)
   ===================================================== */
.stat-highlight {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.2rem 2rem;
    margin: 1rem 0;
}

.stat-highlight .stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #706d9c;
    font-family: 'Montserrat', sans-serif;
}

.stat-highlight .stat-text {
    font-size: 1.4rem;
    color: #666;
}

/* =====================================================
   DECISION GUIDE (Flowchart-style choices)
   ===================================================== */
.decision-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.decision-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 2.4rem;
    transition: all 0.3s;
}

.decision-card:hover {
    border-color: #926ecc;
    box-shadow: 0 8px 24px rgba(146,110,204,0.15);
}

.decision-card h4 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1rem;
}

.decision-card .decision-match {
    font-size: 1.3rem;
    color: #706d9c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.decision-card p {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.7;
}

/* =====================================================
   TREATMENT CARDS (Method detail cards)
   ===================================================== */
.treatment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.4rem;
    margin: 3rem 0;
}

.treatment-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.treatment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.treatment-card h4 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.treatment-card .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-popular { background: #e8f5e9; color: #2e7d32; }
.badge-premium { background: #f3e5f5; color: #7b1fa2; }
.badge-value { background: #e3f2fd; color: #1565c0; }

/* =====================================================
   COST BREAKDOWN (Pricing sections)
   ===================================================== */
.cost-breakdown {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 3rem 0;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.cost-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2em;
    color: #706d9c;
}

/* =====================================================
   SYMPTOMS BY AGE (Life stage cards)
   ===================================================== */
.age-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.4rem;
    margin: 3rem 0;
}

.age-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid;
}

.age-card.age-20s { border-color: #4CAF50; }
.age-card.age-40s { border-color: #FF9800; }
.age-card.age-60s { border-color: #f44336; }

.age-card h4 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.age-card ul {
    list-style: none;
    padding: 0;
}

.age-card li {
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.4rem;
    color: #555;
}

.age-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #706d9c;
    font-weight: bold;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .cluster-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-table { font-size: 1.4rem; }
    .comparison-table thead th { padding: 1.2rem 1.5rem; }
    .comparison-table tbody td { padding: 1rem 1.5rem; }
}

@media (max-width: 768px) {
    .cluster-hero {
        padding: 80px 0 60px;
    }

    .cluster-hero h1 {
        font-size: 2.4rem;
    }

    .process-step {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.6rem;
    }

    .decision-guide,
    .treatment-cards,
    .age-stages {
        grid-template-columns: 1fr;
    }

    .table-scroll-wrapper {
        margin: 2rem -1.5rem;
        border-radius: 0;
    }

    .key-takeaway {
        padding: 2rem;
    }

    .stat-highlight {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cluster-hero h1 {
        font-size: 2rem;
    }

    .cluster-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .step-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
