/*
Theme Name: Avtovoz Journal
Author: AI Designer
Description: A clean, editorial-style light theme with Swiss typography and asymmetrical layouts.
Version: 2.2
*/

:root {
  /* Colors - Radical Shift to Light/Editorial */
  --c-bg: #EDF2F4; /* Arctic Paper (Cool Blue-Grey) */
  --c-surface: #FFFFFF;
  --c-text-main: #1A1A1A;
  --c-text-muted: #666666;
  --c-accent: #E63946; /* International Orange */
  --c-accent-soft: #FDECEC;
  --c-border: #1A1A1A; /* High contrast black borders */
  
  /* Typography */
  --f-display: 'Oswald', sans-serif; /* Tall, condensed, loud */
  --f-body: 'Inter', sans-serif; /* Clean, modern, functional */
  
  /* Layout Spacing */
  --s-container: 1600px; /* Very wide */
  --s-gutter: 20px;
  
  /* Borders */
  --b-width: 2px;
  --b-radius: 0px; /* Sharp corners - brutalist/Swiss */
}

/* IMPORT FONTS */
/* Inter + Oswald will be loaded in functions.php, using fallbacks here */

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

body {
  background-color: var(--c-bg);
  color: var(--c-text-main);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  border: 10px solid var(--c-border); /* Frame around the site */
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--b-radius);
}

ul { list-style: none; }

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

/* BUTTONS - Sharp, High Contrast */
.btn {
  display: inline-block;
  background: var(--c-text-main);
  color: var(--c-surface);
  padding: 12px 30px;
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  border: 2px solid var(--c-text-main);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: transparent;
  color: var(--c-text-main);
}

/* HEADER - Sticky Top Bar + Big Logo Area */
.site-header {
  background: var(--c-surface);
  border-bottom: var(--b-width) solid var(--c-border);
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid #ddd;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  background: #fff;
}

.header-main {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.brand-logo {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 0.8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.brand-logo span {
  color: var(--c-accent);
}

.header-nav ul {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
}

.header-nav a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s;
}

.header-nav a:hover::before {
  transform: translateY(-50%) scale(1);
}

/* HERO - Asymmetric Magazine Style */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-bottom: var(--b-width) solid var(--c-border);
}

.hero-featured {
  position: relative;
  border-right: var(--b-width) solid var(--c-border);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-surface);
}

.hero-tag {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
  align-self: flex-start;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 0.95;
  margin-bottom: 30px;
}

.hero-side {
  background: var(--c-bg);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-list-item {
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}
.hero-list-item:last-child { border-bottom: none; }

.hero-list-date {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 5px;
  display: block;
}

.hero-list-title {
  font-size: 1.5rem;
  font-family: var(--f-display);
  font-weight: 500;
}

/* NEW BLOCK 1: FOCUS AREAS */
.focus-section {
    padding: 60px 0;
    background: var(--c-surface);
    border-bottom: var(--b-width) solid var(--c-border);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.focus-item {
    padding: 20px;
    border-left: 2px solid var(--c-accent);
}

.focus-num {
    display: block;
    font-family: var(--f-display);
    font-size: 3rem;
    color: var(--c-text-muted);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 10px;
}

.focus-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.focus-item p {
    color: var(--c-text-muted);
    margin-bottom: 20px;
}

.focus-link {
    font-family: var(--f-display);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--c-accent);
}

/* NEW BLOCK 2: MARQUEE TICKER */
.marquee-wrap {
    overflow: hidden;
    background: var(--c-text-main);
    color: #fff;
    padding: 15px 0;
    border-bottom: var(--b-width) solid var(--c-border);
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--f-display);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.marquee-content span {
    margin-right: 40px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* NEW BLOCK 3: CTA / SUBSCRIBE */
.cta-section {
    background: var(--c-accent);
    padding: 60px 0;
    color: #fff;
    border-bottom: var(--b-width) solid var(--c-border);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-input {
    flex-grow: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    outline: none;
    font-family: var(--f-body);
}

/* POSTS LAYOUT - MASONRY / BENTO */
.posts-section {
  padding: 60px 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 2px; /* Thin gap for border effect */
  background: var(--c-border); /* Borders created by gap showing background */
  border: var(--b-width) solid var(--c-border);
}

.bento-item {
  background: var(--c-surface);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  position: relative;
}

.bento-item:hover {
  background: #fffdf5; /* Slight tint on hover */
}

/* Featured item spans 2 cols & 2 rows */
.bento-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
}

.bento-featured-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.bento-featured-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-top: var(--b-width) solid var(--c-border);
}

.bento-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.bento-meta {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.bento-excerpt {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-btn {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 2px;
}

/* CONTENT STYLES (Single & Page) */
.entry-content {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #222;
}
.entry-content p {
  margin-bottom: 1.5rem;
}
.entry-content h2, .entry-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-family: var(--f-display);
}
.entry-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 2rem;
}
.entry-content ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 2rem;
}
.entry-content blockquote {
  border-left: 4px solid var(--c-accent);
  padding-left: 20px;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.4rem;
}

/* PAGINATION - NUMBERS BAR */
.pagination-bar {
  border-top: var(--b-width) solid var(--c-border);
  border-bottom: var(--b-width) solid var(--c-border);
  display: flex;
  justify-content: space-between;
  background: var(--c-surface);
  margin-top: 60px;
}

.pagination-links {
  display: flex;
}

.pagination-links .page-numbers {
  padding: 20px 30px;
  border-right: 1px solid var(--c-border);
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--c-text-main);
}

.pagination-links .current {
  background: var(--c-text-main);
  color: #fff;
}

/* FOOTER - BIG & BOLD */
.site-footer {
  background: var(--c-text-main);
  color: #fff;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--c-accent);
}

.footer-menu li {
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.footer-menu a:hover {
  margin-left: 10px;
  color: var(--c-accent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-wrapper { grid-template-columns: 1fr; }
  .hero-featured { border-right: none; border-bottom: var(--b-width) solid var(--c-border); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.featured { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 768px) {
  body { border-width: 0; }
  .container { padding: 0 20px; }
  .header-main { flex-direction: column; align-items: flex-start; gap: 20px; }
  .header-nav ul { flex-wrap: wrap; gap: 1rem; }
  .brand-logo { font-size: 3rem; }
  .hero-title { font-size: 3rem; }
  
  .focus-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; }
  
  .bento-grid { grid-template-columns: 1fr; border: none; gap: 20px; background: transparent; }
  .bento-item { border: 1px solid var(--c-border); }
  .bento-item.featured { grid-column: span 1; }
  .site-footer { grid-template-columns: 1fr; }
}
