/* Zynq.News Design System */

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    --bg-primary: #faf8f3;
    --bg-secondary: #f5f3ed;
    --text-primary: #030213;
    --text-secondary: #717182;
    --text-muted: #9ca3af;
    --text-body: #374151;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: #d1d5db;
    --border-hover: #9ca3af;
    --btn-primary: #000000;
    --btn-primary-hover: #1f2937;
    --radius: 10px;
    --radius-md: 8px;
    --radius-xl: 14px;
    --font-serif: 'Libre Baskerville', serif;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1;
}

/* Newspaper texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('/static/img/newspaper-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    filter: grayscale(100%) contrast(0.8);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

p {
    color: var(--text-body);
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

/* ========== LAYOUT ========== */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.container-sm {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* ========== NAVIGATION ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand img {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
}

.nav-brand span {
    font-size: 1.25rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    height: 2.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
}

.btn-lg {
    height: 3rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--border-hover);
}

.btn-outline-danger {
    background: transparent;
    color: #6b7280;
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
}

.btn-outline-danger:hover {
    border-color: #d4183d;
    color: #d4183d;
}

.btn-full {
    width: 100%;
}

/* ========== HERO ========== */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 .block {
    display: block;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    line-height: 1.625;
}

@media (min-width: 640px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 3.75rem; line-height: 4rem; }
}

/* ========== DECORATIVE LINES ========== */
.decorative-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
    opacity: 0.2;
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.divider-line {
    width: 5rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover));
}

.divider-line:last-child {
    background: linear-gradient(to left, transparent, var(--border-hover));
}

.divider-diamond {
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid var(--border-hover);
    transform: rotate(45deg);
}

/* ========== SECTIONS ========== */
.section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* ========== CARDS ========== */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-flat {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* ========== GRID ========== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid-cols-sm-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========== FORMS ========== */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .form-row { flex-direction: row; }
}

.input {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    width: 100%;
    height: 3rem;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: var(--border-hover);
}

.input::placeholder {
    color: var(--text-muted);
}

/* ========== NEWSLETTER CARDS ========== */
.newsletter-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-card h4 {
    font-size: 1rem;
    margin: 0;
}

.newsletter-card .sender {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.newsletter-card .description {
    font-size: 0.875rem;
    color: var(--text-body);
    flex: 1;
}

/* ========== PODCAST CARDS ========== */
.podcast-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.podcast-card h4 {
    font-size: 1rem;
    margin: 0;
}

.podcast-card h4 a {
    color: var(--text-primary);
    text-decoration: none;
}

.podcast-card h4 a:hover {
    text-decoration: underline;
}

.podcast-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.podcast-card audio {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ========== PODCAST PLAYER PAGE ========== */
.player-section {
    padding: 2rem 0;
}

.player-card {
    padding: 2rem;
}

.player-card audio {
    width: 100%;
    margin: 1.5rem 0;
}

.player-card .summary {
    font-size: 0.9375rem;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.script-toggle {
    margin-top: 2rem;
}

.script-toggle summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.script-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    margin-top: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.script-content p {
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

.script-content strong {
    color: var(--text-primary);
}

/* ========== SUBSCRIPTION ROW ========== */
.sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sub-info strong {
    display: block;
    font-size: 0.9375rem;
}

.sub-info small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ========== FOOTER ========== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-brand-col .nav-brand {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-contact-col h3 {
    font-size: 1.125rem;
}

.footer-contact-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-contact-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-contact-email a {
    color: var(--text-primary);
}

.footer-contact-email a:hover {
    text-decoration: underline;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========== BACK LINK ========== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--text-primary);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.empty-state a {
    font-weight: 700;
    text-decoration: underline;
}

/* ========== STATUS MESSAGE ========== */
.status-msg {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

/* ========== USER CARDS ========== */
.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    cursor: pointer;
}

.user-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.user-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-card-email {
    font-size: 1rem;
}

.user-card-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-card-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.user-card:hover .user-card-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* ========== ADMIN ========== */
.admin-login-form {
    max-width: 24rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.admin-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .admin-form-row {
        flex-direction: row;
    }
}

/* ========== UTILITY ========== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ========== TRUSTED SOURCES ========== */
.trusted-sources {
    padding: 3rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.trusted-sources-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 2rem;
}

.scroll-container {
    position: relative;
    overflow: hidden;
}

.scroll-track {
    display: flex;
    align-items: center;
    animation: scroll-loop 30s linear infinite;
}

.scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.source-logo {
    flex-shrink: 0;
    margin: 0 3rem;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
}

.source-text-bold {
    font-family: Arial, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.02em;
}

.source-text-serif-italic {
    font-family: Georgia, serif;
    font-size: 1.375rem;
    font-weight: 700;
    font-style: italic;
    color: #000;
}

.source-text-xl-bold {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.source-bbc {
    display: inline-flex;
    gap: 0.25rem;
}

.bbc-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 2rem;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ========== STATS ========== */
.stats-section {
    padding: 4rem 0 5rem;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-hover), transparent);
}

.stats-section::before { top: 0; }
.stats-section::after { bottom: 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-bordered {
    /* Vertical border between items on desktop */
}

@media (min-width: 1024px) {
    .stat-bordered::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 4rem;
        background-color: var(--border-light);
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .stat-number { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
    .stat-number { font-size: 3rem; }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    .stat-label { font-size: 1rem; }
}

/* ========== WHY ZYNQ CARDS ========== */
.why-card {
    padding: 1.5rem;
}

.why-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.625;
    text-align: justify;
}

/* ========== HOW IT WORKS ========== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.step-item {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--btn-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
}

.step-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: justify;
}

.step-arrow {
    display: none;
}

@media (min-width: 1024px) {
    .step-arrow {
        display: flex;
        position: absolute;
        top: 2rem;
        right: -0.75rem;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--border-hover);
    }
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.pricing-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.pricing-featured {
    border: 2px solid var(--btn-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.pricing-featured:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-disabled {
    opacity: 0.85;
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--btn-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pricing-note {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-body);
}

.check-icon {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
}

/* ========== FAQ ========== */
.faq-list {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    list-style: none;
    transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-question:hover {
    color: var(--text-secondary);
}

.faq-answer {
    padding: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.625;
}

.faq-answer a {
    color: var(--text-primary);
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}
