/**
 * Adhelden Modern Blog (AMB) - Style Guide & CSS Library
 * 
 * Brand Color: #FCDB00 (Bright Yellow) — accents, borders, decorative elements only.
 * Never use for text on white backgrounds.
 * 
 * Base font-size: 21px
 * Base text color: #111
 */

/* =========================================
   0. Global Design Tokens & Base Styles
   ========================================= */
:root {
    --amb-color-primary: #FCDB00;
    --amb-color-dark: #111;
    --amb-color-light: #f8f8f8;
    --amb-color-success: #22c55e;
    --amb-color-danger: #ef4444;
    --amb-color-text: #111;
    --amb-color-muted: #888;
    --amb-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --amb-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.amb-article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: var(--amb-font-sans);
    color: var(--amb-color-text);
    font-size: 21px;
    line-height: 1.7;
}

.amb-article-container p {
    margin-bottom: 1.4em;
}

.amb-article-container h2 {
    color: var(--amb-color-dark);
    font-size: 1.7rem;
    font-weight: 800;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    line-height: 1.25;
}

.amb-article-container h3 {
    color: var(--amb-color-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

/* Drop Cap — first paragraph after the summary */
.amb-drop-cap::first-letter {
    float: left;
    font-size: 4.2em;
    line-height: 0.8;
    font-weight: 800;
    color: var(--amb-color-dark);
    margin-right: 10px;
    margin-top: 6px;
}

/* =========================================
   1. Hero Section
   =========================================
   PURPOSE: Cinematic visual hook at the top.
*/
.amb-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    margin: -20px -20px 60px -20px;
}

.amb-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

.amb-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.amb-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--amb-color-primary);
    margin-bottom: 10px;
    display: block;
}

.amb-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: #fff !important;
}

/* =========================================
   2. Meta Tags & Badges
   ========================================= */
.amb-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.amb-skill-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.amb-platforms {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.amb-platform-tag {
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   3. Executive Summary
   =========================================
   PURPOSE: TL;DR for busy readers.
   DESIGN:  Card with yellow left border, shadow, header row.
*/
.amb-ai-summary {
    background: #fff;
    border-left: 5px solid var(--amb-color-primary);
    padding: 35px 40px;
    margin: 50px 0;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.amb-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.amb-ai-label {
    font-weight: 800;
    color: var(--amb-color-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.amb-ai-label::before {
    content: "✦ ";
    color: var(--amb-color-primary);
}

.amb-ai-curator {
    font-size: 0.8rem;
    color: var(--amb-color-muted);
    font-style: italic;
}

.amb-ai-summary h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--amb-color-dark);
    margin: 0 0 20px 0;
}

.amb-ai-summary ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.amb-ai-summary ul li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.amb-ai-summary ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--amb-color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Relevance Badge */
.amb-relevance {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: var(--amb-color-muted);
}

.amb-relevance-label {
    font-style: italic;
}

.amb-relevance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--amb-color-light);
    padding: 5px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--amb-color-dark);
}

.amb-relevance-dots {
    display: inline-flex;
    gap: 3px;
}

.amb-relevance-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amb-color-dark);
    display: inline-block;
}

/* =========================================
   4. Stats Grid
   ========================================= */
.amb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.amb-stat-card {
    background: var(--amb-color-light);
    padding: 30px;
    text-align: center;
    border-radius: 16px;
    transition: transform 0.2s;
}

.amb-stat-card:hover {
    transform: translateY(-4px);
}

.amb-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--amb-color-dark);
    display: block;
    margin-bottom: 5px;
}

.amb-stat-label {
    color: var(--amb-color-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================
   5. Comparison Table
   ========================================= */
.amb-table-wrapper {
    overflow-x: auto;
    margin: 50px 0;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    background: #fff;
    border-top: 5px solid var(--amb-color-primary);
    /* Brand Accent */
}

.amb-comparison-table {
    width: 100%;
    border-collapse: separate;
    /* Allows border-radius on rows if needed, but we use collapse for simple lines usually. Let's stick to collapse but control borders carefully. */
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure it scrolls on mobile */
    font-size: 1rem;
    text-align: left;
    margin-block-end: 0;
}

.amb-comparison-table th,
.amb-comparison-table td {
    padding: 20px 24px;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.amb-comparison-table th {
    background: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--amb-color-dark);
    border-bottom: 2px solid #000;
    /* Distinct header separation */
    padding-top: 24px;
    /* More breathing room top */
}

/* First Column Stying (Labels) */
.amb-comparison-table td:first-child,
.amb-comparison-table th:first-child {
    width: 200px;
    padding-right: 10px;
    color: var(--amb-color-dark);
    font-weight: 700;
}

/* Hover Effect on Rows */
.amb-comparison-table tbody tr {
    transition: background-color 0.2s ease;
}

.amb-comparison-table tbody tr:hover {
    background-color: var(--amb-color-light);
    /* Subtle highlight */
}

/* Last row no border */
.amb-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================
   6. Pull Quote
   =========================================
   DESIGN: Yellow decorative marks, bold black italic text.
*/
.amb-pull-quote {
    font-size: 1.6rem;
    line-height: 1.4;
    text-align: center;
    font-weight: 300;
    font-style: italic;
    max-width: 800px;
    margin: 60px auto;
    color: #111;
    padding: 0 20px;
    position: relative;
}

.amb-pull-quote::before {
    content: "//";
    display: block;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: normal;
    color: var(--amb-color-primary);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.amb-quote-meta {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--amb-color-muted);
}

.amb-quote-meta cite {
    display: block;
    font-style: normal;
}

/* =========================================
   7. Pros & Cons
   =========================================
   DESIGN: Rounded cards with colored left border, uppercase headers,
           list without bullet markers.
*/
.amb-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 50px 0;
}

.amb-pc-col {
    padding: 30px;
    border-radius: 16px;
    background: #fff;
}

.amb-pros {
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-left: 4px solid var(--amb-color-success);
}

.amb-cons {
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--amb-color-danger);
}

.amb-pc-title {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: block;
}

.amb-pros .amb-pc-title::before {
    content: "■  ";
    color: var(--amb-color-success);
}

.amb-cons .amb-pc-title::before {
    content: "■  ";
    color: var(--amb-color-danger);
}

.amb-pros .amb-pc-title {
    color: var(--amb-color-dark);
}

.amb-cons .amb-pc-title {
    color: var(--amb-color-dark);
}

.amb-pc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.amb-pc-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #444;
}

.amb-pc-list li:last-child {
    border-bottom: none;
}

/* =========================================
   8. Timeline
   ========================================= */
.amb-timeline {
    position: relative;
    margin: 60px 0;
    padding-left: 30px;
    border-left: 2px solid #e0e0e0;
}

.amb-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.amb-timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--amb-color-primary);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--amb-color-primary);
}

.amb-tl-time {
    font-weight: 700;
    color: var(--amb-color-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   9. Checklist
   ========================================= */
.amb-checklist {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.amb-cl-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
}

.amb-cl-icon {
    color: var(--amb-color-success);
    margin-right: 15px;
    font-weight: bold;
}

/* =========================================
   10. Code Block
   ========================================= */
.amb-code-block {
    background: #1a1a1a;
    color: #ccc;
    padding: 24px;
    border-radius: 12px;
    font-family: var(--amb-font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 40px 0;
    position: relative;
}

.amb-lang-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #333;
    color: #aaa;
    padding: 3px 10px;
    font-size: 0.65rem;
    border-bottom-left-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   11. Media Embeds (Video)
   ========================================= */
.amb-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
}

.amb-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   12. Trust & Sources Footer
   ========================================= */
.amb-trust-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    margin-top: 70px;
    font-size: 0.85rem;
    color: var(--amb-color-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

#sources-title,
#review-title,
.amb-trust-section strong {
    color: var(--amb-color-dark);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amb-sources-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.amb-sources-list li {
    margin-bottom: 10px;
}

.amb-sources-list a {
    color: var(--amb-color-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.amb-sources-list a:hover {
    color: var(--amb-color-dark);
}


/* =========================================
   13. Action Steps (Numbered)
   =========================================
   PURPOSE: Visual guide for sequential action items.
   DESIGN:  Large brand-colored numeral left, title + body right.
            Replaces plain "Erstens/Zweitens/Drittens" text blocks.
*/
.amb-action-steps {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: amb-step;
}

.amb-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 24px;
    padding: 28px 0;
    border-bottom: 1px solid #eee;
    align-items: start;
}

.amb-step:first-child {
    padding-top: 0;
}

.amb-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amb-step-num {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--amb-color-primary);
    font-family: var(--amb-font-sans);
    letter-spacing: -1px;
    padding-top: 2px;
    /* Prevent yellow text on white from being invisible — 
       use a subtle text-shadow for definition */
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.08);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.06);
}

.amb-step-content {
    min-width: 0;
}

.amb-step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--amb-color-dark);
    margin: 0 0 6px 0 !important;
    line-height: 1.3;
}

.amb-step-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .amb-article-container {
        font-size: 16px;
    }

    .amb-title {
        font-size: 2.2rem;
    }

    .amb-pros-cons {
        grid-template-columns: 1fr;
    }

    .amb-trust-section {
        flex-direction: column;
        gap: 20px;
    }

    .amb-ai-summary {
        padding: 25px;
    }

    .amb-ai-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .amb-pull-quote {
        font-size: 1.3rem;
    }

    .amb-drop-cap::first-letter {
        font-size: 3.2em;
    }

    .amb-step {
        grid-template-columns: 48px 1fr;
        gap: 0 16px;
        padding: 22px 0;
    }

    .amb-step-num {
        font-size: 2.2rem;
    }

    .amb-step-title {
        font-size: 1rem;
    }

    .amb-step-body {
        font-size: 0.95rem;
    }
}