/*
Theme Name: SpiceBiteHub Custom
Theme URI: https://spicebitehub.com
Author: SpiceBiteHub
Description: A custom, lightning fast, spicy dark theme designed perfectly for recipes and Google AdSense integration.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
Text Domain: spicebitehub
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  /* SpiceBiteHub Theme */
  --bg-dark: #121212;
  --bg-card: #1E1E1E;
  --bg-card-hover: #2A2A2A;
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  
  --primary-accent: #FF5A1F; /* Fiery Spice Orange */
  --primary-hover: #E04A15;
  --secondary-accent: #FFA048;

  --nav-bg: rgba(18, 18, 18, 0.8);
  --border-subtle: #333;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-accent {
  color: var(--primary-accent);
}

.btn {
  display: inline-block;
  background: var(--primary-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition-fast);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn:hover {
  background: var(--primary-hover);
}

.badge {
  background: rgba(255, 90, 31, 0.15);
  color: var(--primary-accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* AdSpace Placeholder Container (Hidden by default as requested) */
.ad-container {
  display: none; /* Site Kit or Real AdSense Code handles visibility naturally */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-bar .navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px; 
  }
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.brand {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  transition: color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-accent);
}

/* Page Layout Wrapper */
.page-wrapper {
  padding-top: 100px; /* offset navbar */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-content {
  flex: 1;
}

/* Footer */
footer.site-footer {
  background: #0A0A0A;
  padding: 60px 0 40px;
  margin-top: 80px;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary-accent);
}
.copyright {
  margin-top: 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Recipe Grid */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.recipe-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: var(--primary-accent);
}
.recipe-img-container {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.recipe-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.recipe-card:hover .recipe-img-container img {
  transform: scale(1.05);
}
.recipe-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recipe-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.recipe-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 15px;
}

/* Hero Section */
.hero-section {
  padding: 20px;
}
.hero-container {
  position: relative; 
  height: 500px; 
  border-radius: 24px; 
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.hero-bg-image {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(18,18,18,0.95), transparent); z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; max-width: 600px;
}

/* Category Filters */
.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.category-btn:hover {
  background: rgba(60, 60, 60, 0.8);
}
.category-btn.active {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
}

/* WP Content Formatting */
.wp-content, .recipe-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}
.wp-content p, .recipe-content p {
  margin-bottom: 20px;
}
.wp-content h2, .recipe-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: white;
}

/* Custom Checkbox styles for Ingredients (ul) */
.wp-content ul, .recipe-content ul {
  list-style: none; /* Hide default bullets */
  margin-left: 0;
  margin-bottom: 30px;
}
.wp-content ul li, .recipe-content ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  background: var(--bg-card);
  padding: 16px 16px 16px 48px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.wp-content ul li:hover, .recipe-content ul li:hover {
  background: var(--bg-card-hover);
}
.wp-content ul li::before, .recipe-content ul li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-accent);
  border-radius: 4px;
  background: transparent;
}

/* Custom Number styles for Instructions (ol) */
.wp-content ol, .recipe-content ol {
  list-style: none;
  counter-reset: custom-counter;
  margin-left: 0;
  margin-bottom: 30px;
}
.wp-content ol li, .recipe-content ol li {
  counter-increment: custom-counter;
  margin-bottom: 20px;
  position: relative;
  padding-left: 60px;
}
.wp-content ol li::before, .recipe-content ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 90, 31, 0.1);
  color: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
