/*
 * main.css — Global styles for Chef Anand Hub WordPress theme.
 * Loaded on every page. Contains: reset, CSS variables, typography,
 * shared components (header, footer, buttons), and utility classes.
 *
 * @package ChefAnandHub
 */

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --white:       #FFFFFF;
  --off-white:   #F7F7F5;
  --dark:        #1F1F1F;
  --dark2:       #2A2A2A;
  --mid:         #555555;
  --muted:       #888888;
  --border:      #E2E2DF;
  --border-dark: #333333;
  --radius:      10px;
  /* Extended palette (used by inner pages) */
  --black:       #000000;
  --surface:     #F9FAFB;
  --border2:     #E5E7EB;
  --dash:        #D1D5DB;
  --text-mid:    #4B5563;
  --text-xs:     #6B7280;
  --text-faint:  #9CA3AF;
  --radius-sm:   6px;
  --radius-lg:   14px;
}

/* =========================================================
   BASE / TYPOGRAPHY
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, Helvetica Neue, sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.fa-x-twitter {
    color: #6B7280; /* X Brand Color */
}
/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 16px;
}

/* Logo */
.site-logo {
  font-size: 14.5px; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; flex-shrink: 0; text-decoration: none;
}
/* Custom logo image (set via WP Customizer) */
.site-logo img { height: 32px; width: auto; }

.logo-icon {
  width: 26px; height: 26px; background: var(--dark);
  border-radius: 5px; display: flex; align-items: center;
  justify-content: center; color: white; font-size: 12px;
  flex-shrink: 0;
}

/* Primary nav */
.site-navigation {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.site-navigation a,
.site-navigation li a {
  font-size: 13px; font-weight: 500; color: var(--mid);
  padding: 5px 9px; border-radius: 5px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.site-navigation a:hover,
.site-navigation li a:hover {
  color: var(--dark); background: var(--off-white);
}
.site-navigation .nav-highlight,
.site-navigation li.nav-highlight a {
  color: var(--dark); font-weight: 600;
}

/* Auth buttons */
.auth-buttons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-login {
  font-size: 13px; font-weight: 500; color: var(--mid);
  padding: 6px 12px; border-radius: 5px;
  transition: color .15s, background .15s; text-decoration: none;
}
.btn-login:hover { background: var(--off-white); color: var(--dark); }

.btn-signup {
  font-size: 13px; font-weight: 600;
  background: var(--dark); color: white;
  padding: 7px 14px; border-radius: 6px;
  transition: opacity .2s; text-decoration: none;
}
.btn-signup:hover { opacity: .82; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; font-size: 20px; color: var(--dark);
  padding: 4px;
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none; flex-direction: column;
  position: absolute; top: 56px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 24px; gap: 2px; z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a,
.mobile-nav li a {
  font-size: 14px; font-weight: 500; color: var(--mid);
  padding: 9px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; display: block;
}
.mobile-nav a:last-child,
.mobile-nav li:last-child a { border-bottom: none; }

/* =========================================================
   GLOBAL BUTTON STYLES
   ========================================================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dark); color: var(--white);
  padding: 11px 22px; border-radius: 7px;
  font-size: 13.5px; font-weight: 600;
  border: 1.5px solid var(--dark); cursor: pointer;
  transition: opacity .2s, transform .15s; white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover { opacity: .82; transform: translateY(-1px); }
.btn-primary.light { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-primary.light:hover { opacity: .9; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--dark);
  padding: 11px 22px; border-radius: 7px;
  font-size: 13.5px; font-weight: 600;
  border: 1.5px solid var(--dark); cursor: pointer;
  transition: background .2s, transform .15s; white-space: nowrap;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(0,0,0,.05); transform: translateY(-1px); }
.btn-secondary.light { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-secondary.light:hover { background: rgba(255,255,255,.08); }
.btn-small { padding: 8px 16px; font-size: 12.5px; }

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer { background: var(--dark); color: var(--white); padding: 52px 24px 24px; }
.footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 12.5px; color: rgba(255,255,255,.4); line-height: 1.6; margin-bottom: 16px; }

.footer-logo {
  font-size: 14.5px; font-weight: 700;
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.footer-logo .logo-icon {
  width: 24px; height: 24px; background: rgba(255,255,255,.12);
  border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10px;
}

.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid #333; display: flex; align-items: center;
  justify-content: center; font-size: 12px;
  color: rgba(255,255,255,.45); transition: border-color .15s, color .15s;
  text-decoration: none;
}
.footer-socials a:hover { border-color: rgba(255,255,255,.3); color: white; }

.footer-col h5 {
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.85);
  margin-bottom: 14px; letter-spacing: .02em; text-transform: uppercase;
}
.footer-col li { margin-bottom: 8px; }
.footer-col li a,
.footer-col ul li a {
  font-size: 12.5px; color: rgba(255,255,255,.42);
  transition: color .15s; text-decoration: none;
}
.footer-col li a:hover,
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
  border-top: 1px solid #2E2E2A; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; max-width: 1000px; margin: 0 auto;
}
.footer-bottom p { font-size: 11.5px; color: rgba(255,255,255,.28); }

/* =========================================================
   GENERIC PAGE / CONTENT WRAPPERS
   ========================================================= */
.page-content-wrap {
  max-width: 1000px; margin: 0 auto;
  padding: 48px 24px 80px;
  display: flex; gap: 40px;
}
.page-content-inner { flex: 1; min-width: 0; }

/* Generic page article styles */
.page-article .page-header { margin-bottom: 32px; }
.page-title {
  font-size: 32px; font-weight: 700; color: var(--dark);
  letter-spacing: -.02em; line-height: 1.2;
}
.page-featured-img { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.page-body { font-size: 14.5px; color: var(--mid); line-height: 1.8; }
.page-body h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin: 28px 0 12px; }
.page-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 22px 0 10px; }
.page-body p { margin-bottom: 14px; }
.page-body a { color: var(--dark); text-decoration: underline; }

/* 404 page */
.error-404-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; padding: 80px 24px; text-align: center;
}
.error-404-inner { max-width: 520px; }
.error-404-icon { font-size: 56px; color: var(--border); margin-bottom: 20px; }
.error-eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.error-404-inner h1 { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.error-desc { font-size: 14.5px; color: var(--mid); line-height: 1.65; margin-bottom: 28px; }
.error-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.error-search p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* Search results page */
.search-results-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 80px;
}
.search-page-header { padding: 40px 0 32px; }
.search-eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }

/* No results / no posts */
.no-posts, .no-results {
  text-align: center; padding: 60px 24px;
}
.no-posts h2, .no-results h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.no-posts p, .no-results p { font-size: 14px; color: var(--mid); }

/* WordPress search form reset */
.search-wrap .search-form { display: flex; width: 100%; }
.search-wrap .search-field {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--dash);
  border-right: none; border-radius: 8px 0 0 8px; font-size: 14px;
  font-family: inherit; outline: none; color: var(--dark);
}
.search-wrap .search-submit {
  padding: 0 20px; background: var(--dark); color: white;
  border: none; border-radius: 0 8px 8px 0; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
}

/* Post navigation (prev/next) */
.post-navigation {
  margin: 32px 0; border-top: 1px solid var(--border);
  padding-top: 24px; display: flex; justify-content: space-between;
}
.post-navigation .nav-subtitle { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.post-navigation .nav-title { font-size: 14px; font-weight: 600; color: var(--dark); }
.post-navigation a { text-decoration: none; }

/* Comment form (styled to match the theme) */
.comment-form input,
.comment-form textarea {
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13.5px;
  font-family: inherit; outline: none; color: var(--dark);
  background: var(--white); width: 100%;
  transition: border-color .13s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--dark); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--dark); color: white; border: none;
  padding: 11px 26px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: opacity .18s;
}
.comment-form .submit:hover { opacity: .82; }

/* WordPress generated pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 24px 56px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination a,
.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 50%;
  font-size: 14px; font-weight: 500; color: var(--mid);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.pagination a:hover { border-color: var(--border); color: var(--dark); }
.pagination .current { background: var(--dark); color: white; border-color: var(--dark); font-weight: 700; }
.pagination .dots { cursor: default; color: var(--muted); }

/* Sidebar */
.sidebar { width: 260px; flex-shrink: 0; }
.widget { margin-bottom: 32px; }
.widget-title { font-size: 13px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }

/* =========================================================
   SECTION HEADER (shared across multiple pages)
   ========================================================= */
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 {
  font-size: 28px; font-weight: 700; color: var(--dark);
  letter-spacing: -.02em;
}
.section-header p { font-size: 14.5px; color: var(--mid); margin-top: 10px; }

/* =========================================================
   RESPONSIVE — HEADER & FOOTER
   ========================================================= */
@media (max-width: 1024px) {
  .site-navigation { display: none; }
  .auth-buttons { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-content-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
}

@media (max-width: 600px) {
  .header-inner { padding: 12px 15px; }
  .site-logo { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}


/* ── SEARCH BAR ── */
.search-section { max-width: 1060px; margin: 0 auto; padding: 0 24px 40px; display: flex; justify-content: center; }
.search-wrap { display: flex; align-items: center; border: 1.5px solid var(--dash); border-radius: 8px; overflow: hidden; width: 100%; max-width: 540px; background: var(--white); }
.search-wrap input { flex: 1; padding: 12px 16px; border: none; outline: none; font-size: 14px; color: var(--black); font-family: inherit; background: transparent; }
.search-wrap input::placeholder { color: var(--text-faint); }
.search-btn { width: 50px; height: 50px; background: var(--black); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .2s; }
.search-btn:hover { opacity: .82; }
.search-btn svg { width: 16px; height: 16px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }



.featured-image > a > img{
  max-width: 100%;
  display:block;
  object-fit: cover;
  max-height: 50vh;
}

.article-thumb > img{
  max-width: 100%;
  display:block;
  object-fit: cover;  
  max-height: 25vh;
}