/* LoopMagazin Main CSS */

/* === VARIABLES === */
:root {
  --bg: #f7f7f7; --bg2: #ffffff; --bg3: #efefef;
  --surface: #ffffff; --border: rgba(0,0,0,0.09);
  --text: #333333; --text2: #474747; --text3: #888888;
  --accent: #FD105E; --accent2: #c40048; --red: #FD105E;
  --radius: 10px; --max-width: 1280px;
}
[data-theme="dark"] {
  --bg: #2a2a2a; --bg2: #333333; --bg3: #474747;
  --surface: #333333; --border: rgba(255,255,255,0.08);
  --text: #f2f2f2; --text2: #bbbbbb; --text3: #777777;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  line-height: 1.65; min-height: 100vh;
  transition: background .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
[data-theme="dark"] .site-header { background: rgba(42,42,42,0.93); }

.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 62px; padding: 0 24px;
}

.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--text);
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0; text-decoration: none;
}
.logo-accent { color: var(--accent); }
.logo-dot {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.main-nav { display: flex; gap: 2px; flex: 1; overflow: hidden; }
.main-nav a {
  padding: 6px 11px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--text2); transition: all .15s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.current-menu-item { color: var(--accent); }
.main-nav a.current-menu-item { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.theme-toggle {
  width: 34px; height: 34px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all .15s;
}
.theme-toggle:hover { border-color: var(--accent); }

.btn-subscribe {
  padding: 8px 18px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; border: none;
  cursor: pointer; font-family: inherit;
  transition: all .2s; white-space: nowrap;
}
.btn-subscribe:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(253,16,94,.3); }

/* === HERO === */
.hero-section { max-width: var(--max-width); margin: 32px auto 0; padding: 0 24px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 2px; background: var(--border);
  border-radius: 14px; overflow: hidden;
}
.hero-main {
  position: relative; min-height: 460px;
  background: linear-gradient(150deg, #1a0a20 0%, #0d1530 60%, #1a1010 100%);
  cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; transition: filter .2s;
}
.hero-main:hover { filter: brightness(1.06); }
.hero-main .thumb-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .35; transition: opacity .3s;
}
.hero-main:hover .thumb-bg { opacity: .45; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 55%);
}
.hero-deco {
  position: absolute; top: 20px; right: 20px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253,16,94,.25) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero-main-content { position: relative; z-index: 2; }
.hero-main h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 34px; font-weight: 400; line-height: 1.2;
  color: white; margin: 10px 0 14px;
}
.hero-main h1 em { font-style: italic; color: var(--accent); }
.hero-meta { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.45); font-size: 12px; }
.hero-meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.hero-meta .read-time { color: var(--accent); font-weight: 600; }

.hero-side { display: contents; }
.hero-card {
  background: linear-gradient(150deg, #0f2535 0%, #1a1530 100%);
  padding: 20px; display: flex; flex-direction: column;
  justify-content: flex-end; cursor: pointer;
  min-height: 229px; position: relative; overflow: hidden;
  transition: filter .2s;
}
.hero-card:hover { filter: brightness(1.08); }
.hero-card .thumb-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.hero-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 50%); }
.hero-card-content { position: relative; z-index: 2; }
.hero-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 17px; font-weight: 400; line-height: 1.35;
  color: white; margin-top: 8px;
}
.hero-card .meta { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 6px; }

/* === CAT BADGES === */
.cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.cat-ai-automatizalas { background: rgba(253,16,94,.12); color: #FD105E; border: 1px solid rgba(253,16,94,.3); }
.cat-tech             { background: rgba(51,51,51,.08);  color: #333; border: 1px solid rgba(51,51,51,.2); }
.cat-uzlet            { background: rgba(71,71,71,.08);  color: #474747; border: 1px solid rgba(71,71,71,.2); }
.cat-startupok        { background: rgba(255,107,53,.12); color: #d94e10; border: 1px solid rgba(255,107,53,.3); }
.cat-penz-befektetes  { background: rgba(196,0,72,.1);   color: #c40048; border: 1px solid rgba(196,0,72,.25); }
.cat-karrier-novekedes { background: rgba(71,71,71,.07); color: #555; border: 1px solid rgba(71,71,71,.15); }
[data-theme="dark"] .cat-tech  { background: rgba(255,255,255,.1); color: #ccc; border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .cat-uzlet { background: rgba(255,255,255,.08); color: #aaa; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .cat-karrier-novekedes { background: rgba(255,255,255,.07); color: #aaa; border-color: rgba(255,255,255,.1); }

/* === CAT STRIP === */
.cat-strip { max-width: var(--max-width); margin: 24px auto 0; padding: 0 24px; }
.cat-strip-inner { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 7px 16px; border-radius: 24px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: all .15s;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text2);
  text-decoration: none; display: inline-block;
}
.cat-pill:hover { transform: translateY(-1px); }
.cat-pill.pill-ai    { color: #FD105E; border-color: rgba(253,16,94,.3); }
.cat-pill.pill-ai:hover { background: rgba(253,16,94,.07); }
.cat-pill.pill-tech  { color: #333; border-color: rgba(51,51,51,.2); }
.cat-pill.pill-tech:hover { background: rgba(51,51,51,.06); }
.cat-pill.pill-biz   { color: #474747; border-color: rgba(71,71,71,.2); }
.cat-pill.pill-biz:hover { background: rgba(71,71,71,.06); }
.cat-pill.pill-startup { color: #d94e10; border-color: rgba(255,107,53,.3); }
.cat-pill.pill-startup:hover { background: rgba(255,107,53,.08); }
.cat-pill.pill-penz  { color: #c40048; border-color: rgba(196,0,72,.25); }
.cat-pill.pill-penz:hover { background: rgba(196,0,72,.07); }
.cat-pill.pill-karrier { color: #555; border-color: rgba(71,71,71,.15); }
.cat-pill.pill-karrier:hover { background: rgba(71,71,71,.06); }

/* === MAIN LAYOUT === */
.main-wrap {
  max-width: var(--max-width); margin: 36px auto;
  padding: 0 24px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; align-items: start;
}

/* === ROVAT SECTIONS === */
.rovat-section { margin-bottom: 44px; }
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-header h2, .section-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-link {
  font-size: 12px; color: var(--accent); font-weight: 600;
  white-space: nowrap; transition: opacity .15s;
}
.section-link:hover { opacity: .75; }

/* === ARTICLE CARDS === */
.rovat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.rovat-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.rovat-grid.cols-1 { grid-template-columns: 1fr; }

.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer; transition: all .2s;
}
.article-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
[data-theme="dark"] .article-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.3); }

.article-thumb {
  height: 160px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a0520, #0d0a30);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-thumb img { transform: scale(1.03); }
.thumb-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; }
.thumb-icon { font-size: 48px; opacity: .2; }

/* Thumb gradient classes */
.thumb-ai      { background: linear-gradient(135deg, #1a0520, #0d0a30); }
.thumb-tech    { background: linear-gradient(135deg, #0a1a2a, #0f2535); }
.thumb-biz     { background: linear-gradient(135deg, #1a1505, #252010); }
.thumb-startup { background: linear-gradient(135deg, #1a0a05, #251505); }
.thumb-penz    { background: linear-gradient(135deg, #0a1a10, #102015); }
.thumb-karrier { background: linear-gradient(135deg, #141414, #1e1e1e); }

/* Featured card */
.article-card.featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 2fr 3fr;
}
.article-card.featured .article-thumb { height: auto; min-height: 200px; }

.article-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.article-body h3, .article-body h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.35;
  color: var(--text);
}
.article-card.featured .article-body h3 { font-size: 20px; }
.article-excerpt { font-size: 13px; color: var(--text2); line-height: 1.65; flex: 1; }
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.article-author { font-size: 12px; color: var(--text3); }
.article-time { font-size: 11px; color: var(--text3); }
.read-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-top: 12px;
}
.read-more::after { content: '→'; transition: transform .15s; }
.read-more:hover::after { transform: translateX(4px); }

/* === SIDEBAR === */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; margin-bottom: 24px;
}
.sidebar-widget.newsletter {
  background: linear-gradient(135deg, rgba(253,16,94,.07), rgba(253,16,94,.02));
  border-color: rgba(253,16,94,.2);
}
.sidebar-widget h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text); margin-bottom: 12px;
}
.sidebar-widget p { font-size: 13px; color: var(--text2); line-height: 1.55; margin-bottom: 14px; }
.newsletter-input {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; margin-bottom: 8px;
  font-family: inherit; transition: border-color .15s;
}
.newsletter-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(253,16,94,.1); }
.newsletter-btn {
  width: 100%; padding: 10px; border-radius: 8px;
  background: var(--accent); color: white;
  font-size: 13px; font-weight: 700; border: none;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.newsletter-btn:hover { background: var(--accent2); transform: translateY(-1px); }

.trending-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item:first-child { padding-top: 0; }
.trend-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 18px;
  font-weight: 800; color: var(--border); min-width: 24px;
  line-height: 1; transition: color .15s;
}
.trending-item:hover .trend-num { color: var(--accent); }
.trend-content h4 { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.trend-content .meta { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* === SINGLE POST === */
.post-header { max-width: 800px; margin: 40px auto 0; padding: 0 24px; }
.post-header .cat-badge { margin-bottom: 16px; }
.post-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 4vw, 48px); font-weight: 400; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}
.post-meta { display: flex; align-items: center; gap: 12px; color: var(--text3); font-size: 13px; margin-bottom: 28px; }
.post-meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.post-meta .read-time { color: var(--accent); font-weight: 600; }
.post-featured-img { max-width: 800px; margin: 0 auto 32px; padding: 0 24px; }
.post-featured-img img { width: 100%; border-radius: 12px; }
.post-content { max-width: 800px; margin: 0 auto; padding: 0 24px 60px; }
.post-content p { font-size: 17px; line-height: 1.8; color: var(--text); margin-bottom: 24px; }
.post-content h2 { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 400; color: var(--text); margin: 36px 0 16px; }
.post-content h3 { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 400; color: var(--text); margin: 28px 0 12px; }
.post-content ul, .post-content ol { padding-left: 28px; margin-bottom: 24px; }
.post-content li { font-size: 17px; line-height: 1.8; color: var(--text); margin-bottom: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--accent); padding: 16px 24px;
  margin: 28px 0; background: var(--bg3); border-radius: 0 8px 8px 0;
}
.post-content blockquote p { font-size: 19px; font-style: italic; color: var(--text2); margin: 0; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content img { border-radius: 8px; margin: 24px 0; }

/* === CATEGORY PAGE === */
.archive-header { max-width: var(--max-width); margin: 36px auto 0; padding: 0 24px 24px; }
.archive-title {
  font-family: 'Oswald', sans-serif; font-size: 36px; color: var(--text); margin-bottom: 6px;
}
.archive-desc { font-size: 15px; color: var(--text2); }

/* === FOOTER === */
.site-footer {
  margin-top: 32px; padding: 36px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px;
}
.footer-brand .site-logo { font-size: 19px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.6; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text3); margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}
.footer-col a { display: block; font-size: 13px; color: var(--text2); margin-bottom: 7px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width); margin: 20px auto 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text3);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .rovat-grid { grid-template-columns: repeat(2,1fr); }
  .article-card.featured { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .header-inner { gap: 16px; }
}
@media (max-width: 600px) {
  .hero-section, .cat-strip, .main-wrap { padding: 0 16px; }
  .hero-section { margin-top: 20px; }
  .rovat-grid, .rovat-grid.cols-2 { grid-template-columns: 1fr; }
  .article-card.featured { grid-template-columns: 1fr; }
  .hero-main { min-height: 280px; padding: 16px; }
  .hero-main h1 { font-size: 24px; }
  .hero-side { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .main-wrap { margin: 24px auto; }
}

/* ── Logo V2 wordmark ── */
.logo-v2 { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-decoration: none; }
.logo-top { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 28px; color: #1a1a1a; letter-spacing: 3px; }
.logo-top em { color: #FD105E; font-style: normal; }
.logo-bottom { font-family: 'Oswald', sans-serif; font-weight: 300; font-size: 11px; color: #474747; letter-spacing: 9px; border-top: 2px solid #FD105E; padding-top: 3px; width: 100%; margin-top: 2px; }
[data-theme='dark'] .logo-top { color: #fff; }
[data-theme='dark'] .logo-bottom { color: #aaa; }

/* ── Brandbook 2026 alkalmazás ── */
h1,h2,h3,.post-title,.entry-title {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
}
h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 500; }

/* Kategória label — piros, uppercase */
.category-label, .cat-label, .post-cat, .entry-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FD105E !important;
}

/* Lead szöveg */
.post-content > p:first-of-type {
  font-size: 20px;
  color: #474747;
  line-height: 1.7;
  font-weight: 400;
}

/* Kártyák egységes stílus */
.post-card, .article-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover, .article-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* CTA gomb brandbook szerint */
.btn-subscribe, .cta-btn, button.primary {
  background: #FD105E !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  letter-spacing: .5px;
}
