/*
Theme Name: OLIVE
Theme URI: https://creativemakery.com
Author: Creative Makery
Description: Premium Kadence child theme for food & wellness bloggers. Beautiful sage green palette, recipe-focused design, perfect for food photographers and nutritionists.
Version: 1.0.0
Template: kadence
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olive
Domain Path: /languages
*/

/* Import parent theme styles */
@import url('../kadence/style.css');

/* ============================================
   OLIVE CHILD THEME STYLES
   ============================================ */

:root {
  /* OLIVE Color Palette */
  --primary: #556b4f;
  --primary-light: #6d8660;
  --primary-dark: #3d4d38;
  --secondary: #c9a876;
  --secondary-light: #dfc4a5;
  --tertiary: #8b7355;
  --accent: #d4a574;
  --wellness: #a8b8a0;
  
  --neutral-dark: #2a2a2a;
  --neutral-light: #faf9f6;
  --neutral-gray: #9a9a9a;
  --border: #e8e3dd;

  /* Typography */
  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --font-accent: "Crimson Text", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(85, 107, 79, 0.05);
  --shadow-md: 0 4px 6px rgba(85, 107, 79, 0.08);
  --shadow-lg: 0 10px 15px rgba(85, 107, 79, 0.1);
  --shadow-xl: 0 20px 25px rgba(85, 107, 79, 0.1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--neutral-dark);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--neutral-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn,
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--neutral-dark);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   POST & RECIPE CARD STYLES
   ============================================ */

.post-card,
.recipe-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.post-card:hover,
.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.post-card__image,
.recipe-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.post-card__content,
.recipe-card__content {
  padding: var(--spacing-lg);
}

.post-card__title,
.recipe-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-dark);
}

.post-card__meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--neutral-gray);
  margin-bottom: var(--spacing-md);
}

.post-card__excerpt {
  color: var(--neutral-dark);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.post-card__category {
  display: inline-block;
  background-color: var(--primary-light);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

/* ============================================
   RECIPE SPECIFIC STYLES
   ============================================ */

.recipe-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: var(--spacing-xxl) var(--spacing-lg);
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.recipe-header h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--neutral-light);
  border-radius: 12px;
}

.recipe-meta__item {
  text-align: center;
}

.recipe-meta__label {
  font-size: 0.875rem;
  color: var(--neutral-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.recipe-meta__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  font-weight: 600;
}

.ingredients-section,
.instructions-section {
  margin-bottom: var(--spacing-xl);
}

.ingredients-section h2,
.instructions-section h2 {
  border-bottom: 3px solid var(--secondary);
  padding-bottom: var(--spacing-md);
  color: var(--primary);
}

.ingredients-list {
  list-style: none;
  padding: 0;
}

.ingredients-list li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.ingredients-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.25rem;
}

.instructions-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.instructions-list li {
  padding: var(--spacing-md);
  padding-left: var(--spacing-xxl);
  position: relative;
  margin-bottom: var(--spacing-md);
  background: var(--neutral-light);
  border-radius: 8px;
  counter-increment: step-counter;
}

.instructions-list li:before {
  content: counter(step-counter);
  position: absolute;
  left: var(--spacing-md);
  top: var(--spacing-md);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-display);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-branding {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--neutral-dark);
  color: var(--neutral-light);
  padding: var(--spacing-xxl) var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}

.site-footer a {
  color: var(--secondary-light);
}

.site-footer a:hover {
  color: var(--secondary);
}

/* ============================================
   SIDEBAR & WIDGETS
   ============================================ */

.widget {
  background: white;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.widget h3 {
  border-bottom: 2px solid var(--secondary);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: var(--primary);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.widget li:last-child {
  border-bottom: none;
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--neutral-dark);
  transition: border-color 0.2s ease;
  margin-bottom: var(--spacing-md);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 107, 79, 0.1);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--neutral-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .recipe-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .no-print {
    display: none !important;
  }
}
