/* ── OrderMAX Blog Styles ── */

:root {
  --orange-primary: #FF6B35;
  --orange-light: #FF8A5C;
  --orange-dark: #E85A28;
  --dark-gray: #1A1A1A;
  --medium-gray: #4A4A4A;
  --light-gray: #F5F5F5;
  --border-gray: #E5E5E5;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Blog Hero ── */
.blog-hero {
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DD 100%);
  padding: 7rem 2rem 4rem;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.15rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Blog Grid (index) ── */
.blog-section {
  max-width: 1200px;
  margin: 4rem auto 6rem;
  padding: 0 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-badge {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.5rem;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--medium-gray);
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Article Page ── */
.article-hero {
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DD 100%);
  padding: 7rem 2rem 3.5rem;
}

.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  background: var(--orange-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.article-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-gray);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--medium-gray);
  flex-wrap: wrap;
}

.article-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* ── Article Body ── */
.article-body {
  max-width: 800px;
  margin: 3.5rem auto 5rem;
  padding: 0 2rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin: 1.75rem 0 0.75rem;
}

.article-body p {
  color: var(--medium-gray);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.article-body ul, .article-body ol {
  color: var(--medium-gray);
  font-size: 1rem;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.article-body ul li, .article-body ol li {
  margin-bottom: 0.5rem;
}

.article-body strong { color: var(--dark-gray); }

.article-body a {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 500;
}

.article-body a:hover { text-decoration: underline; }

.highlight-box {
  background: #FFF5F0;
  border-left: 4px solid var(--orange-primary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.highlight-box p { margin-bottom: 0; color: var(--dark-gray); }

/* ── CTA Section ── */
.article-cta {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3rem 0;
  color: white;
}

.article-cta h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
}

.article-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-white {
  display: inline-block;
  background: white;
  color: var(--orange-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cta-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* ── Footer ── */
footer {
  background: var(--dark-gray);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
}

.footer-section h3 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover { color: var(--orange-primary); }
.footer-section p { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero h1 { font-size: 1.75rem; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 2rem; }
  .article-cta { padding: 2rem 1.5rem; }
  .footer-content { grid-template-columns: 1fr; }
}
