/*
Theme Name: Himanshu Custom Theme
Theme URI: https://github.com/himanshu-media/himanshu-custom-theme
Author: Himanshu Media & Co.
Author URI: https://himanshumedia.com
Description: A lightweight, clean, fast, white-aesthetic custom WordPress theme inspired by Astra. Designed for high performance, accessibility, seamless Gutenberg editor integration, and flexible customizer options.
Version: 1.1.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: himanshu-theme
Tags: light, custom-colors, custom-menu, featured-images, full-width-template, theme-options, grid-layout, two-columns, responsive-layout
*/

/* ==========================================================================
   DESIGN TOKENS - ASTRA-LIKE LIGHT & CLEAN AESTHETIC
   ========================================================================== */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Clean White Palette */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-dim: #94a3b8;

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent: #0284c7;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-primary);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-alt);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background: var(--color-bg-alt);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

/* Layout */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  flex: 1;
  padding: 3rem 0;
}

/* Content Box (Astra Boxed Style) */
.site-content-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff !important;
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text-main) !important;
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border-hover);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER (ASTRA STYLE - CLEAN WHITE & SIMPLE)
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--color-text-main);
}

.site-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Main Navigation */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.main-navigation a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--color-primary);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-container {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   BLOG & POST LOOPS
   ========================================================================== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: var(--color-text-main);
}

.post-title a:hover {
  color: var(--color-primary);
}

.post-excerpt {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* Single Post & Page */
.single-post-title,
.entry-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.entry-content p {
  margin-bottom: 1.5rem;
}

/* Sidebar & Widgets */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.pagination .page-numbers {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 0.9rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ==========================================================================
   FOOTER (CLEAN ASTRA STYLE)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
