/* ============================================
   IDOLSOFASH.XYZ — Complete Stylesheet
   Dark horror descent theme + game card system
   ============================================ */

/* --- Variables --- */
:root {
    --bg: #0a0a0c;
    --bg-alt: #101014;
    --bg-card: #14141a;
    --bg-card-hover: #1a1a22;
    --surface: #1c1c24;
    --border: #2a2a35;
    --border-glow: #3a2a1a;
    --text: #d4d0c8;
    --text-dim: #8a8680;
    --text-bright: #f0ece4;
    --accent: #c45e2c;
    --accent-hover: #e0773e;
    --accent-glow: rgba(196, 94, 44, 0.25);
    --danger: #a33;
    --warn-bg: #1a1410;
    --warn-border: #3d2a1a;
    --font-head: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(196,94,44,0.15);
    --ease: 0.2s ease;
    --ease-med: 0.35s ease;
    --header-h: 60px;
    --max-w: 1400px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
kbd {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 6px;
    font-family: var(--font-body);
    font-size: 0.82em;
    color: var(--text-bright);
}

/* --- Ambient BG --- */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: -1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(196,94,44,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(60,30,10,0.04) 0%, transparent 50%);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(10,10,12,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--ease-med), box-shadow var(--ease-med);
}
.site-header.scrolled {
    background: rgba(10,10,12,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.header-container {
    max-width: var(--max-w); margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; gap: 12px;
}
.header-brand {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-bright); flex-shrink: 0;
}
.header-logo { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.header-site-name {
    font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
    letter-spacing: 0.5px; color: var(--text-bright);
}

/* Nav */
.header-nav {
    display: flex; align-items: center; gap: 10px; flex: 1;
    justify-content: flex-end;
}
.nav-categories {
    display: flex; gap: 6px; align-items: center; flex-wrap: nowrap;
}
.cat-link {
    display: inline-block; padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text); font-size: 0.82rem; font-weight: 500;
    white-space: nowrap;
    transition: all var(--ease);
}
.cat-link:hover, .cat-link.active {
    background: var(--accent); border-color: var(--accent);
    color: #fff;
}
.nav-link { padding: 6px 14px; border-radius: var(--radius-sm); color: var(--text); font-size: 0.85rem; font-weight: 500; transition: all var(--ease); }
.nav-link:hover { color: var(--text-bright); background: rgba(255,255,255,0.05); }
.nav-cta {
    background: var(--accent); color: #fff !important; font-weight: 600;
    border-radius: 50px; padding: 6px 18px;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Search */
.search-wrapper {
    position: relative; flex-shrink: 0;
}
.search-input {
    width: 180px; padding: 7px 36px 7px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); border-radius: 50px;
    color: var(--text-bright); font-size: 0.82rem;
    font-family: var(--font-body);
    outline: none; transition: all var(--ease);
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); width: 220px; }
.search-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    padding: 4px; display: flex; align-items: center;
}
.search-btn:hover { color: var(--accent); }
.search-results {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    width: 320px; max-height: 400px; overflow-y: auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 100;
}
.search-results.visible { display: block; }
.search-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; color: var(--text); transition: background var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.search-item:hover { background: rgba(255,255,255,0.04); color: var(--text-bright); }
.search-item-img { width: 40px; height: 28px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface); flex-shrink: 0; }
.search-item-name { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-bright); }
.search-item-cat { font-size: 0.72rem; color: var(--text-dim); text-transform: capitalize; }
.search-empty { padding: 20px; text-align: center; font-size: 0.85rem; color: var(--text-dim); }

/* Hamburger */
.hamburger-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger-line {
    display: block; width: 22px; height: 2px;
    background: var(--text-bright); border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}
.hamburger-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   MAIN CONTENT
   ============================================ */
main { padding-top: var(--header-h); }

/* ============================================
   GAME SECTION
   ============================================ */
.game-section { padding: 20px 16px 40px; max-width: var(--max-w); margin: 0 auto; }
.game-layout {
    display: grid; grid-template-columns: 160px 1fr 160px;
    gap: 14px; align-items: start;
}

/* --- Sidebar Cards --- */
.sidebar-games { display: flex; flex-direction: column; gap: 8px; }
.sidebar-title {
    font-family: var(--font-head); font-size: 0.8rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 1px; text-align: center;
    margin-bottom: 2px;
}
.sidebar-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; text-decoration: none;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.sidebar-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.sidebar-card-thumb {
    position: relative; width: 100%; aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a22, #0f0f14); overflow: hidden;
}
.sidebar-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--ease-med);
}
.sidebar-card:hover .sidebar-card-thumb img { transform: scale(1.08); }
.sidebar-card-info { padding: 6px 8px; }
.sidebar-card-name {
    display: block; font-size: 0.75rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}

/* --- Badge --- */
.card-badge {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.65rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* --- Stars --- */
.stars-wrap { display: inline-flex; align-items: center; gap: 1px; }
.star { font-size: 0.65rem; color: var(--border); }
.star.star-on { color: #FFD700; }
.rating-val { font-size: 0.65rem; color: var(--text-dim); margin-left: 3px; }

/* --- Game Main Area --- */
.game-main { width: 100%; }
.game-wrapper {
    position: relative; width: 100%; aspect-ratio: 16/9; min-height: 360px;
    background: #000; border-radius: var(--radius-lg); overflow: hidden;
    border: 2px solid var(--border); box-shadow: 0 4px 40px rgba(0,0,0,0.7);
}
.game-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: none; z-index: 1;
}

/* Loading */
.game-loading {
    position: absolute; inset: 0; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, #12111a, #0a090e);
    transition: opacity 0.5s ease;
}
.game-loading.hidden { opacity: 0; pointer-events: none; }
.loading-content { text-align: center; padding: 20px; }
.loading-status {
    font-family: var(--font-head); font-size: 1.05rem; color: var(--text-bright);
    margin-bottom: 14px;
}
.progress-bar-track {
    width: 240px; max-width: 80vw; height: 6px;
    background: var(--surface); border-radius: 3px;
    margin: 0 auto 8px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; width: 0%; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), #e0773e);
    transition: width 0.3s ease;
}
.loading-percent { font-size: 0.88rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.loading-hint { font-size: 0.78rem; color: var(--text-dim); font-style: italic; }

/* Error */
.game-error {
    position: absolute; inset: 0; z-index: 15;
    display: none; align-items: center; justify-content: center;
    background: rgba(10,9,14,0.95);
}
.game-error.visible { display: flex; }
.error-content { text-align: center; }
.error-message { font-family: var(--font-head); font-size: 1.1rem; color: var(--danger); margin-bottom: 14px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-card); color: var(--text);
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all var(--ease); line-height: 1;
}
.btn:hover { background: var(--bg-card-hover); border-color: var(--accent); color: var(--text-bright); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-icon { font-size: 1rem; }
.btn-play-now {
    background: var(--accent); border-color: var(--accent); color: #fff;
    font-size: 0.92rem; padding: 11px 26px;
}
.btn-play-now:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: var(--shadow-glow); }
.btn-retry {
    background: var(--accent); border-color: var(--accent); color: #fff;
    padding: 11px 30px; font-size: 0.95rem;
}
.btn-retry:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* Controls bar */
.game-controls-bar { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* Info strip */
.game-info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.info-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
}
.info-card h3 {
    font-family: var(--font-head); font-size: 0.85rem; color: var(--accent);
    margin-bottom: 6px; letter-spacing: 0.3px;
}
.info-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }
.info-card-warning { border-color: var(--warn-border); background: var(--warn-bg); }
.controls-list { display: flex; flex-direction: column; gap: 3px; }
.controls-list li { font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }

/* ============================================
   BOTTOM GAMES GRID
   ============================================ */
.bottom-games { margin-top: 28px; }
.bottom-games-title {
    font-family: var(--font-head); font-size: 1.05rem; color: var(--text-bright);
    margin-bottom: 14px; text-align: center; letter-spacing: 0.5px;
}
.bottom-games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.game-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; text-decoration: none;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.game-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.game-card-thumb {
    position: relative; width: 100%; aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a22, #0f0f14); overflow: hidden;
}
.game-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--ease-med);
}
.game-card:hover .game-card-thumb img { transform: scale(1.08); }
.game-card-body { padding: 10px 12px; }
.game-card-title {
    font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
    color: var(--text-bright); margin-bottom: 3px;
}
.game-card-desc {
    font-size: 0.72rem; color: var(--text-dim); line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.game-card-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tag {
    display: inline-block; padding: 2px 8px;
    background: rgba(196,94,44,0.12); border: 1px solid rgba(196,94,44,0.2);
    border-radius: 20px; font-size: 0.62rem; font-weight: 500;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.3px;
}

/* ============================================
   SEO CONTENT AREA
   ============================================ */
.seo-content-area { max-width: 900px; margin: 0 auto; padding: 0 24px 50px; }
.seo-section { margin-bottom: 42px; }
.seo-section h1 {
    font-family: var(--font-head); font-size: 1.9rem; font-weight: 800;
    color: var(--text-bright); line-height: 1.3; margin-bottom: 18px;
}
.seo-section h2 {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    color: var(--text-bright); line-height: 1.35; margin-bottom: 14px;
    position: relative; padding-bottom: 10px;
}
.seo-section h2::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 45px; height: 3px; background: var(--accent); border-radius: 2px;
}
.seo-section h3 {
    font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
    color: var(--text-bright); margin-top: 22px; margin-bottom: 8px;
}
.seo-section p { margin-bottom: 12px; font-size: 0.93rem; color: var(--text); }
.seo-section strong { color: var(--text-bright); }
.seo-hero { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-lead { font-size: 1.02rem; line-height: 1.8; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.feature-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px; transition: border-color var(--ease);
}
.feature-item:hover { border-color: var(--border-glow); }
.feature-item h3 { margin-top: 0; font-size: 0.95rem; color: var(--accent); margin-bottom: 6px; }
.feature-item p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0; }

/* Steps / tips */
.steps-list { list-style: decimal; padding-left: 20px; margin-bottom: 16px; }
.steps-list li { margin-bottom: 6px; font-size: 0.9rem; color: var(--text); padding-left: 4px; }
.tips-list { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.tips-list li { margin-bottom: 8px; font-size: 0.9rem; color: var(--text); }

/* Controls table */
.controls-table-wrapper { overflow-x: auto; margin-bottom: 16px; }
.controls-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.controls-table th, .controls-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.controls-table th { font-weight: 600; color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.controls-table td { color: var(--text); }
.controls-table tr:hover td { background: rgba(255,255,255,0.02); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--ease);
}
.faq-item[open] { border-color: var(--border-glow); }
.faq-question {
    padding: 14px 18px; font-family: var(--font-head); font-size: 0.92rem;
    font-weight: 600; color: var(--text-bright); cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: background var(--ease); list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--accent);
    flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-answer { padding: 0 18px 14px; }
.faq-answer p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border); padding: 28px 24px;
    text-align: center; background: var(--bg-alt);
}
.footer-container { max-width: var(--max-w); margin: 0 auto; }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }
.footer-links a { font-size: 0.8rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 0.72rem; color: var(--text-dim); opacity: 0.7; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .nav-categories { gap: 4px; }
    .cat-link { padding: 5px 12px; font-size: 0.78rem; }
    .search-input { width: 150px; }
    .search-input:focus { width: 180px; }
}

@media (max-width: 1100px) {
    .game-layout { grid-template-columns: 140px 1fr 140px; gap: 10px; }
    .bottom-games-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
    .game-layout { grid-template-columns: 1fr; gap: 14px; }
    .sidebar-games {
        flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px;
    }
    .sidebar-card { min-width: 120px; flex-shrink: 0; }
    .sidebar-title { display: none; }
    .game-info-strip { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .bottom-games-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; }
    .header-site-name { font-size: 0.95rem; }
    .header-nav {
        display: none; position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: rgba(10,10,12,0.98);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 16px;
        backdrop-filter: blur(12px);
        flex-direction: column; gap: 10px;
    }
    .header-nav.open { display: flex; }
    .nav-categories { flex-wrap: wrap; justify-content: center; }
    .nav-link, .nav-cta { text-align: center; width: 100%; display: block; padding: 12px; border-radius: var(--radius-md); }
    .search-wrapper { width: 100%; }
    .search-input { width: 100%; }
    .search-input:focus { width: 100%; }
    .search-results { width: 100%; left: 0; right: 0; }
    .hamburger-btn { display: flex; }
    .seo-section h1 { font-size: 1.45rem; }
    .seo-section h2 { font-size: 1.2rem; }
    .seo-content-area { padding: 0 16px 36px; }
    .bottom-games-grid { grid-template-columns: repeat(2, 1fr); }
    .game-wrapper { min-height: 280px; }
    .game-controls-bar { justify-content: center; }
}

@media (max-width: 480px) {
    .header-container { padding: 0 12px; }
    .game-section { padding: 12px 8px 24px; }
    .game-wrapper { border-radius: var(--radius-md); min-height: 220px; }
    .seo-section h1 { font-size: 1.25rem; }
    .seo-section h2 { font-size: 1.05rem; }
    .controls-table th, .controls-table td { padding: 7px 10px; font-size: 0.8rem; }
    .bottom-games-grid { gap: 8px; }
    .sidebar-card { min-width: 100px; }
    .cat-link { padding: 5px 10px; font-size: 0.75rem; }
}

/* Fullscreen */
.game-wrapper:-webkit-full-screen, .game-wrapper:fullscreen {
    border-radius: 0; border: none; aspect-ratio: auto;
}

/* ============================================
   BLOG LIST PAGE
   ============================================ */
.blog-hero {
    padding: 80px 24px 36px;
    text-align: center;
    max-width: var(--max-w);
    margin: 0 auto;
}
.blog-hero h1 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
}
.blog-hero .hero-lead {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto;
}
.blog-list-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 60px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.blog-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a22, #0f0f14);
    overflow: hidden;
}
.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-med);
}
.blog-card:hover .blog-card-thumb img {
    transform: scale(1.06);
}
.blog-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-date {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.blog-card-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.35;
    margin-bottom: 8px;
}
.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--ease);
}
.blog-card:hover .blog-card-cta,
.related-post-card:hover .blog-card-cta {
    color: var(--accent-hover);
}

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */
.breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-dim);
    transition: color var(--ease);
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb .current {
    color: var(--text);
}
.article-content {
    padding-top: 24px;
}
.article-content h1 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.article-cover-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    border: 1px solid var(--border);
}
.article-inline-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--border);
}
.article-content h2 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-top: 32px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    position: relative;
}
.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.article-content h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 22px;
    margin-bottom: 8px;
}
.article-content p {
    margin-bottom: 14px;
    font-size: 0.93rem;
    color: var(--text);
    line-height: 1.8;
}
.article-content strong {
    color: var(--text-bright);
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 24px;
}
.related-posts h2 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 16px;
    text-align: center;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-post-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-decoration: none;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.related-post-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.related-post-card h3 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 10px;
    line-height: 1.4;
}
.back-to-blog {
    max-width: 900px;
    margin: 28px auto 50px;
    padding: 0 24px;
    text-align: center;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content .tips-list {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
}
.legal-content .tips-list li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}
.text-dim {
    color: var(--text-dim);
}

/* ============================================
   FOOTER BLOG LINKS
   ============================================ */
.footer-blog-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-bottom: 10px;
}
.footer-blog-links a {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.8;
}
.footer-blog-links a:hover {
    color: var(--accent);
    opacity: 1;
}

/* ============================================
   BLOG RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .blog-hero {
        padding: 70px 16px 28px;
    }
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    .blog-list-container {
        padding: 0 16px 40px;
    }
    .breadcrumb {
        padding: 70px 16px 0;
    }
    .article-content h1 {
        font-size: 1.4rem;
    }
    .article-content h2 {
        font-size: 1.15rem;
    }
    .related-posts {
        padding: 0 16px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .back-to-blog {
        padding: 0 16px;
    }
}
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
