/* =========================================================
   DaFreeAi Dedicated Model Page Stylesheet
   Theme: Ultra-Dark, Neutral, Minimalist & High-End (Runware / Linear / Vercel style)
   Strictly NO purple/pink/magenta gradients.
   ========================================================= */

:root {
    --bg-base: #09090b;
    --bg-surface: #121316;
    --bg-surface-elevated: #18191d;
    --bg-card: rgba(18, 19, 22, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-hover: rgba(255, 255, 255, 0.22);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- NAV HEADER ---------------- */
header.nav-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.model-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #d4d4d8;
    letter-spacing: -0.01em;
}

/* Subtle, elegant dark glass button */
.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f4f4f5;
    padding: 7px 16px;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-nav-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    padding: 60px 0 36px;
    text-align: center;
}

h1.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 18px;
}

p.hero-subhead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #18191d;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-hero-primary:hover {
    background: #24252a;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: #f4f4f5;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: #ffffff;
}

/* ---------------- SHOWCASE SECTION ---------------- */
.section-header {
    margin-bottom: 24px;
    text-align: left;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

@media (max-width: 840px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

.runware-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.runware-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.media-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-stage video,
.media-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-overlay-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.play-overlay-trigger:hover {
    background: rgba(0, 0, 0, 0.35);
}

.play-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay-trigger:hover .play-circle-btn {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.45);
}

.video-custom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 4px 6px;
    opacity: 0.88;
    transition: opacity 0.15s ease;
}

.video-custom-controls:hover {
    opacity: 1;
}

.video-ctrl-btn {
    background: transparent;
    border: none;
    color: #f4f4f5;
    font-size: 1rem;
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, color 0.12s ease;
}

.video-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.floating-media-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.runware-card:hover .floating-media-actions {
    opacity: 1;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card-meta-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.meta-model-title {
    font-weight: 600;
    color: #ffffff;
}

.meta-model-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meta-prompt-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    user-select: text;
    cursor: text;
    transition: all 0.15s ease;
}

.meta-prompt-text:hover {
    color: #f4f4f5;
    border-color: var(--border-subtle);
    background: rgba(0, 0, 0, 0.5);
}

/* ---------------- EDITORIAL LONG-FORM SEO ARTICLE ---------------- */
.doc-article {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 44px;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .doc-article {
        padding: 24px 18px;
    }
}

.doc-article h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-top: 36px;
    margin-bottom: 14px;
}

.doc-article h2:first-child {
    margin-top: 0;
}

.doc-article h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f4f4f5;
    margin-top: 24px;
    margin-bottom: 10px;
}

.doc-article p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.72;
}

.doc-article ul, .doc-article ol {
    margin-left: 24px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.doc-article li {
    margin-bottom: 8px;
    line-height: 1.65;
}

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

/* Author byline / EEAT box */
.eeat-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.eeat-byline iconify-icon {
    font-size: 1.2rem;
    color: #38bdf8;
}

/* Key Takeaway Card */
.key-takeaway-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #38bdf8;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.key-takeaway-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.key-takeaway-card p {
    margin-bottom: 0;
    font-size: 0.94rem;
    color: var(--text-secondary);
}

/* SEO Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

table.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

table.seo-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

table.seo-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

table.seo-table tr:last-child td {
    border-bottom: none;
}

table.seo-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Prompt Syntax Codebox */
.prompt-codebox {
    background: #000000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 16px 0 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e4e4e7;
    line-height: 1.55;
    overflow-x: auto;
}

.prompt-codebox span.keyword {
    color: #38bdf8;
}

.prompt-codebox span.param {
    color: #fbbf24;
}

/* Step Workflow Cards */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.workflow-card .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.workflow-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.workflow-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ---------------- FAQS ---------------- */
.faq-block {
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0;
}

.faq-block:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 1.08rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* ---------------- CTA BANNER ---------------- */
.cta-box {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 52px 24px;
    margin: 48px 0;
}

.cta-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 28px;
}

/* ---------------- FOOTER ---------------- */
footer.page-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 28px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.84rem;
}

footer.page-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

footer.page-footer a:hover {
    color: #ffffff;
}
