/* =====================================================
   LA NOTA DEL DÍA.MX — Estilos principales
   Estética: Periódico digital mexicano, bold & directo
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:       #c1121f;
    --red-dark:  #9d0208;
    --red-light: #fde8ea;
    --ink:       #111111;
    --ink-2:     #333333;
    --ink-3:     #666666;
    --paper:     #f5f3ef;
    --paper-2:   #ece9e2;
    --white:     #ffffff;
    --border:    #ddd8cf;
    --gold:      #d4a017;

    --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-cond:    'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:    'Lora', Georgia, serif;
    --font-ui:      'Barlow', Arial, sans-serif;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --t: 0.22s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ======================== TOPBAR ======================== */
.topbar {
    background: var(--ink);
    color: rgba(255,255,255,0.55);
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 7px 0;
    border-bottom: 2px solid var(--red);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-date { text-transform: uppercase; }
.topbar-admin {
    background: var(--red);
    color: white;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.1em;
    transition: background var(--t);
}
.topbar-admin:hover { background: var(--red-dark); }

/* ======================== HEADER / LOGO ======================== */
.site-header {
    background: var(--white);
    padding: 20px 0 16px;
    text-align: center;
}
.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
    cursor: pointer;
}
.logo-text {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 80px);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}
.logo-dot {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 80px);
    color: var(--red);
    line-height: 1;
    font-weight: 900;
}
.logo-mx {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 80px);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}
.site-tagline {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 6px;
}
.header-line {
    height: 4px;
    background: linear-gradient(90deg, var(--ink) 0%, var(--red) 40%, var(--ink) 100%);
    margin-top: 16px;
}

/* ======================== NAV ======================== */
.main-nav {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-md);
}
.nav-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: visible;
}
.nav-list {
    display: flex;
    list-style: none;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
    display: block;
    padding: 13px 15px;
    font-family: var(--font-cond);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all var(--t);
}
.nav-link:hover { color: white; border-bottom-color: var(--red); }
.nav-link.active { color: white; border-bottom-color: var(--cc, var(--red)); }
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.nav-search input {
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-family: var(--font-ui);
    font-size: 13px;
    width: 160px;
    transition: all var(--t);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search input:focus { outline: none; background: rgba(255,255,255,0.18); width: 200px; }
.nav-search button {
    padding: 8px 12px;
    background: var(--red);
    border: none;
    color: white;
    cursor: pointer;
    transition: background var(--t);
    font-size: 14px;
}
.nav-search button:hover { background: var(--red-dark); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 13px 16px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: white; transition: var(--t); }

/* ======================== BREAKING TICKER ======================== */
.breaking-bar {
    background: var(--red);
    padding: 9px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.breaking-label {
    background: var(--ink);
    color: white;
    padding: 2px 14px;
    font-family: var(--font-cond);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 0;
    flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-inner {
    display: inline-flex;
    gap: 0;
    animation: ticker 50s linear infinite;
    white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-block;
    font-family: var(--font-cond);
    font-size: 14px;
    font-weight: 600;
    color: white;
    padding: 0 32px;
    letter-spacing: 0.03em;
}
.ticker-item::before { content: '◆ '; opacity: 0.5; font-size: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ======================== HERO ======================== */
.hero { padding: 24px 0 0; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3px;
    background: var(--border);
    border: 2px solid var(--border);
}
.hero-main { background: var(--white); }
.hero-col { display: flex; flex-direction: column; gap: 3px; background: var(--border); }

/* Hero card base */
.hcard {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    background: var(--ink);
}
.hcard-img {
    position: absolute;
    inset: 0;
}
.hcard-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    opacity: 0.65;
}
.hcard:hover .hcard-img img { transform: scale(1.05); }
.hcard-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,10,0.97) 0%, rgba(5,5,10,0.45) 55%, transparent 100%);
}
.hcard-body { position: relative; z-index: 2; padding: 22px; color: white; }
.hcard-big .hcard-body { padding: 28px; }
.hcard-sm  .hcard-body { padding: 16px; }
.hcard-big { min-height: 460px; }
.hcard-sm  { min-height: 160px; flex: 1; }

.hcard-cat {
    display: inline-block;
    background: var(--red);
    color: white;
    font-family: var(--font-cond);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 8px;
    margin-bottom: 8px;
}
.hcard-title {
    font-family: var(--font-cond);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.01em;
}
.hcard-big  .hcard-title { font-size: 30px; margin-bottom: 10px; }
.hcard-sm   .hcard-title { font-size: 17px; }
.hcard-excerpt {
    font-family: var(--font-ui);
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hcard-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    display: flex;
    gap: 12px;
}

/* ======================== SECTION TITLE ======================== */
.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--ink);
    letter-spacing: 0.04em;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--ink);
    position: relative;
    text-transform: uppercase;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 70px; height: 3px;
    background: var(--red);
}

/* ======================== CAT BADGE ======================== */
.cat-badge {
    display: inline-block;
    font-family: var(--font-cond);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 7px;
    color: white;
    background: var(--red);
}

/* ======================== LAYOUT ======================== */
.main-content { padding: 32px 0 60px; }
.content-cols {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
}

/* ======================== POST LIST ======================== */
.post-list { display: flex; flex-direction: column; }
.pcard {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--t);
}
.pcard:last-child { border-bottom: none; }
.pcard-img {
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--paper-2);
    flex-shrink: 0;
}
.pcard-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-body { display: flex; flex-direction: column; gap: 5px; }
.pcard-title {
    font-family: var(--font-cond);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: 0.01em;
    transition: color var(--t);
}
.pcard-title:hover { color: var(--red); }
.pcard-title a { color: inherit; }
.pcard-excerpt {
    font-size: 14px;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
    font-family: var(--font-ui);
}
.pcard-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--ink-3);
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.pcard-meta-sep { opacity: 0.3; }

/* Img placeholder */
.img-ph {
    width: 100%; height: 100%; min-height: 100px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
    font-family: var(--font-display);
    font-size: 40px;
    color: rgba(255,255,255,0.15);
}

/* ======================== SIDEBAR ======================== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--ink);
}
.widget-head {
    padding: 12px 16px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.06em;
    color: var(--ink);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.widget-body { padding: 0 16px 8px; }

.popular-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.popular-item:last-child { border-bottom: none; }
.pop-num {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--paper-2);
    line-height: 1;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}
.pop-title {
    font-family: var(--font-cond);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    transition: color var(--t);
    letter-spacing: 0.01em;
}
.pop-title:hover { color: var(--red); }
.pop-meta { font-family: var(--font-ui); font-size: 11px; color: var(--ink-3); margin-top: 3px; }

.cat-list { list-style: none; }
.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { transition: color var(--t); }
.cat-list a:hover { color: var(--red); }
.cat-count {
    background: var(--paper-2);
    font-size: 11px;
    color: var(--ink-3);
    padding: 1px 8px;
    border-radius: 20px;
    font-weight: 700;
}

/* ======================== SINGLE POST ======================== */
.post-header-wrap { background: var(--white); border-bottom: 1px solid var(--border); }
.post-header { max-width: 840px; margin: 0 auto; padding: 36px 20px 28px; }
.post-cat-row { margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.post-title {
    font-family: var(--font-cond);
    font-size: clamp(26px, 5vw, 46px);
    font-weight: 900;
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: 0.01em;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.post-deck {
    font-family: var(--font-body);
    font-size: 19px;
    color: var(--ink-2);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 18px;
}
.post-meta-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink-3);
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.post-meta-bar strong { color: var(--ink); font-weight: 700; }

.post-featured-img { max-height: 520px; overflow: hidden; }
.post-featured-img img { width: 100%; height: 520px; object-fit: cover; }
.post-img-ph {
    height: 320px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ink) 0%, #1a1a2e 100%);
    font-family: var(--font-display); font-size: 80px; color: rgba(255,255,255,0.07);
    letter-spacing: 0.1em;
}

.post-body-wrap { padding: 40px 0 60px; }
.post-body { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.post-content { font-family: var(--font-body); font-size: 18px; line-height: 1.9; color: var(--ink-2); }
.post-content p { margin-bottom: 1.4em; }
.post-content h2 { font-family: var(--font-cond); font-size: 28px; font-weight: 900; color: var(--ink); text-transform: uppercase; margin: 1.6em 0 0.5em; border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.post-content h3 { font-family: var(--font-cond); font-size: 22px; font-weight: 700; margin: 1.4em 0 0.4em; color: var(--ink); }
.post-content blockquote {
    border-left: 5px solid var(--red);
    padding: 14px 24px;
    margin: 2em 0;
    background: var(--red-light);
    font-style: italic;
    font-size: 20px;
    color: var(--ink-2);
    line-height: 1.6;
}
.post-content strong { font-weight: 700; color: var(--ink); }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.post-content li { margin-bottom: 0.4em; }
.post-content img { width: 100%; margin: 2em 0; }

/* reading bar */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); z-index: 9999; width: 0%; transition: width 0.1s linear; pointer-events: none; }

/* Share row */
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 2px solid var(--border);
    margin-top: 32px;
    font-family: var(--font-ui);
    font-size: 13px;
    flex-wrap: wrap;
}
.share-btn {
    padding: 7px 16px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--t);
}
.share-tw { background: #000; color: white; }
.share-tw:hover { background: #333; }
.share-fb { background: #1877f2; color: white; }
.share-fb:hover { background: #0d65d8; }
.share-wa { background: #25d366; color: white; }
.share-wa:hover { background: #1ebe5d; }

/* Related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--t), transform var(--t);
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-img { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-2); }
.related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.related-card:hover .related-img img { transform: scale(1.06); }
.related-body { padding: 14px; }
.related-title { font-family: var(--font-cond); font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; margin: 6px 0 8px; }
.related-meta { font-family: var(--font-ui); font-size: 11px; color: var(--ink-3); }

/* ======================== COMMENTS ======================== */
.comments-wrap { max-width: 780px; margin: 0 auto; padding: 0 20px 60px; }
.comments-title {
    font-family: var(--font-display);
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 3px solid var(--ink);
    position: relative;
}
.comments-title::after { content:''; position:absolute; bottom:-3px; left:0; width:60px; height:3px; background:var(--red); }

.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-family: var(--font-cond); font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: 0.03em; }
.comment-date { font-family: var(--font-ui); font-size: 11px; color: var(--ink-3); margin: 2px 0 8px; }
.comment-text { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.comment-form-title { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; margin: 28px 0 16px; color: var(--ink); }

/* ======================== FORMS ======================== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grp { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-lbl { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.form-inp, .form-sel, .form-ta {
    padding: 10px 14px;
    border: 2px solid var(--border);
    background: var(--white);
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--ink);
    width: 100%;
    transition: border-color var(--t);
    border-radius: 0;
}
.form-inp:focus, .form-sel:focus, .form-ta:focus { outline: none; border-color: var(--ink); }
.form-ta { resize: vertical; min-height: 100px; font-family: var(--font-body); }
.btn {
    display: inline-block;
    padding: 11px 26px;
    font-family: var(--font-cond);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--t);
}
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { background: #222; }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ======================== PAGINATION ======================== */
.pagination { display: flex; gap: 3px; justify-content: center; padding: 32px 0 8px; flex-wrap: wrap; }
.pglink {
    display: flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 8px;
    border: 2px solid var(--border);
    font-family: var(--font-cond);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    background: var(--white);
    transition: all var(--t);
    letter-spacing: 0.03em;
}
.pglink:hover, .pglink.on { background: var(--ink); color: white; border-color: var(--ink); }
.pglink.on { background: var(--red); border-color: var(--red); }

/* ======================== ALERTS ======================== */
.alert { padding: 12px 16px; margin-bottom: 16px; font-family: var(--font-ui); font-size: 14px; border-left: 4px solid; }
.alert-ok { background: #d1fae5; color: #065f46; border-color: #059669; }
.alert-err { background: #fee2e2; color: #991b1b; border-color: var(--red); }
.alert-info { background: #dbeafe; color: #1e40af; border-color: #3b82f6; }

/* ======================== ADMIN ======================== */
.adm-body { background: #f0f2f5; font-family: var(--font-ui); min-height: 100vh; }
.adm-top {
    background: var(--ink);
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 300;
    border-bottom: 3px solid var(--red);
}
.adm-logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: white;
    letter-spacing: 0.04em;
}
.adm-logo .dot { color: var(--red); }
.adm-top-right { display: flex; gap: 16px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); }
.adm-top-right a { color: rgba(255,255,255,0.5); transition: color var(--t); }
.adm-top-right a:hover { color: white; }
.adm-layout { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 52px); }
.adm-nav { background: #1a1c2a; padding: 20px 0; }
.adm-nav-sec { padding: 14px 18px 5px; font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.22); }
.adm-nav-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    border-left: 3px solid transparent;
    transition: all var(--t);
}
.adm-nav-link:hover { color: white; background: rgba(255,255,255,0.04); border-left-color: var(--red); }
.adm-nav-link.on { color: white; background: rgba(255,255,255,0.07); border-left-color: var(--red); }
.adm-main { padding: 28px; }
.adm-page-title {
    font-family: var(--font-cond);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--ink);
    text-transform: uppercase;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.stat {
    background: white;
    padding: 18px 20px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--red);
}
.stat.blue { border-left-color: #457b9d; }
.stat.green { border-left-color: #2a9d8f; }
.stat.gold  { border-left-color: var(--gold); }
.stat-n { font-family: var(--font-display); font-size: 38px; color: var(--ink); line-height: 1; letter-spacing: 0.02em; }
.stat-l { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-top: 4px; }

.adm-card { background: white; border-radius: 4px; border: 1px solid #e5e7eb; overflow: hidden; }
.adm-card-head { padding: 14px 18px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.adm-card-title { font-weight: 800; font-size: 15px; font-family: var(--font-cond); letter-spacing: 0.05em; text-transform: uppercase; }

.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th { background: #f9fafb; padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid #e5e7eb; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; font-size: 14px; vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: #fafafa; }
.t-title { font-weight: 700; color: var(--ink); max-width: 320px; }
.t-title a:hover { color: var(--red); }

.sbadge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sbadge-pub { background: #d1fae5; color: #065f46; }
.sbadge-draft { background: #fef3c7; color: #92400e; }

.t-actions { display: flex; gap: 6px; }
.t-act { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 2px; transition: all var(--t); color: var(--ink-3); }
.t-act:hover { background: var(--paper); color: var(--ink); }
.t-act.del { color: #dc2626; }
.t-act.del:hover { background: #fee2e2; }
.t-act.ok  { color: #059669; }

/* Admin form */
.adm-form-grid { display: grid; grid-template-columns: 1fr 270px; gap: 22px; align-items: start; }
.adm-panel { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 4px; padding: 16px; margin-bottom: 14px; }
.adm-panel-title { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.editor-wrap { border: 2px solid #d1d5db; border-radius: 3px; overflow: hidden; }
.editor-toolbar { background: #f9fafb; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; display: flex; gap: 3px; flex-wrap: wrap; }
.tb-btn { padding: 4px 8px; background: white; border: 1px solid #e5e7eb; border-radius: 2px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); transition: all var(--t); font-family: var(--font-ui); }
.tb-btn:hover { background: var(--ink); color: white; }
#ced { min-height: 380px; padding: 16px; font-family: var(--font-body); font-size: 16px; line-height: 1.8; outline: none; color: var(--ink); }

/* Login */
.login-page { min-height: 100vh; background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: white; padding: 40px; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo-text { font-family: var(--font-display); font-size: 32px; color: var(--ink); letter-spacing: 0.04em; }
.login-logo-text .dot { color: var(--red); }
.login-logo p { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.login-box h2 { font-family: var(--font-cond); font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

/* Empty state */
.empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty h3 { font-family: var(--font-cond); font-size: 24px; font-weight: 900; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 48px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-family: var(--font-display); font-size: 28px; color: white; letter-spacing: 0.04em; margin-bottom: 10px; display: block; }
.footer-dot { color: var(--red); }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: white;
    transition: background var(--t);
}
.footer-social a:hover { background: var(--red); }
.footer-heading { font-family: var(--font-cond); font-size: 16px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; transition: color var(--t); }
.footer-links a:hover { color: white; }
.footer-newsletter { display: flex; gap: 0; }
.footer-newsletter input {
    flex: 1; padding: 9px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white; font-family: var(--font-ui); font-size: 13px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { outline: none; background: rgba(255,255,255,0.15); }
.footer-newsletter button { padding: 9px 14px; background: var(--red); border: none; color: white; cursor: pointer; font-size: 16px; font-weight: 700; transition: background var(--t); }
.footer-newsletter button:hover { background: var(--red-dark); }
.footer-bottom {
    padding: 14px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-ui); font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-col { flex-direction: row; }
    .hcard-sm { min-height: 220px; }
    .content-cols { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .adm-layout { grid-template-columns: 1fr; }
    .adm-nav { display: none; }
    .stats { grid-template-columns: repeat(2,1fr); }
    .adm-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pcard { grid-template-columns: 1fr; }
    .pcard-img { aspect-ratio: 16/9; }
    .form-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-hamburger { display: flex; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); z-index: 201; border-top: 2px solid var(--red); }
    .nav-list.open { display: flex; }
    .nav-link { border-bottom: 1px solid rgba(255,255,255,0.07); }
    .nav-search { display: none; }
    .logo-text, .logo-dot, .logo-mx { font-size: clamp(28px, 10vw, 52px); }
    .post-title { font-size: 26px; }
    .hcard-big { min-height: 300px; }
    .hcard-big .hcard-title { font-size: 22px; }
}
