/* Vasco Yaps. Shared styles for the resources section.
   Palette + type pulled from the homepage (BRAND.md is source of truth).
   Token names are legacy `wave-*`; the teal palette itself is current. */

:root {
    --wave-950: #041E28;
    --wave-900: #062A38;
    --wave-800: #0A4D68;
    --wave-700: #0C5D7D;
    --wave-600: #088395;
    --wave-500: #05BFDB;
    --wave-400: #3DD0E5;
    --wave-300: #7AE1EF;
    --wave-200: #B3EFF7;
    --wave-100: #E0F9FC;
    --youtube-red: #FF0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--wave-950) 0%, var(--wave-800) 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.container.narrow {
    max-width: 760px;
}

h1, h2, h3, .wordmark {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

a {
    color: var(--wave-400);
}

/* Header */
header {
    padding: 28px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wordmark {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.header-cta {
    font-size: 15px;
    font-weight: 600;
    color: var(--wave-950);
    background: var(--wave-500);
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 24px rgba(5, 191, 219, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--wave-400);
    transform: translateY(-1px);
}

/* Breadcrumb */
.breadcrumb {
    padding: 8px 0 0;
}

.breadcrumb a {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--wave-300);
}

/* Page hero (index + article) */
.page-hero {
    padding: 48px 0 24px;
}

.page-hero.center {
    text-align: center;
    padding: 56px 0 32px;
}

.kicker {
    font-size: 16px;
    font-weight: 600;
    color: var(--wave-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 20px;
}

.page-hero.center h1 {
    margin-left: auto;
    margin-right: auto;
}

.page-hero .lede {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 640px;
}

.page-hero.center .lede {
    margin: 0 auto;
}

/* Meta row (category / read time / date) */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--wave-200);
    background: rgba(5, 191, 219, 0.12);
    border: 1px solid rgba(61, 208, 229, 0.35);
    padding: 5px 14px;
    border-radius: 999px;
}

.meta-dot {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn {
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-accent {
    background: var(--wave-500);
    color: var(--wave-950);
}

.btn-accent:hover {
    background: var(--wave-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 191, 219, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

/* ---- Resources index grid ---- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px 0 16px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 28px 26px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(61, 208, 229, 0.5);
    box-shadow: 0 12px 32px rgba(4, 30, 40, 0.5);
}

.resource-card .card-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wave-300);
    margin-bottom: 14px;
}

.resource-card h3 {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.resource-card p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    flex-grow: 1;
}

.resource-card .card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.resource-card .card-foot .open {
    font-weight: 600;
    color: var(--wave-400);
}

/* ---- Article prose ---- */
.prose {
    padding: 16px 0 8px;
}

.prose h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 44px 0 16px;
    line-height: 1.25;
}

.prose h3 {
    font-size: 21px;
    font-weight: 600;
    margin: 30px 0 12px;
}

.prose p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.prose ul, .prose ol {
    margin: 0 0 20px 22px;
    color: rgba(255, 255, 255, 0.85);
}

.prose li {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.prose strong {
    color: #ffffff;
    font-weight: 600;
}

.prose a {
    color: var(--wave-400);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 40px 0;
}

/* Copyable code / prompt block */
.code-block {
    position: relative;
    background: rgba(4, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    margin: 24px 0 28px;
    overflow: hidden;
}

.code-block .code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block .code-head .label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.copy-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--wave-200);
    background: rgba(5, 191, 219, 0.14);
    border: 1px solid rgba(61, 208, 229, 0.4);
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(5, 191, 219, 0.26);
}

.copy-btn.copied {
    color: var(--wave-950);
    background: var(--wave-400);
    border-color: var(--wave-400);
}

.code-block pre {
    margin: 0;
    padding: 20px 22px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-block code {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--wave-100);
}

/* Callout */
.callout {
    background: rgba(5, 191, 219, 0.08);
    border: 1px solid rgba(61, 208, 229, 0.3);
    border-left: 4px solid var(--wave-500);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.callout p {
    margin: 0;
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.85);
}

/* Newsletter block (reused) */
.newsletter {
    padding: 64px 0;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 0 60px rgba(5, 191, 219, 0.12);
}

.newsletter-card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-card p.sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.newsletter-embed {
    max-width: 480px;
    margin: 0 auto 16px;
    border-radius: 14px;
    overflow: hidden;
}

.newsletter-embed iframe {
    display: block;
    width: 100%;
    height: 150px;
    border: none;
}

.reassurance {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
}

footer .footer-line {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 36px; }
    .page-hero .lede { font-size: 18px; }
    .prose h2 { font-size: 25px; }
    .prose p, .prose li { font-size: 17px; }
    .newsletter-card { padding: 36px 22px; }
}

/* ---- Print / PDF (used to generate the downloadable guides) ---- */
@media print {
    @page { margin: 0; }

    html, body {
        background: var(--wave-950) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        display: block !important;
        min-height: 0 !important;
        background: linear-gradient(135deg, var(--wave-950) 0%, var(--wave-800) 100%) !important;
        padding: 16mm 14mm;
    }

    /* Kill the fixed noise overlay so it doesn't tile on every printed page */
    body::before { display: none !important; }

    /* Strip site chrome and interactive bits that make no sense in a PDF */
    .header-cta,
    .breadcrumb,
    .newsletter,
    .page-hero .btn,
    .copy-btn,
    .pdf-download { display: none !important; }

    header { padding: 0 0 18px; }
    .container, .container.narrow { max-width: 100%; padding: 0; }
    .page-hero { padding: 18px 0 8px; }
    .page-hero h1 { font-size: 38px; }

    /* Keep blocks intact across page breaks */
    .code-block, .callout, .prose li { break-inside: avoid; }
    .prose h2 { break-after: avoid; }

    /* Don't expand link URLs into the text */
    a[href]::after { content: "" !important; }

    footer { margin-top: 28px; padding: 18px 0 0; }
}

/* Tier comparison table (gpt-5-6-sol cheat sheet) */
.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 8px;
    font-size: 17px;
}
.tier-table th,
.tier-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    vertical-align: top;
}
.tier-table thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wave-300);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
}
.tier-table td:nth-child(3),
.tier-table td:nth-child(4),
.tier-table th:nth-child(3),
.tier-table th:nth-child(4) {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.tier-table tbody tr:last-child td { border-bottom: none; }
