/*
Theme Name: More Caviar Royal
Author: AI Designer
Description: A luxury editorial theme for gourmet seafood and caviar connoisseurs.
Version: 14.0
*/

:root {
  /* Colors - Royal Luxury */
  --c-bg: #0A0F1D; /* Deep Sea Navy */
  --c-text: #E5E1DA; /* Soft Off-White */
  --c-primary: #C5A059; /* Royal Gold */
  --c-accent: #D4AF37;
  --c-border: #1B2430;
  --c-white: #FFFFFF;
  --c-surface: #121A2A;
  
  /* Typography */
  --f-display: 'Cormorant Garamond', serif;
  --f-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --s-container: 1400px;
  --radius: 0px;
}

/* 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.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul { list-style: none; }

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

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

.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.7);
    backdrop-filter: blur(8px);
    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;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.sidebar-menu a:hover {
    color: var(--c-primary);
    padding-left: 15px;
}

/* HEADER */
.site-header {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-border);
  background: rgba(10, 15, 29, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 3000;
}

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

.logo {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--c-primary);
  text-transform: uppercase;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.burger-icon {
    width: 30px;
    height: 1px;
    background: var(--c-primary);
    position: relative;
}
.burger-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 0;
    width: 100%;
    height: 1px;
    background: inherit;
}

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

.hero-title {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 40px;
  color: var(--c-text);
}

.hero-title span {
    color: var(--c-primary);
    display: block;
    font-style: italic;
}

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

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

.card:hover {
    border-color: var(--c-primary);
    transform: translateY(-10px);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.card:hover .card-img img { transform: scale(1.1); }

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

.card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--c-primary);
  margin-bottom: 20px;
}

.card-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--c-text);
}

.card-excerpt {
  font-size: 0.95rem;
  color: #8E949E;
  margin-bottom: 40px;
  line-height: 1.6;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--c-border);
}

.card-date {
    font-size: 0.75rem;
    color: var(--c-primary);
}

.read-more {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--c-primary);
}

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

.pagination .page-numbers {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    font-family: var(--f-display);
    font-size: 1.3rem;
}

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

/* FOOTER */
.site-footer {
  padding: 120px 0 60px;
  background: #060912;
  border-top: 1px solid var(--c-border);
}

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

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
    color: var(--c-primary);
}

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

/* ENTRY CONTENT */
.entry-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}
.entry-content h2 { font-size: 3.5rem; margin: 4rem 0 2rem; color: var(--c-primary); text-align: center; }
.entry-content p { margin-bottom: 2rem; }

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

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 60px; }
}
