/*
Theme Name: Satellite Theme
Theme URI: https://satellites.mobtools.ai
Author: Moburst
Description: Professional magazine theme for the Satellite Sites network
Version: 2.0.0
License: Proprietary
Text Domain: satellite-theme
*/

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

:root {
    --color-primary: #1a1a2e;
    --color-accent: #e74c3c;
    --color-accent-hover: #c0392b;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-text-muted: #b2bec3;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #1a1a2e;
    --color-border: #e9ecef;
    --color-card-shadow: rgba(0,0,0,0.06);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow-card: 0 2px 12px var(--color-card-shadow);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.25s ease;
    --container-width: 1240px;
    --header-height: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.7; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
    background: var(--color-bg-dark);
    position: sticky; top: 0; z-index: 1000;
    height: var(--header-height);
    transition: box-shadow var(--transition);
}
.header-inner {
    max-width: var(--container-width);
    margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.site-branding .site-title { margin: 0; }
.site-branding .site-title a,
.site-branding .custom-logo-link img {
    color: #fff; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
    letter-spacing: -0.02em;
}
.site-branding .custom-logo-link img { height: 40px; width: auto; }

.primary-nav ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav > ul > li > a {
    display: block; padding: 0 16px; color: rgba(255,255,255,0.85);
    font-size: 0.875rem; font-weight: 500; line-height: var(--header-height);
    transition: color var(--transition), background var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a {
    color: #fff; background: rgba(255,255,255,0.08);
}

.primary-nav ul ul {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 220px; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-hover); z-index: 100; padding: 8px 0;
}
.primary-nav li:hover > ul { display: block; }
.primary-nav ul ul a {
    display: block; padding: 8px 20px; color: var(--color-text);
    font-size: 0.875rem; font-weight: 500;
}
.primary-nav ul ul a:hover { background: var(--color-bg-alt); color: var(--color-accent); }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative; z-index: 1001;
}
.menu-toggle span {
    display: block; width: 100%; height: 2px; background: #fff;
    position: absolute; left: 0; transition: var(--transition);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* ===== Category Bar ===== */
.category-bar {
    background: #fff; border-bottom: 1px solid var(--color-border);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-bar-inner {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: flex; gap: 0; white-space: nowrap;
}
.category-bar-inner a {
    display: inline-block; padding: 12px 18px;
    font-size: 0.8125rem; font-weight: 600; color: var(--color-text-light);
    text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.category-bar-inner a:hover,
.category-bar-inner a.active {
    color: var(--color-accent); border-bottom-color: var(--color-accent);
}

/* ===== Mobile Nav ===== */
.mobile-nav {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-bg-dark); z-index: 999; padding: 80px 30px 30px;
    overflow-y: auto; transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { padding: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { display: block; padding: 14px 0; color: #fff; font-size: 1rem; font-weight: 500; }
.mobile-nav ul ul { padding-left: 20px; }
.mobile-nav ul ul a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ===== Ticker ===== */
.ticker-bar {
    background: #111122; border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden; padding: 10px 0; position: relative;
}
.ticker-bar-inner {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 0;
}
.ticker-label {
    background: var(--color-accent); color: #fff; padding: 4px 14px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    border-radius: var(--radius-sm); white-space: nowrap; flex-shrink: 0;
    z-index: 2; position: relative; margin-right: 16px;
    box-shadow: 8px 0 12px rgba(26,26,46,0.9);
}
.ticker-track {
    overflow: hidden; flex: 1; position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.ticker-items {
    display: flex; gap: 40px; white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}
.ticker-items a {
    white-space: nowrap; color: rgba(255,255,255,0.8);
    font-size: 0.8125rem; font-weight: 500;
    padding: 0 4px;
}
.ticker-items a:hover { color: #fff; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Homepage Layout ===== */
.home-section { padding: 48px 0; }
.home-section + .home-section { padding-top: 0; }

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; padding-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
}
.section-title {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
    color: var(--color-primary); position: relative;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 3px;
    background: var(--color-accent); margin-top: 6px; border-radius: 2px;
}
.section-header .see-all {
    font-size: 0.8125rem; font-weight: 600; color: var(--color-accent);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.section-header .see-all:hover { color: var(--color-accent-hover); }

/* ===== Hero Section ===== */
.hero-section { padding: 32px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.hero-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: #000; min-height: 420px;
}
.hero-card.hero-main { grid-row: 1 / 3; min-height: 440px; }
.hero-card-image {
    position: absolute; inset: 0;
}
.hero-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-card:hover .hero-card-image img { transform: scale(1.03); }
.hero-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}
.hero-card-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 28px;
    z-index: 2; color: #fff;
}
.hero-card .category-badge {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-sm);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 10px;
}
.hero-card-title {
    font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800;
    line-height: 1.25; margin-bottom: 10px;
}
.hero-card.hero-main .hero-card-title { font-size: 2rem; }
.hero-card-title a { color: #fff; }
.hero-card-title a:hover { opacity: 0.9; }
.hero-card-excerpt {
    font-size: 0.875rem; color: rgba(255,255,255,0.8);
    line-height: 1.5; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: rgba(255,255,255,0.65);
}
.hero-card-meta img { width: 24px; height: 24px; border-radius: 50%; }
.hero-card-meta .dot { opacity: 0.5; }
.hero-card.hero-side { min-height: 210px; }
.hero-card.hero-side .hero-card-title { font-size: 1.1rem; }
.hero-card.hero-side .hero-card-excerpt { display: none; }
.hero-card.hero-side .hero-card-content { padding: 20px; }

/* ===== Article Grid ===== */
.article-grid { display: grid; gap: 24px; }
.article-grid-2 { grid-template-columns: repeat(2, 1fr); }
.article-grid-3 { grid-template-columns: repeat(3, 1fr); }
.article-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Article Card ===== */
.article-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover {
    box-shadow: var(--shadow-hover); transform: translateY(-3px);
}
.article-card-image {
    display: block; overflow: hidden; aspect-ratio: 3/2;
}
.article-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-card-body { padding: 18px; }
.article-card-category {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--color-accent); margin-bottom: 8px;
}
.article-card-title {
    font-size: 1.05rem; font-weight: 700; line-height: 1.35;
    margin-bottom: 8px;
}
.article-card-title a { color: var(--color-text); }
.article-card-title a:hover { color: var(--color-accent); }
.article-card-excerpt {
    font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 12px;
}
.article-card-meta {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: 0.78rem; color: var(--color-text-muted);
}
.article-card-meta .author-avatar { width: 22px; height: 22px; border-radius: 50%; }
.article-card-meta .author-name { font-weight: 600; color: var(--color-text); }
.article-card-meta .dot { font-size: 0.5em; opacity: 0.5; }

/* ===== Card Horizontal ===== */
.article-card-horizontal {
    display: flex; gap: 16px; padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}
.article-card-horizontal:last-child { border-bottom: none; }
.article-card-horizontal .card-h-image {
    flex-shrink: 0; width: 110px; height: 80px; border-radius: var(--radius-sm);
    overflow: hidden;
}
.article-card-horizontal .card-h-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card-horizontal .card-h-body { flex: 1; min-width: 0; }
.article-card-horizontal .card-h-category {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--color-accent); margin-bottom: 4px;
}
.article-card-horizontal .card-h-title {
    font-size: 0.9rem; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-horizontal .card-h-title a { color: var(--color-text); }
.article-card-horizontal .card-h-title a:hover { color: var(--color-accent); }
.article-card-horizontal .card-h-meta {
    font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px;
    display: flex; align-items: center; gap: 6px;
}

/* ===== Editors Pick / Featured Grid ===== */
.editors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editors-featured {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 400px; background: #000;
}
.editors-featured img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.editors-featured .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
}
.editors-featured .content {
    position: absolute; bottom: 0; padding: 28px; color: #fff; z-index: 2;
}
.editors-featured .content .category-badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 8px;
}
.editors-featured .content h3 {
    font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800;
    line-height: 1.3; margin-bottom: 8px;
}
.editors-featured .content h3 a { color: #fff; }
.editors-featured .content .meta {
    font-size: 0.8rem; color: rgba(255,255,255,0.7);
    display: flex; gap: 8px; align-items: center;
}
.editors-featured .content .meta img { width: 22px; height: 22px; border-radius: 50%; }
.editors-list { display: flex; flex-direction: column; gap: 0; }

/* ===== Trending Section ===== */
.trending-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.trending-item {
    display: flex; align-items: flex-start; gap: 16px; padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.trending-number {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 900;
    color: var(--color-bg-alt); line-height: 1;
    -webkit-text-stroke: 1px var(--color-text-muted);
    flex-shrink: 0; width: 36px; text-align: center;
}
.trending-thumb {
    flex-shrink: 0; width: 80px; height: 60px;
    border-radius: var(--radius-sm); overflow: hidden; display: block;
}
.trending-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.trending-content { flex: 1; min-width: 0; }
.trending-content .t-category {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--color-accent); margin-bottom: 4px;
}
.trending-content .t-title {
    font-size: 0.95rem; font-weight: 700; line-height: 1.35;
}
.trending-content .t-title a { color: var(--color-text); }
.trending-content .t-title a:hover { color: var(--color-accent); }
.trending-content .t-meta {
    font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px;
    display: flex; align-items: center; gap: 6px;
}
.trending-content .t-meta img { width: 20px; height: 20px; border-radius: 50%; }

/* ===== Main + Sidebar Layout ===== */
.content-with-sidebar {
    display: grid; grid-template-columns: 1fr 340px; gap: 40px;
}
.site-content {
    display: grid; grid-template-columns: 1fr 340px; gap: 40px;
    max-width: var(--container-width); margin: 0 auto; padding: 40px 20px;
}

/* ===== Popular Widget ===== */
.popular-posts-list { counter-reset: popular; }
.popular-post-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--color-border);
}
.popular-post-item:last-child { border-bottom: none; }
.popular-post-number {
    counter-increment: popular;
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900;
    color: var(--color-text-muted); opacity: 0.4;
    flex-shrink: 0; width: 30px; line-height: 1;
}
.popular-post-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
.popular-post-title a { color: var(--color-text); }
.popular-post-title a:hover { color: var(--color-accent); }
.popular-post-date { font-size: 0.75rem; color: var(--color-text-muted); display: block; margin-top: 2px; }
.popular-post-views { font-size: 0.75rem; color: var(--color-text-muted); }

/* ===== Widget ===== */
.widget { margin-bottom: 32px; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800;
    padding-bottom: 12px; margin-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.widget ul { padding: 0; }
.widget ul li {
    padding: 6px 0; border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text-light); }
.widget ul li a:hover { color: var(--color-accent); }

/* ===== Sidebar ===== */
.sidebar { position: relative; }
.sidebar-sticky { position: sticky; top: calc(var(--header-height) + 20px); }

/* ===== Newsletter ===== */
.newsletter-section {
    background: var(--color-bg-dark); padding: 50px 0;
    text-align: center; color: #fff;
}
.newsletter-section h2 {
    font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800;
    margin-bottom: 8px;
}
.newsletter-section p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 0.95rem; }
.newsletter-form {
    display: flex; max-width: 500px; margin: 0 auto; gap: 0;
    border-radius: var(--radius);overflow: hidden;
}
.newsletter-form input[type="email"] {
    flex: 1; padding: 14px 18px; border: none; font-size: 0.95rem;
    font-family: var(--font-body); outline: none;
}
.newsletter-form button {
    padding: 14px 28px; background: var(--color-accent); color: #fff;
    border: none; font-weight: 700; font-size: 0.9rem; cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--color-accent-hover); }

/* ===== Category Badge Colors ===== */
.category-badge,
.cat-badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #fff;
}

/* ===== Single Post ===== */
.single-post-hero {
    margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 21/9; max-height: 480px;
}
.single-post-hero img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.single-post-header { margin-bottom: 32px; }
.single-post-category .category-badge { margin-bottom: 12px; }
.single-post-title {
    font-family: var(--font-heading); font-size: 2.25rem; font-weight: 900;
    line-height: 1.2; margin-bottom: 16px; color: var(--color-primary);
}

/* On single post pages, override the homepage 2-col grid so article gets full width */
body.single-post .site-content {
    display: block;
}

/* Two-column layout: article + sidebar */
.single-post-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.single-post-main { min-width: 0; }
.single-post-sidebar {
    min-width: 0;
    align-self: stretch;
}
.sidebar-sticky {
    position: sticky; top: 100px;
}

/* Sidebar Share */
.sidebar-share {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px; padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.sidebar-share-label {
    font-size: 0.85rem; font-weight: 600; color: var(--color-text-light);
    white-space: nowrap;
}
.sidebar-share-icons {
    display: flex; gap: 8px;
}
.sidebar-share-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    color: #fff; transition: opacity var(--transition), transform var(--transition);
    text-decoration: none;
}
.sidebar-share-icon:hover {
    opacity: 0.85; transform: translateY(-1px); color: #fff;
}
.sidebar-share-icon.facebook { background: #1877f2; }
.sidebar-share-icon.twitter { background: #000; }
.sidebar-share-icon.pinterest { background: #e60023; }
.sidebar-share-icon.linkedin { background: #0a66c2; }

/* Sidebar Top Posts */
.sidebar-top-posts { margin-bottom: 28px; }
.sidebar-section-title {
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800;
    color: var(--color-primary); margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid var(--color-primary);
}
.sidebar-post-card {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none; color: inherit;
    transition: opacity var(--transition);
}
.sidebar-post-card:hover { opacity: 0.8; }
.sidebar-post-card:last-child { border-bottom: none; }
.sidebar-post-thumb {
    flex-shrink: 0; width: 80px; height: 64px;
    border-radius: var(--radius); overflow: hidden;
}
.sidebar-post-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block; margin: 0;
}
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-title {
    font-size: 0.85rem; font-weight: 700; line-height: 1.35;
    color: var(--color-text); margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-post-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.72rem; color: var(--color-text-light);
}
.sidebar-post-views { display: flex; align-items: center; gap: 3px; }
.sidebar-post-views::before {
    content: ''; display: inline-block; width: 12px; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999' stroke-width='2'%3E%3Cpath d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Sidebar responsive: hide on mobile */
@media (max-width: 900px) {
    .single-post-body {
        grid-template-columns: 1fr;
    }
    .single-post-sidebar { display: none; }
}
.single-post-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 0.875rem; color: var(--color-text-light);
}
.single-post-meta .meta-author {
    display: flex; align-items: center; gap: 8px; font-weight: 600;
    color: var(--color-text);
}
.single-post-meta .meta-author img { border-radius: 50%; }

/* ===== Post Content ===== */
.post-content { font-size: 1.05rem; line-height: 1.8; color: #333; }
.post-content h2 { font-size: 1.5rem; margin: 2em 0 0.8em; font-family: var(--font-heading); color: var(--color-primary); }
.post-content h3 { font-size: 1.25rem; margin: 1.5em 0 0.6em; color: var(--color-primary); }
.post-content p { margin-bottom: 1.2em; }
.post-content ul, .post-content ol { margin: 1em 0; padding-left: 1.5em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
    border-left: 4px solid var(--color-accent); margin: 1.5em 0;
    padding: 16px 24px; background: var(--color-bg-alt);
    font-style: italic; color: var(--color-text-light); border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content img { border-radius: var(--radius); margin: 1.5em 0; }
.post-content a { color: var(--color-accent); text-decoration: underline; }
.post-content a:hover { color: var(--color-accent-hover); }
.post-content strong { font-weight: 700; }

/* ===== FAQ ===== */
.post-content .faq-section {
    margin-top: 40px; padding-top: 32px;
    border-top: 2px solid var(--color-border);
}
.post-content .faq-section > h2,
.faq-section-title {
    font-family: var(--font-heading); font-size: 1.5rem;
    margin-bottom: 20px; color: var(--color-primary);
}
.post-content .faq-section .faq-item {
    border: 1px solid var(--color-border); border-radius: var(--radius);
    margin-bottom: 10px; overflow: hidden;
}
.post-content .faq-section .faq-item h3.faq-question,
.post-content .faq-section .faq-item .faq-question {
    width: 100%; text-align: left; padding: 16px 20px; margin: 0;
    background: var(--color-bg-alt);
    border: none; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    font-family: var(--font-body); color: var(--color-text);
    display: flex; justify-content: space-between; align-items: center;
    line-height: 1.4;
}
.post-content .faq-section .faq-item h3.faq-question::after,
.post-content .faq-section .faq-item .faq-question::after {
    content: '+'; font-size: 1.4rem; font-weight: 300;
    color: var(--color-accent); transition: transform 0.25s ease;
    margin-left: 16px; flex-shrink: 0;
}
.post-content .faq-section .faq-item.active h3.faq-question::after { content: '\2212'; }
.post-content .faq-section .faq-item .faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.post-content .faq-section .faq-item .faq-answer p { margin-bottom: 0; }
.post-content .faq-section .faq-item.active .faq-answer { max-height: 600px; padding: 16px 20px; }

/* ===== Author Bio ===== */
.author-bio {
    display: flex; gap: 20px; padding: 24px; margin: 32px 0;
    background: var(--color-bg-alt); border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.author-bio-avatar { flex-shrink: 0; }
.author-bio-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0; }
.author-bio-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-bio-name a { color: var(--color-text); }
.author-bio-name a:hover { color: var(--color-accent); }
.author-bio-description { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.6; }

/* ===== Share Buttons ===== */
.share-buttons {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.share-label { font-weight: 700; font-size: 0.9rem; color: var(--color-text); margin-right: 4px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--radius);
    font-size: 0.8rem; font-weight: 600; color: #fff;
    transition: opacity var(--transition), transform var(--transition);
    border: none; cursor: pointer; font-family: var(--font-body);
    text-decoration: none;
}
.share-btn:hover { opacity: 0.85; color: #fff; transform: translateY(-1px); }
.share-btn svg { flex-shrink: 0; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.pinterest { background: #e60023; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.copy-link { background: var(--color-text-light); }

/* ===== Tags ===== */
.post-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags-label { font-weight: 600; font-size: 0.88rem; }
.tag-link {
    display: inline-block; padding: 4px 12px; background: var(--color-bg-alt);
    border: 1px solid var(--color-border); border-radius: 20px;
    font-size: 0.8rem; color: var(--color-text-light);
    transition: all var(--transition);
}
.tag-link:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ===== Post Navigation ===== */
.post-navigation {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    margin: 40px 0; padding-top: 24px; border-top: 1px solid var(--color-border);
}
.post-nav-link {
    padding: 16px 20px; background: var(--color-bg-alt); border-radius: var(--radius);
    border: 1px solid var(--color-border); transition: all var(--transition);
}
.post-nav-link:hover { border-color: var(--color-accent); }
.post-nav-link.next { text-align: right; }
.post-nav-label { font-size: 0.75rem; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.post-nav-title { font-weight: 600; font-size: 0.9rem; }

/* ===== Related Posts ===== */
.related-posts { margin: 48px 0; padding-top: 32px; border-top: 2px solid var(--color-border); }
.related-posts .section-title { margin-bottom: 24px; }

/* ===== Archive ===== */
.archive-header { margin-bottom: 32px; }
.archive-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--color-primary); }
.archive-description { color: var(--color-text-light); margin-top: 8px; }

/* ===== Pagination ===== */
.pagination { margin: 40px 0; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 4px; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600; color: var(--color-text);
    border: 1px solid var(--color-border); transition: all var(--transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}
.pagination .prev, .pagination .next { width: auto; padding: 0 16px; }

/* ===== Footer ===== */
.site-footer { background: var(--color-bg-dark); color: rgba(255,255,255,0.85); padding-top: 60px; }
.footer-main {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-main .widget-title {
    color: #fff; font-size: 1rem; border-bottom-color: rgba(255,255,255,0.15);
}
.footer-main .widget ul li { border-bottom-color: rgba(255,255,255,0.08); }
.footer-main .widget ul li a { color: rgba(255,255,255,0.65); }
.footer-main .widget ul li a:hover { color: #fff; }
.footer-about p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-bottom {
    margin-top: 40px; padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom-inner {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-nav ul { display: flex; gap: 20px; }
.footer-nav a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-nav a:hover { color: #fff; }

/* ===== Load More ===== */
.load-more-wrap { text-align: center; margin: 40px 0; }
.load-more-btn {
    display: inline-block; padding: 12px 40px;
    border: 2px solid var(--color-primary); border-radius: var(--radius);
    font-weight: 700; font-size: 0.88rem; color: var(--color-primary);
    cursor: pointer; background: none; font-family: var(--font-body);
    transition: all var(--transition);
}
.load-more-btn:hover { background: var(--color-primary); color: #fff; }
.load-more-btn.loading { opacity: 0.6; pointer-events: none; }

/* ===== Search Form ===== */
.search-form { display: flex; }
.search-form .search-field {
    flex: 1; padding: 10px 14px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--font-body); font-size: 0.88rem; outline: none;
}
.search-form .search-submit {
    padding: 10px 18px; background: var(--color-accent); color: #fff;
    border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer; font-family: var(--font-body); font-weight: 600;
}

/* ===== Page Content ===== */
.page-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.page-title { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 900; margin-bottom: 24px; color: var(--color-primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card.hero-main { grid-row: auto; min-height: 350px; }
    .hero-card.hero-side { min-height: 200px; }
    .editors-grid { grid-template-columns: 1fr; }
    .trending-grid { grid-template-columns: 1fr; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .site-content { grid-template-columns: 1fr; }
    .article-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .article-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }
    .primary-nav { display: none; }
    .menu-toggle { display: block; }
    .mobile-nav { display: block; }
    .hero-card { min-height: 300px !important; }
    .hero-card-title { font-size: 1.25rem !important; }
    .article-grid-2, .article-grid-3, .article-grid-4 { grid-template-columns: 1fr; }
    .single-post-title { font-size: 1.75rem; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .post-navigation { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius); }
    .newsletter-form input[type="email"] { border-radius: var(--radius) var(--radius) 0 0; }
    .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); }
    .category-bar-inner { gap: 0; }
    .category-bar-inner a { padding: 10px 14px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-title { font-size: 1.25rem; }
    .hero-card { min-height: 250px !important; }
}
