/* ============================================
   MarketAnalytic.ru — Binance-style Dark Theme
   Accent: #FCD535 (yellow)
   Marketplace brands: WB #CB11AB | Ozon #005BFF | YM #F0B90B | Mega #0ECB81
   ============================================ */

:root {
    /* Binance-style dark palette */
    --bg-primary: #0B0E11;
    --bg-secondary: #1E2329;
    --bg-tertiary: #2B3139;
    --bg-card: #1E2329;
    --bg-card-hover: #2B3139;
    --bg-input: #2B3139;
    --bg-hero: linear-gradient(180deg, #0B0E11 0%, #181A20 100%);

    /* Accent — Binance yellow */
    --accent: #FCD535;
    --accent-hover: #F0B90B;
    --accent-dark: #C99400;
    --accent-bg: rgba(252,213,53,0.08);
    --accent-text: #0B0E11;

    /* Marketplace brands */
    --wb: #CB11AB;
    --wb-light: #e84cc8;
    --wb-bg: rgba(203,17,171,0.1);
    --ozon: #005BFF;
    --ozon-light: #3d85ff;
    --ozon-bg: rgba(0,91,255,0.1);
    --ym: #F0B90B;
    --ym-dark: #F0B90B;
    --ym-bg: rgba(240,185,11,0.1);
    --ym-red: #FF0000;
    --mega: #0ECB81;
    --mega-light: #33d47a;
    --mega-bg: rgba(14,203,129,0.1);

    /* Positive / Negative */
    --green: #0ECB81;
    --red: #F6465D;

    /* Text */
    --text-primary: #EAECEF;
    --text-secondary: #B7BDC6;
    --text-muted: #5E6673;
    --text-link: #FCD535;

    /* Borders */
    --border: #2B3139;
    --border-hover: #3C4453;
    --border-accent: rgba(252,213,53,0.25);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.2);

    /* Spacing */
    --container: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text-link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

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

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,14,17,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.logo-svg {
    flex-shrink: 0;
    border-radius: 9px;
}

.logo-img-wrap {
    height: 54px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.logo-img {
    height: 78px;
    width: auto;
    object-fit: contain;
    object-position: top;
    margin-top: 0;
}

.logo-text {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo-m {
    color: var(--text-primary);
    font-weight: 800;
}

.logo-highlight {
    color: var(--accent);
    font-weight: 800;
}

.main-nav { display: flex; gap: 2px; }

.nav-link {
    padding: 6px 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-bg);
    font-weight: 600;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
    background: var(--bg-hero);
    padding: 80px 0 64px;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%; right: -20%; bottom: -50%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(252,213,53,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(14,203,129,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0,91,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 450px;
    background: url('/assets/img/russia-map.svg') center/contain no-repeat;
    opacity: 1;
    pointer-events: none;
    color: var(--accent);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero h1 .hl-wb { color: var(--accent); }
.hero h1 .hl-ozon { color: var(--text-primary); }
.hero h1 .hl-ym { color: var(--accent); }
.hero h1 .hl-mega { color: var(--green); }

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-top: 40px;
}

.hero-stat { text-align: center; }

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 2px 8px rgba(252,213,53,0.15);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(252,213,53,0.25);
    color: var(--accent-text);
}

.btn-wb { background: var(--wb); color: #fff; }
.btn-wb:hover { background: #b00f98; color: #fff; }
.btn-ozon { background: var(--ozon); color: #fff; }
.btn-ozon:hover { background: #0050e0; color: #fff; }
.btn-mega { background: var(--mega); color: var(--accent-text); }
.btn-mega:hover { background: #0bb574; color: var(--accent-text); }
.btn-ym { background: var(--accent); color: var(--accent-text); }
.btn-ym:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-default { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-default:hover { background: var(--border-hover); color: var(--text-primary); }

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.btn-gold {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 2px 8px rgba(252,213,53,0.15);
}

.btn-gold:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(252,213,53,0.25);
    color: var(--accent-text);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ---- Sections ---- */
.section { padding: 60px 0; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title .hl { color: var(--accent); }

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-body { padding: 20px; }

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-tertiary);
    display: block;
}

.card-image-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.15;
}

.card-image-placeholder.wb-bg { background: var(--wb-bg); }
.card-image-placeholder.ozon-bg { background: var(--ozon-bg); }
.card-image-placeholder.ym-bg { background: var(--ym-bg); }
.card-image-placeholder.mega-bg { background: var(--mega-bg); }
.card-image-placeholder.default-bg { background: var(--bg-tertiary); }

.card-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.cat-news { background: var(--accent-bg); color: var(--accent); }
.cat-analysis { background: var(--wb-bg); color: var(--wb-light); }
.cat-kb { background: var(--mega-bg); color: var(--green); }
.cat-tips { background: var(--ozon-bg); color: var(--ozon-light); }
.cat-review { background: var(--bg-tertiary); color: var(--text-secondary); }

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---- Grid layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---- Marketplace cards ---- */
.mp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.mp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.mp-card.mp-wb::before { background: var(--wb); }
.mp-card.mp-ozon::before { background: var(--ozon); }
.mp-card.mp-ym::before { background: var(--accent); }
.mp-card.mp-mega::before { background: var(--green); }
.mp-card.mp-default::before { background: var(--border-hover); }

.mp-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.mp-card:hover::before { opacity: 1; }

.mp-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mp-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.mp-card-icon.icon-wb { background: var(--wb); }
.mp-card-icon.icon-ozon { background: var(--ozon); }
.mp-card-icon.icon-ym { background: var(--accent); color: var(--accent-text); }
.mp-card-icon.icon-mega { background: var(--green); color: var(--accent-text); }
.mp-card-icon.icon-default { background: var(--text-muted); }

.mp-card-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }

/* Logo on dark background — white pill container */
.logo-pill {
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-pill img {
    height: 32px;
    display: block;
}
.logo-pill-lg img {
    height: 48px;
    display: block;
}

.mp-card-commission {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
    margin-top: 1px;
}

.mp-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.55;
}

.mp-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Article page ---- */
.article-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.article-page h1 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.effective-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--mega-bg);
    border: 1px solid rgba(14,203,129,0.2);
    border-radius: var(--radius-sm);
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-hero-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin: 32px 0 14px;
    font-weight: 700;
}

.article-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 24px 0 10px;
    font-weight: 600;
}

.article-content p { margin-bottom: 14px; }

.article-content ul, .article-content ol {
    margin: 0 0 14px 22px;
    color: var(--text-secondary);
}

.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text-primary); }
.article-content a { color: var(--accent); border-bottom: 1px dotted rgba(252,213,53,0.4); }
.article-content a:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 14px 20px;
    margin: 20px 0;
    background: var(--accent-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
    border: 1px solid var(--border);
}

.article-content .article-inline-image {
    width: 100%;
    border-radius: var(--radius);
    margin: 20px 0;
}

/* ---- Marketplace detail ---- */
.mp-detail-header {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.mp-detail-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.mp-detail-title h1 { font-size: 2rem; font-weight: 800; }

.mp-detail-badges { display: flex; gap: 10px; margin-bottom: 18px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-wb { background: var(--wb-bg); color: var(--wb-light); border: 1px solid rgba(203,17,171,0.2); }
.badge-ozon { background: var(--ozon-bg); color: var(--ozon-light); border: 1px solid rgba(0,91,255,0.2); }
.badge-ym { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(252,213,53,0.2); }
.badge-mega { background: var(--mega-bg); color: var(--green); border: 1px solid rgba(14,203,129,0.2); }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); }

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
}

.pros-list, .cons-list {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.pros-list { background: rgba(14,203,129,0.06); border-color: rgba(14,203,129,0.15); }
.cons-list { background: rgba(246,70,93,0.06); border-color: rgba(246,70,93,0.15); }

.pros-list h3 { color: var(--green); margin-bottom: 14px; }
.cons-list h3 { color: var(--red); margin-bottom: 14px; }

.pros-list li, .cons-list li { color: var(--text-secondary); margin-bottom: 7px; list-style: none; }
.pros-list li::before { content: '\2713 '; color: var(--green); font-weight: 700; }
.cons-list li::before { content: '\2717 '; color: var(--red); font-weight: 700; }

/* ---- Tips ---- */
.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.tip-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tip-card-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.tip-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.tip-card h3 a { color: var(--text-primary); }
.tip-card h3 a:hover { color: var(--accent); }
.tip-card p { color: var(--text-secondary); font-size: 0.85rem; }

.tip-card-mp {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ---- Knowledge Base ---- */
.kb-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.kb-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.kb-card-stripe { height: 3px; }
.kb-card-stripe.wb { background: var(--wb); }
.kb-card-stripe.ozon { background: var(--ozon); }
.kb-card-stripe.ym { background: var(--accent); }
.kb-card-stripe.mega { background: var(--green); }

.kb-card-body { padding: 20px; }

.kb-card-mp {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.kb-card-mp.wb { color: var(--wb-light); }
.kb-card-mp.ozon { color: var(--ozon-light); }
.kb-card-mp.ym { color: var(--accent); }
.kb-card-mp.mega { color: var(--green); }

.kb-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.kb-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.kb-card h3 a { color: var(--text-primary); }
.kb-card h3 a:hover { color: var(--accent); }
.kb-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.55; }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.pagination .active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
    font-weight: 700;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 14px 0;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-secondary); }

/* ---- Analysis box ---- */
.seller-analysis-box {
    margin-top: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.seller-analysis-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green));
}

.analysis-link-box {
    background: var(--accent-bg);
    border: 1px solid rgba(252,213,53,0.15);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    margin-top: 60px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 16px;
}

/* ---- Admin ---- */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: #0B0E11;
    border-right: 1px solid var(--border);
    padding: 20px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
}

.admin-sidebar .logo { margin-bottom: 28px; font-size: 1rem; color: var(--text-primary); }
.admin-sidebar .logo-highlight { color: var(--accent); }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    margin-bottom: 3px;
    transition: all 0.2s;
}

.admin-nav a:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.admin-nav a.active { background: var(--accent-bg); color: var(--accent); }

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 22px 28px;
    background: var(--bg-primary);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-header h1 { font-size: 1.4rem; font-weight: 700; }

.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.data-table tr:hover td { background: var(--bg-tertiary); }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(252,213,53,0.08);
}

textarea.form-control { min-height: 180px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer; }

.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-published { background: var(--mega-bg); color: var(--green); }
.status-draft { background: var(--bg-tertiary); color: var(--text-muted); }
.status-pending { background: var(--accent-bg); color: var(--accent); }

/* ---- Login ---- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 { font-size: 1.3rem; text-align: center; margin-bottom: 22px; }

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 0.82rem;
}

.alert-error { background: rgba(246,70,93,0.1); color: var(--red); border: 1px solid rgba(246,70,93,0.2); }
.alert-success { background: var(--mega-bg); color: var(--green); border: 1px solid rgba(14,203,129,0.2); }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 14px; opacity: 0.3; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 6px; }

/* ---- Analytics tools / Editor's Choice ---- */
.editors-choice {
    position: relative;
    border: 2px solid var(--accent) !important;
    box-shadow: 0 0 20px rgba(252,213,53,0.08);
    margin-top: 14px;
}
.editors-choice-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
/* Floating badge on top of card border */
.ec-badge-wrap {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: var(--accent);
    color: var(--accent-text);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(252,213,53,0.2);
}
.rating-stars {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.rating-value {
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 4px;
    font-size: 0.88rem;
}
.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}
.analytics-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.analytics-card.editors-choice:hover {
    box-shadow: 0 4px 24px rgba(252,213,53,0.12);
}
.analytics-feature-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.editors-choice .analytics-feature-tag {
    background: var(--accent-bg);
    border-color: rgba(252,213,53,0.2);
    color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 40px 0 32px; }
    .hero-stats { gap: 24px; }
    .hero-stat-value { font-size: 1.5rem; }
    .section { padding: 40px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    [style*="grid-template-columns: 2fr 1fr"] { grid-template-columns: 1fr !important; }
    .burger { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 10px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 11px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; padding: 14px; }
    .article-page h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero-stats { flex-direction: column; gap: 14px; }
    .section-header { flex-direction: column; gap: 10px; }
}
