/*
Theme Name: Botranos HU v1
Theme URI: https://botranos.hu
Description: Satirical Hungarian news site with Mexican flair
Author: Mindwave
Version: 0.2.0
Text Domain: botranos-hu
*/

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
    /* Hungarian × Mexican palette */
    --red:      #CE2939;
    --green:    #2A7A4B;
    --orange:   #FF6B1A;
    --gold:     #F5C400;
    --pink:     #E91E8C;
    --black:    #0A0A0A;
    --gray-dk:  #1C1C1C;
    --gray-md:  #555;
    --gray-lt:  #E8E8E8;
    --bg:       #F7F4EF;
    --white:    #FFFFFF;

    --font-head: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    --font-ui:   'Inter', 'Helvetica Neue', Arial, sans-serif;

    --radius:   4px;
    --shadow:   0 2px 12px rgba(0,0,0,.10);
    --shadow-lg:0 8px 32px rgba(0,0,0,.16);
    --max-w:    1260px;
    --pad:      1.5rem;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--black);
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color .15s; }
ul  { list-style: none; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    line-height: 1.08;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   UTILITY
───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.cat-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 2px;
    background: var(--red);
    color: var(--white);
    line-height: 1;
}
.cat-badge.green  { background: var(--green); }
.cat-badge.orange { background: var(--orange); }
.cat-badge.gold   { background: var(--gold); color: var(--black); }
.cat-badge.pink   { background: var(--pink); }

/* ─────────────────────────────────────────
   TICKER
───────────────────────────────────────── */
.ticker-bar {
    background: var(--red);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-bar .ticker-inner {
    display: flex;
    align-items: stretch;
    position: relative;
}
.ticker-bar .ticker-label {
    background: var(--black);
    padding: .45rem 1rem;
    flex-shrink: 0;
    letter-spacing: .12em;
    position: relative;
    z-index: 10;
}
.ticker-bar .ticker-scroll {
    padding: .45rem 1.5rem;
    animation: ticker 28s linear infinite;
}
@keyframes ticker {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
#site-header {
    background: var(--white);
    border-bottom: 3px solid var(--gray-lt);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 90px;
}

/* Rotated logo box */
.logo-wrap {
    flex-shrink: 0;
    padding: 8px 0;
}
.logo-box {
    background: var(--black);
    display: inline-block;
    padding: .55rem 1.4rem .5rem;
    transform: rotate(10deg);
    position: relative;
    box-shadow: 4px 4px 0 var(--red);
}
.logo-box a {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--white);
    letter-spacing: .08em;
    line-height: 1;
    display: block;
    white-space: nowrap;
}
.logo-box a .n-tilde {
    color: var(--gold);
}

.header-tagline {
    font-size: .72rem;
    color: var(--gray-md);
    font-style: italic;
    flex: 1;
    padding-left: .5rem;
}

/* Nav */
#site-nav { margin-left: auto; }
#site-nav ul {
    display: flex;
    gap: .15rem;
    align-items: center;
}
#site-nav ul li a {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .45rem .85rem;
    border-radius: var(--radius);
    color: var(--gray-dk);
    transition: background .15s, color .15s;
}
#site-nav ul li a:hover {
    background: var(--red);
    color: var(--white);
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero-section { margin-bottom: 3rem; }

.hero-article {
    position: relative;
    overflow: hidden;
    background: var(--black);
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    transition: transform .5s;
}
.hero-article:hover .hero-image { transform: scale(1.03); }

.hero-image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red) 0%, #7B0E18 40%, var(--green) 100%);
    opacity: .7;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}

.hero-content .cat-badge { margin-bottom: .75rem; }

.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--white);
    margin-bottom: .75rem;
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-content h1 a { color: var(--white); }
.hero-content h1 a:hover { color: var(--gold); }

.hero-excerpt {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 1rem;
}

.hero-meta {
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hot-badge {
    background: var(--orange);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 2px;
}

/* ─────────────────────────────────────────
   SECTION TITLES
───────────────────────────────────────── */
.section-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 3px solid var(--black);
}
.section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: var(--red);
    opacity: .25;
}
.section-title .accent { color: var(--red); }

/* ─────────────────────────────────────────
   CONTENT GRID (home)
───────────────────────────────────────── */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--gray-lt);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-lt);
    position: relative;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.news-card:hover .card-thumb img { transform: scale(1.05); }

.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-body .cat-badge { margin-bottom: .6rem; }
.card-body h2 {
    font-size: 1.15rem;
    font-family: var(--font-head);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.2;
    margin-bottom: .5rem;
    flex: 1;
}
.card-body h2 a:hover { color: var(--red); }
.card-meta {
    font-size: .75rem;
    color: var(--gray-md);
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--gray-lt);
    display: flex;
    gap: .75rem;
}

/* ─────────────────────────────────────────
   MEXICAN TWIST BOX
───────────────────────────────────────── */
.mexican-twist-section {
    background: linear-gradient(135deg, var(--green) 0%, #1a5c34 100%);
    color: var(--white);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.mexican-twist-section::before {
    content: '🌮🌵🎺';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: .2;
}
.mexican-twist-section .twist-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
}
.mexican-twist-section .twist-title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: .5rem;
}
.mexican-twist-section p { opacity: .85; max-width: 580px; }

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
    background: var(--white);
    border: 1px solid var(--gray-lt);
    border-radius: var(--radius);
    overflow: hidden;
}
.widget-title {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--black);
    color: var(--gold);
    padding: .6rem 1rem;
}
.widget-body { padding: 1rem; font-size: .9rem; }

.widget-recent-post {
    display: flex;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--gray-lt);
    align-items: flex-start;
}
.widget-recent-post:last-child { border-bottom: none; }
.widget-recent-post .rp-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.widget-recent-post .rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.widget-recent-post h4 {
    font-size: .85rem;
    font-family: var(--font-ui);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
}
.widget-recent-post h4 a:hover { color: var(--red); }
.widget-recent-post .rp-date { font-size: .72rem; color: var(--gray-md); margin-top: .2rem; }

/* About widget */
.widget-about-text { font-size: .88rem; line-height: 1.6; color: var(--gray-md); }
.widget-about-flag { font-size: 2rem; margin-bottom: .5rem; }

/* ─────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────── */
.single-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    margin: 2.5rem auto;
}
.single-wrap.container { padding-top: 0; }

.article-header { margin-bottom: 1.5rem; }
.article-header .cat-badge { margin-bottom: .75rem; }
.article-header h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.05;
}
.article-header .article-meta {
    font-size: .82rem;
    color: var(--gray-md);
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    padding: .75rem 0;
    border-top: 2px solid var(--black);
    border-bottom: 1px solid var(--gray-lt);
}
.article-header .article-meta strong { color: var(--black); }

.article-featured {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-lt);
}
.article-featured img { width: 100%; max-height: 520px; object-fit: cover; }

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 720px;
}
.article-content p { margin-bottom: 1.35rem; }
.article-content h2 {
    font-size: 1.7rem;
    margin: 2.5rem 0 .75rem;
}
.article-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 .6rem;
}
.article-content blockquote {
    border-left: 4px solid var(--red);
    background: var(--white);
    padding: 1.1rem 1.4rem;
    margin: 1.75rem 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Mexican twist callout — use inside articles */
.twist-callout {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem 1.1rem 1.4rem;
    margin: 1.75rem 0;
    font-size: .95rem;
    position: relative;
    overflow: hidden;
}
.twist-callout .twist-icon {
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9rem;
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.twist-callout > *:not(.twist-icon) { position: relative; z-index: 1; }
.twist-callout strong { color: var(--green); }

/* ─────────────────────────────────────────
   PAGE
───────────────────────────────────────── */
.page-header {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
}
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    border-bottom: 3px solid var(--gold);
    padding-bottom: .5rem;
    display: inline-block;
}
.page-content-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    margin-bottom: 3rem;
}
.page-content { font-size: 1.05rem; line-height: 1.8; }
.page-content p { margin-bottom: 1.25rem; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
#site-footer {
    background: var(--gray-dk);
    color: var(--white);
    border-top: 4px solid var(--red);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo-box {
    background: var(--black);
    display: inline-block;
    padding: .45rem 1.1rem;
    transform: rotate(10deg);
    margin-bottom: 1.5rem;
    box-shadow: 3px 3px 0 var(--red);
}
.footer-logo-box span {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: .08em;
}
.footer-logo-box .n-tilde { color: var(--gold); }
.footer-about { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: .1em;
    color: var(--gold);
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul li { padding: .25rem 0; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    text-align: center;
    font-size: .78rem;
    color: rgba(255,255,255,.35);
}
.footer-bottom .footer-flags { font-size: 1.4rem; margin-bottom: .35rem; }

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.posts-pagination {
    margin-top: 2.5rem;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.posts-pagination .page-numbers {
    padding: .5rem .9rem;
    border: 2px solid var(--black);
    font-weight: 700;
    font-size: .85rem;
    border-radius: var(--radius);
    transition: background .15s, color .15s;
}
.posts-pagination a.page-numbers:hover,
.posts-pagination .current {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
    .home-grid,
    .single-wrap,
    .page-content-wrap { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .cards-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .logo-box a { font-size: 1.5rem; }
    .header-tagline { display: none; }
    #site-nav { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-article { min-height: 360px; }
    .hero-content h1 { font-size: 1.6rem; }
}

/* ─────────────────────────────────────────
   AUTHOR BIO BOX
───────────────────────────────────────── */
.author-bio-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg);
    border: 2px solid var(--gray-lt);
    border-left: 5px solid var(--red);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-top: 2.5rem;
}
.author-bio-avatar img,
.author-bio-avatar .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--gold);
}
.author-bio-name {
    font-family: var(--font-head);
    font-size: 1.3rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--black);
}
.author-bio-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--red);
    margin-bottom: .5rem;
}
.author-bio-content p {
    font-size: .9rem;
    color: var(--gray-md);
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────
   RÓLUNK PAGE — TEAM GRID
───────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.team-card {
    background: var(--white);
    border: 1px solid var(--gray-lt);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.team-card .team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto .75rem;
    border: 3px solid var(--gold);
    display: block;
}
.team-card .team-name {
    font-family: var(--font-head);
    font-size: 1.25rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}
.team-card .team-role {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--red);
    margin-bottom: .75rem;
}
.team-card p {
    font-size: .85rem;
    color: var(--gray-md);
    line-height: 1.6;
    text-align: left;
}
@media (max-width: 700px) {
    .team-grid { grid-template-columns: 1fr; }
}
