/* MeatRecipeBox Custom Theme - Warm, Inviting Recipe Site */

/* Color Palette - Warm and Inviting */
:root {
  --primary-red: #d04e3b;
  --dark-red: #a83f2f;
  --warm-bg: #fef9f5;
  --cream: #f5f0eb;
  --dark-text: #2d2d2d;
  --light-text: #666;
}

/* Body and Background */
body {
  background-color: var(--warm-bg) !important;
  color: var(--dark-text) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.7;
}

/* Make text more readable */
p, li, span {
  font-weight: 500;
  color: #2d2d2d;
}

strong, b {
  font-weight: 700;
}

/* Header/Navigation - Make menu beautiful and visible */
header {
  background-color: white !important;
  padding: 1.5rem 0;
  border-bottom: 3px solid #d04e3b;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header nav a, header a, header nav ul li a, 
header nav ul li a.hover-white, 
header nav ul li a.white-90, 
header nav ul li a.no-underline,
nav a, nav a.hover-white, nav a.white-90 {
  color: #000000 !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  border-radius: 6px;
  margin: 0 0.25rem;
  background: transparent !important;
}

header nav a:hover, header a:hover, header nav ul li a:hover,
nav a:hover {
  color: #d04e3b !important;
  background-color: #fef9f5 !important;
  transform: translateY(-2px);
}

/* Target all navigation links in header */
header nav ul li a.hover-white {
  color: #000000 !important;
  font-weight: 900 !important;
}

header nav ul li a.white-90 {
  color: #000000 !important;
  font-weight: 900 !important;
}

/* Site title in header */
.site-title, header h1, header .f3, header .site-title-logo {
  color: #d04e3b !important;
  font-weight: 900 !important;
  font-size: 2rem !important;
  text-transform: none !important;
  letter-spacing: -0.5px;
}

/* Main Title/Hero */
.hero-title, .site-title {
  color: white !important;
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin: 3rem 0;
}

/* Article Cards/Posts */
article {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(208, 78, 59, 0.15);
}

/* Images - Fix rendering and aspect ratio */
article img, .post img, .recipe-card img, img[src*="uploads"] {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 8px;
  margin: 1rem 0;
  display: block !important;
  visibility: visible !important;
}

/* Home page featured images */
.home-post-image, .featured-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: 0;
}

/* Fix weird image shapes in articles */
.content img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
}

/* Buttons */
button, .read-more, .btn {
  background-color: var(--primary-red);
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
}

button:hover, .read-more:hover, .btn:hover {
  background-color: var(--dark-red);
}

/* Links */
a {
  color: var(--primary-red);
  text-decoration: none;
}

a:hover {
  color: var(--dark-red);
  text-decoration: underline;
}

/* Search Bar Styling */
.search-bar {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 2rem auto;
  max-width: 600px;
}

.search-bar input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--cream);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.search-results {
  margin-top: 2rem;
}

/* Recipe Cards */
.recipe-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.recipe-card-content {
  padding: 1.5rem;
}

/* Page Headers */
h1, h2, h3 {
  color: var(--dark-text);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  color: var(--primary-red);
}

/* Footer */
footer {
  background-color: var(--dark-text);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title, .site-title {
    font-size: 2rem;
  }
  
  article {
    padding: 1rem;
  }
}

/* Override Ananke dark theme */
.bg-black, .bg-near-black, .near-black {
  background-color: var(--warm-bg) !important;
  color: var(--dark-text) !important;
}

.white, .near-white {
  color: var(--dark-text) !important;
}

/* Force header colors */
.site-header, nav, header, .top-nav {
  background-color: var(--dark-text) !important;
}

.site-header a, nav a, header a, .top-nav a {
  color: #2d2d2d !important;
  font-weight: 700 !important;
}

/* Ananke theme overrides */
body {
  background-color: var(--warm-bg) !important;
}

/* Make ALL header/nav links visible - BLACK AND BOLD */
.site-title, .f3, .nav-link, .link, a.f3 {
  color: #2d2d2d !important;
  font-weight: 700 !important;
}

/* Main content area */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* List view improvements */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

