/*
Theme Name: Spice in Heights
Theme URI: https://spiceinheights.com/
Author: Spice in Heights
Author URI: https://spiceinheights.com/
Description: Custom WordPress theme for Spice in Heights — a chef-driven Mediterranean mezze & grill in Houston Heights. Cinematic dark theme with 3D decorative accents, a single-page homepage, plus a blog index and single-post templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spice-in-heights
Tags: restaurant, one-page, blog, custom-menu, featured-images, translation-ready
*/

/*
  The full design lives in assets/css/main.css (enqueued from functions.php).
  This file only carries the required WordPress theme header above, plus a few
  blog-specific styles that build on the shared design tokens.
*/

/* ============================================
   BLOG INDEX + SINGLE POST (WordPress templates)
   ============================================ */
.page-hero {
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--section-pad) * 0.7) 1.5rem;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #1a2f52 0%, var(--void) 60%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--ivory-linen);
  margin: 0.5rem 0 0.75rem;
}
.page-hero p { color: var(--ivory-dim); max-width: 60ch; margin: 0 auto; }

.blog-wrap { max-width: var(--max-width); margin: 0 auto; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--ink-elevated);
  border: 1px solid rgba(200, 149, 42, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.5);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.post-card:hover {
  border-color: rgba(200, 149, 42, 0.5);
  box-shadow: 0 26px 50px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}
.post-card-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-black); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.6rem; }
.post-card h2, .post-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; line-height: 1.2; }
.post-card h2 a, .post-card h3 a { color: var(--ivory-linen); transition: color 0.2s ease; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gold-bright); }
.post-card p { color: var(--ivory-faint); font-size: 0.95rem; margin-bottom: 1.1rem; }
.post-card .read-more { margin-top: auto; color: var(--gold-bright); font-weight: 600; font-size: 0.9rem; }

/* Single post */
.single-post-section { max-width: 780px; margin: 0 auto; }
.single-post .post-meta { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1.75rem; text-align: center; }
.single-post .post-feature { margin: 0 auto 2.5rem; border: 1px solid rgba(245, 240, 232, 0.1); }
.single-post .post-feature img { width: 100%; height: auto; display: block; }
.single-post .entry-content { color: var(--ivory-dim); font-size: 1.05rem; line-height: 1.8; }
.single-post .entry-content > * { margin-bottom: 1.3rem; }
.single-post .entry-content h2 { color: var(--ivory-linen); font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
.single-post .entry-content h3 { color: var(--ivory-linen); margin-top: 2rem; }
.single-post .entry-content a { color: var(--gold-bright); border-bottom: 1px solid rgba(232, 184, 75, 0.4); }
.single-post .entry-content img { max-width: 100%; height: auto; }
.single-post .entry-content blockquote {
  border-left: 3px solid var(--saffron-gold);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--ivory-linen);
}
.single-post .entry-content ul, .single-post .entry-content ol { padding-left: 1.4rem; }
.single-post .entry-content li { margin-bottom: 0.5rem; }

.post-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.post-tags a { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ivory-dim); border: 1px solid rgba(200, 149, 42, 0.3); padding: 0.35rem 0.8rem; border-radius: 2px; transition: all 0.25s ease; }
.post-tags a:hover { color: var(--void); background: var(--gold-bright); border-color: var(--gold-bright); }

.post-nav { max-width: 780px; margin: 3rem auto 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-nav a { color: var(--gold-bright); font-weight: 600; font-size: 0.92rem; }
.post-nav .post-nav-prev { margin-right: auto; }
.post-nav .post-nav-next { margin-left: auto; text-align: right; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.75rem; border: 1px solid rgba(200, 149, 42, 0.3); color: var(--ivory-linen);
  font-weight: 600; transition: all 0.25s ease;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--gold-bright); color: var(--void); border-color: var(--gold-bright); }

/* Comments */
.comments-area { max-width: 780px; margin: 3.5rem auto 0; }
.comments-area h2, .comments-area h3 { color: var(--ivory-linen); margin-bottom: 1.25rem; }
.comment-list { list-style: none; }
.comment-list li { background: var(--ink-elevated); border: 1px solid rgba(245, 240, 232, 0.08); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.comment-author { color: var(--gold-bright); font-weight: 600; }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--ink-black); border: 1px solid rgba(245, 240, 232, 0.15);
  color: var(--ivory-linen); padding: 0.8rem 1rem; margin-bottom: 1rem; font-family: var(--font-body);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--saffron-gold); }

/* No-results / search */
.no-results { max-width: 780px; margin: 0 auto; text-align: center; color: var(--ivory-dim); }
