/* 
 * Site 2: FlexLab Yoga - Clean Modern Theme
 * Isolation: Custom CSS variables, unique class naming
 */

:root {
  --site2-primary: #E63946;
  --site2-secondary: #457B9D;
  --site2-dark: #1D3557;
  --site2-light: #F1FAEE;
  --site2-text: #2B2D42;
  --site2-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--site2-font);
  color: var(--site2-text);
  background-color: #FAFAFA;
  line-height: 1.7;
}

/* ─── Header / Navbar ─── */
.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: white !important;
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--site2-dark) !important;
  letter-spacing: -0.3px;
}

.navbar-brand span {
  color: var(--site2-primary);
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--site2-text) !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--site2-primary) !important;
  background-color: rgba(230, 57, 70, 0.06);
}

/* ─── Hero Section ─── */
.hero {
  background: linear-gradient(135deg, var(--site2-dark) 0%, var(--site2-secondary) 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  text-align: center;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Article Cards ─── */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img-top {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--site2-dark);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.card-text {
  color: #6c757d;
  font-size: 0.9rem;
  flex-grow: 1;
}

.card .btn {
  margin-top: auto;
  background-color: var(--site2-primary);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.card .btn:hover {
  background-color: #c1303c;
}

/* ─── Categories ─── */
.categories-grid h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--site2-dark);
  margin-bottom: 1.5rem;
}

.category-card {
  display: block;
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.25s ease;
  text-decoration: none !important;
  border: 2px solid transparent;
}

.category-card:hover {
  border-color: var(--site2-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.15);
}

.category-card h5 {
  font-weight: 600;
  color: var(--site2-dark);
  margin-bottom: 0.3rem;
}

.category-card small {
  color: #888;
}

/* ─── Footer ─── */
footer {
  background-color: var(--site2-dark) !important;
  color: white;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: white;
}

footer p {
  margin-bottom: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ─── Article Page ─── */
.blog-post h1 {
  font-weight: 700;
  color: var(--site2-dark);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.blog-post .text-muted {
  color: #888 !important;
  font-size: 0.9rem;
}

/* FTC Disclosure */
.alert-info {
  background-color: #E8F4FD !important;
  border: 1px solid #B8D4E8 !important;
  color: #1A5276 !important;
  border-radius: 10px;
  font-size: 0.88rem;
}

/* Author Bio */
.author-bio {
  background: var(--site2-light) !important;
  border-left: 4px solid var(--site2-secondary) !important;
  border-radius: 10px;
  padding: 1.4rem !important;
}

.author-bio h5 {
  color: var(--site2-dark);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
}
