/* =============================================================
   SnapTik Theme — Main Stylesheet
   ============================================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:   #fe2c55;
    --primary-d: #d9253f;
    --bg:        #ffffff;
    --surface:   #f7f7f8;
    --surface-2: #eeeeef;
    --surface-3: #e4e4e6;
    --text:      #111111;
    --text-2:    #555555;
    --muted:     #888888;
    --border:    #e5e5e7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow:    0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: 0.15s ease;
    --font:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-w:     1100px;
    --header-h:  60px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }
[hidden] { display: none !important; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text);
}
h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
h3 { font-size: 0.95rem; }

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 1.75rem);
}
.container--narrow { max-width: 740px; }
.section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section--alt { background: var(--surface); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1.5rem;
}

/* Logo */
.site-branding { flex-shrink: 0; }
.site-title-link, .footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text) !important;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.logo-text { color: var(--primary); }
.custom-logo-wrap img { height: 36px; width: auto; }

/* Navigation */
.main-navigation { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-menu a {
    display: block;
    padding: 0.4rem 0.8rem;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.nav-menu .current-menu-item > a { color: var(--primary); background: rgba(254,44,85,0.08); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.925rem; }

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff !important; }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
    border-color: var(--border);
    color: var(--text-2) !important;
    background: transparent;
}
.btn-outline:hover { border-color: #bbb; color: var(--text) !important; background: var(--surface); }

.btn-download-hd    { background: var(--primary); color:#fff!important; border:1px solid var(--primary); }
.btn-download-sd    { background: var(--surface-2); border:1px solid var(--border); color:var(--text)!important; }
.btn-download-audio { background: var(--surface-2); border:1px solid var(--border); color:var(--text)!important; }
.btn-download-wm    { background: var(--surface-2); border:1px solid var(--border); color:var(--muted)!important; }

.btn-download-hd:hover    { background: var(--primary-d); border-color: var(--primary-d); }
.btn-download-sd:hover, .btn-download-audio:hover, .btn-download-wm:hover { background: var(--surface-3); }

/* Spinner */
.spinner {
    animation: spin 0.8s linear infinite;
    transform-origin: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
    padding-block: clamp(3rem, 6vw, 5rem);
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero-bg-orbs { display: none; }
.orb { display: none; }

.hero-container { max-width: 680px; margin-inline: auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: rgba(254,44,85,0.07);
    border: 1px solid rgba(254,44,85,0.18);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.1rem;
}

.hero-title {
    font-size: clamp(1.7rem, 3.8vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    letter-spacing: -0.025em;
}
.hero-title span { color: var(--primary); }

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.trust-item svg { color: var(--primary); flex-shrink: 0; opacity: 0.7; }

@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* =============================================================
   DOWNLOADER
   ============================================================= */
.downloader-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.downloader-form {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.downloader-form:focus-within {
    border-color: rgba(254,44,85,0.4);
    box-shadow: 0 0 0 3px rgba(254,44,85,.07);
}

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.input-icon { padding: 0 0.75rem 0 1.2rem; color: var(--muted); flex-shrink: 0; }

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.65rem 0;
    min-width: 0;
}
.url-input::placeholder { color: #bbb; }

.paste-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0;
    transition: all var(--transition);
    border: 1px solid var(--border);
}
.paste-btn:hover { color: var(--text); background: var(--surface-2); border-color: #ccc; }

.btn-download {
    flex-shrink: 0;
    border-radius: 0;
    padding: 0.875rem 1.4rem;
    border-left: 1px solid var(--border) !important;
    font-size: 0.875rem;
    font-weight: 500;
}
.btn-download .btn-loading { display: none; align-items: center; gap: 0.4rem; }
.btn-download.is-loading .btn-text { display: none; }
.btn-download.is-loading .btn-loading { display: inline-flex; }

/* Error alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error { background: #fff5f6; border: 1px solid #fcc; color: #c0392b; }

/* Results */
.results-container {
    margin-top: 1.5rem;
    animation: fadeInUp 0.4s ease both;
}

.video-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.video-preview {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}
.video-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.video-duration-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-info { flex: 1; min-width: 0; }
.video-author { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.author-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.author-handle { font-size: 0.75rem; color: var(--muted); }
.video-title { font-size: 0.9rem; color: var(--text); line-height: 1.4; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.video-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stat-badge { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; }

.download-options { text-align: left; }
.download-options-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.download-buttons-grid { display: flex; flex-direction: column; gap: 0.6rem; }

.download-btn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.download-btn-item:hover { background: var(--surface-3); text-decoration: none; }

.download-btn-item.type-hd {
    background: var(--surface-2);
    border-color: rgba(254,44,85,0.2);
    color: var(--text) !important;
}
.download-btn-item.type-hd:hover { background: rgba(254,44,85,0.07); border-color: rgba(254,44,85,0.35); }

.download-btn-item.type-sd {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text) !important;
}
.download-btn-item.type-sd:hover { background: var(--surface-2); border-color: #ccc; }

.download-btn-item.type-audio {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text) !important;
}
.download-btn-item.type-audio:hover { background: var(--surface-2); border-color: #ccc; }

.download-btn-item.type-wm {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--muted) !important;
    font-size: 0.85rem;
}

.download-btn-left { display: flex; align-items: center; gap: 0.65rem; }
.download-btn-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.download-size { font-size: 0.75rem; opacity: 0.7; font-weight: 400; }
.download-arrow { opacity: 0.7; transition: transform var(--transition); }
.download-btn-item:hover .download-arrow { transform: translateX(3px); opacity: 1; }

/* =============================================================
   STATS
   ============================================================= */
.stats-section {
    padding-block: 2.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat-item { padding: 0.5rem; }
.stat-number { display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.stat-label { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; font-weight: 500; }

/* =============================================================
   SECTION HEADERS
   ============================================================= */
.section-header { text-align: center; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-title { margin-bottom: 0.5rem; font-weight: 600; }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--muted); font-size: 0.9rem; max-width: 560px; margin-inline: auto; line-height: 1.7; }

/* =============================================================
   FEATURES
   ============================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { border-color: transparent; background: var(--bg); box-shadow: var(--shadow); }
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}
.feature-icon--primary { color: var(--primary); }
.feature-icon--secondary { color: var(--muted); }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--text); }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.steps-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.step-card:hover { border-color: transparent; background: var(--bg); box-shadow: var(--shadow); }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(254,44,85,0.1);
    border: 1px solid rgba(254,44,85,0.2);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.85rem;
    position: static;
    transform: none;
    box-shadow: none;
}
.step-icon {
    display: none;
}
.step-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.step-connector { color: var(--muted); opacity: 0.4; flex-shrink: 0; }

.how-cta { text-align: center; margin-top: 2rem; }

/* =============================================================
   FORMATS
   ============================================================= */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.format-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    position: relative;
    text-align: center;
    transition: all var(--transition);
}
.format-card:hover { background: var(--bg); border-color: transparent; box-shadow: var(--shadow); }
.format-card--hd { border-color: rgba(254,44,85,0.2); }
.format-card--hd:hover { border-color: rgba(254,44,85,0.35); }
.format-badge {
    display: inline-flex;
    align-items: center;
    position: static;
    transform: none;
    background: rgba(254,44,85,0.08);
    border: 1px solid rgba(254,44,85,0.18);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.65rem;
    white-space: nowrap;
}
.format-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    color: var(--muted);
}
.format-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.format-res { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.format-features { list-style: none; padding: 0; text-align: left; }
.format-features li {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.format-features li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-list { max-width: 680px; margin-inline: auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    background: transparent;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
}
.faq-question:hover { color: var(--text); }
.faq-question[aria-expanded="true"] { color: var(--primary); }

.faq-icon { flex-shrink: 0; color: var(--muted); transition: transform var(--transition); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: transparent;
}
.faq-answer.is-open {
    max-height: 400px;
    padding: 0 0 0.85rem;
}
.faq-answer p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

/* =============================================================
   CTA SECTION
   ============================================================= */
.cta-section { background: var(--surface); }
.cta-inner {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--border);
    position: relative;
}
.cta-orb { display: none; }
.cta-inner h2 { margin-bottom: 0.65rem; font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.cta-inner p { color: var(--muted); margin-bottom: 2rem; max-width: 500px; margin-inline: auto; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-top { padding-block: 2.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2.5rem;
}
.footer-brand { max-width: 320px; }
.footer-logo-link { font-size: 1.2rem; margin-bottom: 1rem; display: inline-flex; color: var(--text) !important; }
.footer-about { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-col-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-links li { font-size: 0.875rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

.footer-socials { display: flex; gap: 0.6rem; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all var(--transition);
}
.social-link:hover { background: var(--surface-3); border-color: #ccc; color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 1.25rem;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.copyright, .footer-disclaimer { font-size: 0.8rem; color: var(--muted); }

/* =============================================================
   PAGE / SINGLE
   ============================================================= */
.page-main, .single-main { padding-block: 3rem; }
.page-article, .single-article { max-width: 820px; margin-inline: auto; }

.page-header, .single-header { margin-bottom: 2.5rem; }
.page-title, .single-title { font-size: clamp(1.35rem, 3vw, 2.1rem); margin-bottom: 0.85rem; }
.single-meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.meta-author { display: flex; align-items: center; gap: 0.5rem; }
.meta-author img { border-radius: 50%; }
.single-thumbnail, .page-hero-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem; }

.single-content, .page-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-2);
}
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2, .entry-content h3 { margin-top: 2.5em; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    color: var(--muted);
    font-style: italic;
}
.entry-content code {
    background: var(--surface-2);
    padding: 0.2em 0.45em;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--muted);
}
.entry-content pre { background: var(--surface-2); padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; }
.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 0.65rem 1rem; font-size: 0.9rem; }
.entry-content th { background: var(--surface-2); font-weight: 600; }

.post-categories { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(254,44,85,0.1);
    border: 1px solid rgba(254,44,85,0.25);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}
.category-badge:hover { background: rgba(254,44,85,0.2); color: var(--primary) !important; }

.single-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.post-tags a { background: var(--surface-2); border: 1px solid var(--border); padding: 0.25rem 0.7rem; border-radius: 100px; font-size: 0.8rem; color: var(--muted); }
.post-tags a:hover { background: var(--surface-3); color: var(--text); }

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.post-navigation .nav-previous a, .post-navigation .nav-next a {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}
.post-navigation .nav-next a { text-align: right; }
.post-navigation a:hover { border-color: #bbb; box-shadow: var(--shadow-sm); }
.nav-subtitle { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Blog Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.blog-main h1 { margin-bottom: 0.5rem; }
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-body { padding: 1.1rem 1.25rem; }
.post-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; }
.post-title { font-size: 0.95rem; margin-bottom: 0.5rem; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.no-posts { color: var(--muted); text-align: center; padding: 3rem; }

/* Pagination */
.nav-links { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.page-numbers.current, .page-numbers:hover { background: var(--primary); border-color: var(--primary); color: #fff !important; }

/* =============================================================
   404 PAGE
   ============================================================= */
.error-404 { padding-block: 5rem; text-align: center; }
.error-content { max-width: 500px; margin-inline: auto; }
.error-graphic {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    color: var(--surface-3);
    line-height: 1;
    margin-bottom: 1rem;
}
.error-title { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.65rem; }
.error-message { color: var(--muted); margin-bottom: 2rem; }
.error-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* =============================================================
   COMMENTS (WordPress default + custom styling)
   ============================================================= */
.comments-wrap { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.05rem; margin-bottom: 1.25rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.comment-author .fn { font-weight: 600; color: var(--text); }
.comment-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.comment-content p { font-size: 0.9rem; color: var(--text-2); }
.reply a { font-size: 0.8rem; color: var(--muted); }

.comment-form label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-2); margin-bottom: 0.35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    color: var(--text);
    outline: none;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form input[type="submit"] {
    background: var(--primary);
    color: #fff;
    padding: 0.575rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}
.comment-form input[type="submit"]:hover { background: var(--primary-d); }

/* =============================================================
   WIDGETS
   ============================================================= */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.widget ul { padding: 0; list-style: none; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.widget ul li a { color: var(--muted); }
.widget ul li a:hover { color: var(--text); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { max-width: 100%; grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --header-h: 62px; }

    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        z-index: 999;
    }
    .main-navigation.is-open { display: flex; }
    .nav-menu { flex-direction: column; width: 100%; gap: 0; }
    .nav-menu a { display: block; padding: 0.75rem 1rem; width: 100%; font-size: 0.9rem; }

    .mobile-menu-toggle { display: flex; }
    .header-actions .btn-primary { display: none; }

    .downloader-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 0.75rem;
        gap: 0.6rem;
    }
    .input-group { background: var(--surface-2); border-radius: var(--radius); padding: 0.25rem 0; }
    .btn-download { width: 100%; border-radius: var(--radius); justify-content: center; padding: 0.9rem; }

    .video-card { flex-direction: column; }
    .video-preview { width: 100%; height: 200px; }
    .video-thumbnail { object-position: center 20%; }

    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); }
    .step-card { min-width: auto; max-width: 320px; width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }

    .post-navigation { grid-template-columns: 1fr; }
    .post-navigation .nav-next a { text-align: left; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .formats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-trust { gap: 0.6rem 1rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .trust-item { font-size: 0.8rem; }
    .error-actions { flex-direction: column; align-items: center; }
}

/* =============================================================
   INNER HERO (About / Contact / Legal pages)
   ============================================================= */
.inner-hero {
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.inner-hero-content { position: relative; z-index: 1; }
.inner-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    background: rgba(254,44,85,0.07);
    border: 1px solid rgba(254,44,85,0.15);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
}
.inner-hero h1 { margin-bottom: 0.65rem; }
.inner-hero p { color: var(--muted); font-size: 0.9rem; max-width: 520px; margin-inline: auto; }
.legal-updated { font-size: 0.85rem !important; }

/* =============================================================
   LEGAL PAGES
   ============================================================= */
.legal-content h2 { font-size: 1.05rem; margin-top: 2rem; margin-bottom: 0.55rem; color: var(--text); }
.legal-content h3 { font-size: 0.875rem; margin-top: 1.25rem; margin-bottom: 0.35rem; color: var(--text-2); }
.legal-content p { color: var(--text-2); line-height: 1.8; margin-bottom: 0.85rem; font-size: 0.875rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 0.85rem; }
.legal-content ul li { color: var(--text-2); line-height: 1.7; margin-bottom: 0.35rem; font-size: 0.875rem; }
.legal-content a { color: var(--primary); text-decoration: underline; }

.dmca-info-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}
.dmca-info-box h2 { margin-top: 0 !important; color: var(--text) !important; }

/* =============================================================
   ABOUT PAGE
   ============================================================= */
.about-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}
.about-mission-text h2 { margin-bottom: 1rem; }
.about-mission-text p { color: var(--text-2); line-height: 1.8; margin-bottom: 0.85rem; font-size: 0.875rem; }

.about-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-value-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition);
}
.about-value-card:hover { border-color: rgba(254,44,85,0.25); transform: translateY(-2px); }
.about-value-icon { display: block; font-size: 2rem; margin-bottom: 0.6rem; }
.about-value-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.about-value-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.about-stats-section .stats-grid { max-width: 900px; margin-inline: auto; }
.about-cta { text-align: center; }
.about-cta h2 { margin-bottom: 0.75rem; }
.about-cta p { color: var(--muted); margin-bottom: 1.75rem; }

@media (max-width: 768px) {
    .about-mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-values-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .about-values-grid  { grid-template-columns: 1fr; }
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: start;
}
.contact-info h2 { margin-bottom: 0.75rem; }
.contact-intro { color: var(--muted); line-height: 1.75; margin-bottom: 1.75rem; font-size: 0.95rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(254,44,85,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-card h3 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-card p  { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =============================================================
   CONTACT / DMCA FORMS
   ============================================================= */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 4vw, 1.75rem);
}
.contact-form, .dmca-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
}
.form-group label span { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 0.925rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8d98' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-group select option { background: var(--surface-2); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(254,44,85,0.5);
    box-shadow: 0 0 0 3px rgba(254,44,85,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) { border-color: rgba(254,44,85,0.4); }

/* Success state */
.form-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.form-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(29,185,84,0.1);
    border: 1px solid rgba(29,185,84,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    color: #1db954;
}
.form-success h3 { margin-bottom: 0.6rem; }
.form-success p  { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* =============================================================
   UTILITY
   ============================================================= */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }
.text-gradient { color: var(--primary); }

/* Focus styles */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Selection */
::selection { background: rgba(254,44,85,0.3); color: var(--text); }
