/**
 * TionStation Blog Post Content CSS
 * Styles for premium blog post components
 * @version 1.0.0
 */

/* =====================================================
   PREMIUM CONTENT WRAPPER
   ===================================================== */
.premium-content-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--tion-text-secondary, #A0AEC0);
}
.premium-content-wrapper h2 {
    color: var(--tion-text-primary, #E2E8F0);
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.15);
}
.premium-content-wrapper h3 {
    color: var(--tion-text-primary, #E2E8F0);
    font-size: 19px;
    font-weight: 700;
    margin: 30px 0 14px;
}
.premium-content-wrapper p {
    margin-bottom: 16px;
    color: var(--tion-text-secondary, #A0AEC0);
}
.premium-content-wrapper ul, .premium-content-wrapper ol {
    padding-left: 24px;
    margin-bottom: 18px;
}
.premium-content-wrapper li {
    padding: 4px 0;
    color: var(--tion-text-secondary, #A0AEC0);
}
.premium-content-wrapper strong {
    color: var(--tion-text-primary, #E2E8F0);
}
.info-highlight {
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.8;
}
.premium-image-wrapper {
    margin: 25px 0;
}
.premium-image-wrapper .image-container {
    position: relative;
}
.premium-image-wrapper .ai-disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--tion-text-muted, #718096);
    margin-top: 8px;
}

/* =====================================================
   POST HERO SECTION
   ===================================================== */
.tion-post-hero {
    background: linear-gradient(135deg, rgba(0,102,255,0.12) 0%, rgba(0,217,255,0.08) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 35px;
    border: 1px solid rgba(0,217,255,0.15);
    position: relative;
    overflow: hidden;
}
.tion-post-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,102,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.tion-post-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00D9FF, #0066FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tion-post-hero .hero-desc,
.tion-post-hero p {
    font-size: 16px;
    color: #A0AEC0;
    line-height: 1.8;
}
.tion-post-hero .tion-post-badge,
.tion-post-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0,217,255,0.15);
    color: #00D9FF;
    margin-bottom: 12px;
}
.tion-post-hero .hero-meta {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 13px;
    color: #718096;
    flex-wrap: wrap;
}

/* =====================================================
   TABLE OF CONTENTS
   ===================================================== */
.tion-toc-box {
    background: rgba(0,102,255,0.06);
    border: 1px solid rgba(0,102,255,0.15);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 30px;
}
.tion-toc-box .toc-title {
    font-weight: 700;
    font-size: 16px;
    color: #00D9FF;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tion-toc-box ol {
    padding-left: 20px;
    margin: 0;
}
.tion-toc-box li {
    padding: 6px 0;
    font-size: 14px;
}
.tion-toc-box li a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s;
}
.tion-toc-box li a:hover {
    color: #00D9FF;
}

/* =====================================================
   STATISTICS GRID
   ===================================================== */
.tion-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 25px 0;
}
.tion-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
}
.tion-stat-card .stat-num {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #00D9FF, #0066FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tion-stat-card .stat-label {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
}

/* =====================================================
   STEP CARDS
   ===================================================== */
.tion-step-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}
.tion-step-card:hover {
    border-color: rgba(0,217,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,102,255,0.1);
}
.tion-step-num {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #00D9FF, #0066FF);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

/* =====================================================
   COMPARISON TABLE
   ===================================================== */
.tion-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
}
.tion-compare-table th {
    background: linear-gradient(135deg, #0066FF, #00D9FF);
    color: #fff;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}
.tion-compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    text-align: center;
    color: #A0AEC0;
}
.tion-compare-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}
.tion-compare-table tr:hover td {
    background: rgba(0,102,255,0.06);
}

/* =====================================================
   TIP & WARNING BOXES
   ===================================================== */
.tion-tip-box {
    background: rgba(0,217,255,0.06);
    border-left: 4px solid #00D9FF;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 25px 0;
}
.tion-tip-box .tip-title {
    font-weight: 700;
    color: #00D9FF;
    margin-bottom: 8px;
    font-size: 15px;
}
.tion-warning-box {
    background: rgba(255,107,107,0.06);
    border-left: 4px solid #ff6b6b;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 25px 0;
}
.tion-warning-box .warning-title {
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 8px;
    font-size: 15px;
}

/* =====================================================
   INTERACTIVE CHECKLIST
   ===================================================== */
.tion-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.tion-checklist li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #A0AEC0;
    cursor: pointer;
    transition: all 0.2s;
}
.tion-checklist li:hover {
    border-color: rgba(0,217,255,0.2);
    background: rgba(0,217,255,0.04);
}
.tion-checklist li .check-icon {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0,217,255,0.4);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}
.tion-checklist li.checked .check-icon {
    background: linear-gradient(135deg, #00D9FF, #0066FF);
    border-color: transparent;
}
.tion-checklist li.checked .check-icon::after {
    content: "\2713";
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.tion-checklist li.checked {
    border-color: rgba(0,217,255,0.25);
    background: rgba(0,217,255,0.06);
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.tion-faq-item {
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}
.tion-faq-q {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #E2E8F0;
    transition: all 0.2s;
    background: rgba(255,255,255,0.03);
}
.tion-faq-q:hover {
    background: rgba(0,102,255,0.06);
}
.tion-faq-q .faq-arrow {
    transition: transform 0.3s;
    font-size: 20px;
    color: #00D9FF;
}
.tion-faq-q.active .faq-arrow {
    transform: rotate(180deg);
}
.tion-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 22px;
    color: #A0AEC0;
    font-size: 14px;
    line-height: 1.8;
}
.tion-faq-a.open {
    max-height: 600px;
    padding: 18px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* =====================================================
   QUIZ BOX
   ===================================================== */
.tion-quiz-box {
    background: rgba(0,102,255,0.06);
    border: 1px solid rgba(0,102,255,0.2);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
}
.tion-quiz-box h3 {
    color: #00D9FF;
    font-size: 16px;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}
.tion-quiz-option {
    display: block;
    padding: 12px 18px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #A0AEC0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    width: 100%;
    text-align: left;
}
.tion-quiz-option:hover {
    border-color: rgba(0,217,255,0.3);
    background: rgba(0,217,255,0.04);
}
.tion-quiz-option.correct {
    border-color: #48BB78;
    background: rgba(72,187,120,0.1);
    color: #48BB78;
}
.tion-quiz-option.wrong {
    border-color: #ff6b6b;
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
}
.tion-quiz-result {
    display: none;
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
}
.tion-quiz-result.show {
    display: block;
}
.tion-quiz-result.correct-result {
    background: rgba(72,187,120,0.08);
    border: 1px solid rgba(72,187,120,0.2);
    color: #68D391;
}
.tion-quiz-result.wrong-result {
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.2);
    color: #FC8181;
}

/* =====================================================
   SUMMARY CARD
   ===================================================== */
.tion-summary-card {
    background: linear-gradient(135deg, rgba(0,102,255,0.1) 0%, rgba(0,217,255,0.06) 100%);
    border: 1px solid rgba(0,217,255,0.2);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}
.tion-summary-card h3 {
    color: #00D9FF;
    font-size: 18px;
    margin-bottom: 16px;
    border: none;
    padding: 0;
}
.tion-summary-card ul {
    padding-left: 20px;
}
.tion-summary-card li {
    padding: 6px 0;
    color: #E2E8F0;
    font-size: 15px;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.tion-timeline {
    position: relative;
    padding-left: 30px;
    margin: 25px 0;
}
.tion-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #00D9FF, #0066FF);
}
.tion-timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.tion-timeline-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 22px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #00D9FF, #0066FF);
    border-radius: 50%;
    border: 2px solid rgba(10,14,39,1);
}
.tion-timeline-item h4 {
    color: #E2E8F0;
    font-size: 15px;
    margin-bottom: 8px;
}
.tion-timeline-item p {
    color: #A0AEC0;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   PROGRESS BAR
   ===================================================== */
.tion-progress-wrap {
    margin: 25px 0;
}
.tion-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #718096;
    margin-bottom: 6px;
}
.tion-progress-bar {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}
.tion-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D9FF, #0066FF);
    border-radius: 10px;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .tion-post-hero {
        padding: 28px 20px;
    }
    .tion-post-hero h1 {
        font-size: 22px;
    }
    .tion-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tion-compare-table {
        font-size: 12px;
    }
    .tion-compare-table th,
    .tion-compare-table td {
        padding: 10px 8px;
    }
    .premium-content-wrapper {
        padding: 10px 0;
    }
}

/* =====================================================
   LIGHT MODE OVERRIDES
   ===================================================== */
.tion-light-mode .premium-content-wrapper p,
.tion-light-mode .premium-content-wrapper li {
    color: #4A5568;
}
.tion-light-mode .premium-content-wrapper h2,
.tion-light-mode .premium-content-wrapper h3,
.tion-light-mode .premium-content-wrapper strong {
    color: #1A202C;
}
.tion-light-mode .tion-step-card,
.tion-light-mode .tion-stat-card,
.tion-light-mode .tion-faq-item,
.tion-light-mode .tion-timeline-item {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
}
.tion-light-mode .tion-compare-table td {
    color: #4A5568;
    border-bottom-color: rgba(0,0,0,0.06);
}
.tion-light-mode .tion-compare-table tr:hover td {
    background: rgba(0,102,255,0.04);
}
.tion-light-mode .tion-faq-q {
    color: #1A202C;
    background: rgba(0,0,0,0.02);
}
.tion-light-mode .tion-checklist li {
    color: #4A5568;
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
.tion-light-mode .tion-quiz-option {
    color: #4A5568;
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
.tion-light-mode .info-highlight {
    background: rgba(0,102,255,0.05);
    border-color: rgba(0,102,255,0.12);
}
