/*
Theme Name: Shashlyk Grill Master
Author: AI Designer
Description: A bold, rustic brutalist theme for BBQ and grill connoisseurs.
Version: 16.0
*/

:root {
  /* Colors - Fire & Steel */
  --c-bg: #121212; /* Charcoal Deep */
  --c-text: #E0E0E0;
  --c-primary: #FF4D00; /* Flame Orange */
  --c-accent: #FFAA00; /* Ember Yellow */
  --c-border: #2A2A2A;
  --c-surface: #1E1E1E;
  --c-white: #FFFFFF;
  
  /* Typography */
  --f-display: 'Oswald', sans-serif;
  --f-body: 'Roboto', sans-serif;
  
  /* Spacing */
  --s-container: 1300px;
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

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

/* SIDEBAR NAVIGATION */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background: var(--c-surface);
    z-index: 5000;
    transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--c-primary);
}

.nav-toggle:checked ~ .sidebar-nav {
    right: 0;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

.nav-toggle:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
}

.close-sidebar {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--c-primary);
}

.sidebar-menu {
    margin-top: 60px;
}

.sidebar-menu li {
    margin-bottom: 25px;
}

.sidebar-menu a {
    font-family: var(--f-display);
    font-size: 3rem;
    color: var(--c-white);
}

.sidebar-menu a:hover {
    color: var(--c-primary);
    transform: skewX(-10deg);
}

/* HEADER */
.site-header {
  padding: 25px 0;
  background: var(--c-bg);
  position: sticky;
  top: 0;
  z-index: 3000;
  border-bottom: 2px solid var(--c-border);
}

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

.logo {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--c-white);
}

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

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-family: var(--f-display);
    font-size: 1.2rem;
    color: var(--c-primary);
}

.burger-box {
    width: 35px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.burger-box span {
    width: 100%;
    height: 3px;
    background: var(--c-primary);
}

/* HERO */
.hero {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(4rem, 9vw, 8rem);
  margin-bottom: 30px;
  text-shadow: 4px 4px 0px var(--c-primary);
}

.hero-title span { display: block; color: var(--c-white); }

/* CARDS */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 80px 0;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  position: relative;
}

.card:hover {
    border-color: var(--c-primary);
    transform: scale(1.02);
}

.card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 4px solid var(--c-primary);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card-excerpt {
  font-size: 0.95rem;
  color: #AAA;
  margin-bottom: 30px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-date {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-primary);
}

.read-link {
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: var(--c-white);
    background: var(--c-primary);
    padding: 5px 15px;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 100px;
}

.pagination .page-numbers {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    font-family: var(--f-display);
    font-size: 1.5rem;
}

.pagination .current {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
}

/* FOOTER */
.site-footer {
  padding: 100px 0 50px;
  background: #000;
  border-top: 4px solid var(--c-primary);
}

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

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--c-primary);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ENTRY CONTENT */
.entry-content {
    max-width: 850px;
    margin: 0 auto;
    background: var(--c-surface);
    padding: 60px;
    border: 1px solid var(--c-border);
}
.entry-content h2 { font-size: 2.5rem; margin: 40px 0 20px; color: var(--c-primary); }
.entry-content p { margin-bottom: 25px; line-height: 1.8; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 50px; }
  .sidebar-nav { width: 100%; }
}
