/* HustleRoutine Modern Clean Theme - Mobile-First & High Speed */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #d1fae5;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text-main: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.brand-logo span {
  color: var(--accent);
}

.nav-badge {
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main Container */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Hero Section */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-category {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1.hero-title {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  h1.hero-title {
    font-size: 2.5rem;
  }
}

p.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #0f172a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Featured Resource Gate (High CTR) */
.resource-gate {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.resource-gate::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.gate-tag {
  display: inline-block;
  background: rgba(5, 150, 105, 0.3);
  border: 1px solid rgba(5, 150, 105, 0.6);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gate-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.gate-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.gate-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.gate-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.gate-note {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.75rem;
}

/* Modal / Countdown Overlay */
.gate-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.gate-modal-backdrop.active {
  display: flex;
}

.gate-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.progress-bar-container {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* Content Article Body */
.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article-body p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.hustle-item {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.hustle-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.hustle-earnings {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Native Ad Placeholder */
.ad-slot-card {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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