/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --primary: #111827;
  --accent: #ff6b35;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --text: #111827;
  --text-light: #6b7280;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(17,24,39,0.08);
  --shadow-lg: 0 16px 48px rgba(17,24,39,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1140px;
  --accent-light: #fff3ed;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
a { display: inline-block; text-align: center; }

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  font-family: 'Lora', serif;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* === HEADER === */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 102;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  transition: var(--transition);
}
.nav-toggle-label span { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.nav-toggle-label span::before { content: ''; top: -7px; left: 0; }
.nav-toggle-label span::after { content: ''; top: 7px; left: 0; }

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

@media(max-width:768px) {
  .nav-toggle-label { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 101;
  }
  .site-nav a { font-size: 1.3rem; }
  .nav-toggle:checked ~ .site-nav { transform: translateX(0); }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}
.breadcrumbs a {
  color: var(--text-light);
  text-decoration: none;
  text-align: left;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.4rem; opacity: 0.5; }

/* === ARTICLE === */
.article-hero { padding: 2rem 0 1rem; }
.article-hero h1 { margin-bottom: 1rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.article-meta .meta-item { display: flex; align-items: center; gap: 0.35rem; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-light); }
.category-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  margin-bottom: 1rem;
}
.category-banner {
  background: linear-gradient(135deg, var(--accent-light), #fde8dc);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
}
.category-banner span {
  font-family: 'Lora', serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}
.article-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
.article-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: middle;
}

/* === PULL QUOTE === */
.pull-quote {
  border-left: 4px solid var(--accent);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.6;
}
.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-light);
}

.large-quote {
  margin: 2.5rem -1rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--accent-light), #fff7f2);
  border-radius: var(--radius);
  text-align: center;
  font-family: 'Lora', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--primary);
  line-height: 1.5;
  position: relative;
}
.large-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 0.25rem;
  left: 1rem;
  font-family: 'Lora', serif;
}

/* === TAGS === */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}
.article-tags a {
  background: var(--bg-secondary);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid #e5e7eb;
}
.article-tags a:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

/* === DISCLAIMER === */
.disclaimer {
  background: var(--bg-secondary);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}
.disclaimer strong { color: var(--primary); }

/* === BALANCE DIAGRAM === */
.balance-diagram {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.balance-diagram h3 { text-align: center; margin-bottom: 1.5rem; }
.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.diagram-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.diagram-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.diagram-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}
.diagram-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.diagram-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.diagram-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1s ease;
}

/* === BREATHING EXERCISE === */
.breathing-section {
  margin: 2.5rem 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #111827, #1f2937);
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
}
.breathing-section h3 { color: #fff; margin-bottom: 0.75rem; }
.breathing-section p { color: #d1d5db; margin-bottom: 1.5rem; }
.breath-circle-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}
.breath-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,107,53,0.15);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathe 8s ease-in-out infinite;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--accent);
}
@keyframes breathe {
  0%,100% { transform: scale(0.7); opacity: 0.6; }
  25% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1); opacity: 1; }
  75% { transform: scale(0.7); opacity: 0.6; }
}
.breath-steps {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.breath-step {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #d1d5db;
}
.breath-step strong { color: var(--accent); display: block; font-size: 1.1rem; }

/* === READ ALSO === */
.read-also {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
}
.read-also h3 { margin-bottom: 1.5rem; }
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.read-also-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.read-also-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.read-also-card .card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.read-also-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  text-align: left;
}
.read-also-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: left;
}

/* === SUBSCRIBE FORM === */
.subscribe-section {
  background: linear-gradient(135deg, var(--primary), #1f2937);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  color: #fff;
}
.subscribe-section h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.5rem; }
.subscribe-section p { color: #d1d5db; margin-bottom: 1.5rem; }
.subscribe-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]::placeholder { color: #9ca3af; }
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.subscribe-form button {
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}
.subscribe-form button:hover {
  background: #e55a28;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}

/* === AUTHOR BIO === */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin: 2.5rem 0;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e55a28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}
.author-info h4 { margin-bottom: 0.25rem; }
.author-info .author-role { color: var(--text-light); font-size: 0.875rem; margin-bottom: 0.5rem; }
.author-info p { font-size: 0.9rem; color: var(--text); }

@media(max-width:480px) {
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
}

/* === FOOTER === */
.site-footer {
  background: var(--primary);
  color: #d1d5db;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .site-logo { color: #fff; }
.footer-brand p { color: #9ca3af; font-size: 0.875rem; margin-top: 0.5rem; max-width: 300px; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: #6b7280; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* === COOKIE MODAL (CSS only) === */
.cookie-checkbox { display: none; }
.cookie-modal {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 380px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 200;
  border: 1px solid #e5e7eb;
  transition: all var(--transition);
}
.cookie-checkbox:checked ~ .cookie-modal { display: none; }
.cookie-modal h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.cookie-modal p { font-size: 0.825rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-accept,
.cookie-decline {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: 'Nunito', sans-serif;
}
.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
}
.cookie-accept:hover { background: #e55a28; }
.cookie-decline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid #e5e7eb;
}
.cookie-decline:hover { border-color: var(--text); color: var(--text); }

/* === POLICY PAGES === */
.policy-page { padding: 2rem 0 3rem; }
.policy-page h1 { margin-bottom: 1.5rem; }
.policy-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.policy-page p { margin-bottom: 1rem; }

/* === SUCCESS PAGE === */
.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.success-content h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.success-content p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2rem; }
.btn-home {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-home:hover { background: #e55a28; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.3); }

/* === 404 === */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.page-404 .error-code {
  font-family: 'Lora', serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
}
.page-404 h1 { margin-bottom: 0.75rem; }
.page-404 p { color: var(--text-light); margin-bottom: 2rem; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-d3 { animation-delay: 0.3s; opacity: 0; }
