/* ============================================
   GoMeFly Blog — Master Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  color: #1a1a2e;
  background: #f8f9fc;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.4em; }

/* --- Container --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* --- Navbar --- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 14px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-links { display: flex; gap: 28px; align-items: center; }
.navbar-links a { font-size: 0.9rem; font-weight: 500; color: #555; transition: color 0.2s; }
.navbar-links a:hover { color: #6366f1; }
.navbar-cta {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important; padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.35); }

/* --- Hero Sections --- */
.hero { padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -60%; right: -20%; width: 600px; height: 600px;
  border-radius: 50%; opacity: 0.07; pointer-events: none;
}
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px; }
.hero p { font-size: 1.12rem; color: #555; max-width: 640px; line-height: 1.8; }
.hero-meta { display: flex; gap: 20px; margin-top: 24px; font-size: 0.82rem; color: #888; flex-wrap: wrap; align-items: center; }
.hero-meta span { display: flex; align-items: center; gap: 5px; }

/* --- Theme: Indigo (Blog 1) --- */
.theme-indigo .hero::before { background: #6366f1; }
.theme-indigo .hero-badge { background: #eef2ff; color: #4f46e5; }
.theme-indigo .hero h1 { color: #1e1b4b; }
.theme-indigo .cta-primary { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; }
.theme-indigo .cta-primary:hover { box-shadow: 0 8px 25px rgba(79,70,229,0.4); }
.theme-indigo .cta-secondary { border: 2px solid #4f46e5; color: #4f46e5; }
.theme-indigo .cta-secondary:hover { background: #4f46e5; color: #fff; }
.theme-indigo .accent-bar { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.theme-indigo .faq-item.open .faq-q { color: #4f46e5; }
.theme-indigo .tag { background: #eef2ff; color: #4f46e5; }
.theme-indigo .related-card:hover { border-color: #c7d2fe; }
.theme-indigo .card-highlight { border-left: 4px solid #4f46e5; background: #eef2ff; }

/* --- Theme: Emerald (Blog 2) --- */
.theme-emerald .hero::before { background: #10b981; }
.theme-emerald .hero-badge { background: #ecfdf5; color: #059669; }
.theme-emerald .hero h1 { color: #064e3b; }
.theme-emerald .cta-primary { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.theme-emerald .cta-primary:hover { box-shadow: 0 8px 25px rgba(5,150,105,0.4); }
.theme-emerald .cta-secondary { border: 2px solid #059669; color: #059669; }
.theme-emerald .cta-secondary:hover { background: #059669; color: #fff; }
.theme-emerald .accent-bar { background: linear-gradient(90deg, #059669, #34d399); }
.theme-emerald .faq-item.open .faq-q { color: #059669; }
.theme-emerald .tag { background: #ecfdf5; color: #059669; }
.theme-emerald .related-card:hover { border-color: #a7f3d0; }
.theme-emerald .card-highlight { border-left: 4px solid #059669; background: #ecfdf5; }

/* --- Theme: Rose (Blog 3) --- */
.theme-rose .hero::before { background: #f43f5e; }
.theme-rose .hero-badge { background: #fff1f2; color: #e11d48; }
.theme-rose .hero h1 { color: #4c0519; }
.theme-rose .cta-primary { background: linear-gradient(135deg, #e11d48, #f43f5e); color: #fff; }
.theme-rose .cta-primary:hover { box-shadow: 0 8px 25px rgba(225,29,72,0.4); }
.theme-rose .cta-secondary { border: 2px solid #e11d48; color: #e11d48; }
.theme-rose .cta-secondary:hover { background: #e11d48; color: #fff; }
.theme-rose .accent-bar { background: linear-gradient(90deg, #e11d48, #fb7185); }
.theme-rose .faq-item.open .faq-q { color: #e11d48; }
.theme-rose .tag { background: #fff1f2; color: #e11d48; }
.theme-rose .related-card:hover { border-color: #fecdd3; }
.theme-rose .card-highlight { border-left: 4px solid #e11d48; background: #fff1f2; }

/* --- Theme: Violet (Blog 4) --- */
.theme-violet .hero::before { background: #8b5cf6; }
.theme-violet .hero-badge { background: #f5f3ff; color: #7c3aed; }
.theme-violet .hero h1 { color: #2e1065; }
.theme-violet .cta-primary { background: linear-gradient(135deg, #7c3aed, #8b5cf6); color: #fff; }
.theme-violet .cta-primary:hover { box-shadow: 0 8px 25px rgba(124,58,237,0.4); }
.theme-violet .cta-secondary { border: 2px solid #7c3aed; color: #7c3aed; }
.theme-violet .cta-secondary:hover { background: #7c3aed; color: #fff; }
.theme-violet .accent-bar { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.theme-violet .faq-item.open .faq-q { color: #7c3aed; }
.theme-violet .tag { background: #f5f3ff; color: #7c3aed; }
.theme-violet .related-card:hover { border-color: #c4b5fd; }
.theme-violet .card-highlight { border-left: 4px solid #7c3aed; background: #f5f3ff; }

/* --- Theme: Amber (Blog 5) --- */
.theme-amber .hero::before { background: #f59e0b; }
.theme-amber .hero-badge { background: #fffbeb; color: #d97706; }
.theme-amber .hero h1 { color: #451a03; }
.theme-amber .cta-primary { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.theme-amber .cta-primary:hover { box-shadow: 0 8px 25px rgba(217,119,6,0.4); }
.theme-amber .cta-secondary { border: 2px solid #d97706; color: #d97706; }
.theme-amber .cta-secondary:hover { background: #d97706; color: #fff; }
.theme-amber .accent-bar { background: linear-gradient(90deg, #d97706, #fbbf24); }
.theme-amber .faq-item.open .faq-q { color: #d97706; }
.theme-amber .tag { background: #fffbeb; color: #d97706; }
.theme-amber .related-card:hover { border-color: #fde68a; }
.theme-amber .card-highlight { border-left: 4px solid #d97706; background: #fffbeb; }

/* --- Buttons --- */
.cta-primary, .cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s; cursor: pointer; border: none;
}
.cta-secondary { background: transparent; }
.cta-group { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* --- Accent Bar --- */
.accent-bar { height: 4px; width: 80px; border-radius: 2px; margin-bottom: 20px; }

/* --- Article Body --- */
.article-body { padding: 60px 0; }
.article-body h2 {
  font-size: 1.6rem; font-weight: 700; margin: 48px 0 16px; letter-spacing: -0.5px; line-height: 1.3;
}
.article-body h3 {
  font-size: 1.2rem; font-weight: 600; margin: 32px 0 12px; line-height: 1.4;
}
.article-body p { margin-bottom: 18px; color: #374151; font-size: 1.02rem; }
.article-body ul, .article-body ol { margin-bottom: 18px; color: #374151; }
.article-body li { margin-bottom: 8px; font-size: 1.02rem; }
.article-body strong { color: #1a1a2e; }

/* --- Cards & Info Boxes --- */
.card-highlight { padding: 20px 24px; border-radius: 10px; margin: 24px 0; }
.card-highlight p { margin-bottom: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 28px 0; }
.info-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.info-card .ic-icon { font-size: 1.8rem; margin-bottom: 10px; }
.info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 0.88rem; color: #666; margin-bottom: 0; }

/* --- Comparison Table --- */
.comparison-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.92rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.comparison-table thead { background: #f1f5f9; }
.comparison-table th { padding: 14px 18px; text-align: left; font-weight: 600; color: #374151; }
.comparison-table td { padding: 12px 18px; border-top: 1px solid #f1f5f9; color: #555; }
.comparison-table tr:hover td { background: #fafbfc; }
.check { color: #10b981; font-weight: 700; }
.cross { color: #ef4444; font-weight: 700; }

/* --- Steps --- */
.steps { counter-reset: step; margin: 28px 0; }
.step {
  display: flex; gap: 18px; margin-bottom: 24px; position: relative;
}
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
}
.step-content h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: 0.92rem; color: #666; margin-bottom: 0; }
.theme-indigo .step-num { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.theme-emerald .step-num { background: linear-gradient(135deg, #059669, #34d399); }
.theme-rose .step-num { background: linear-gradient(135deg, #e11d48, #fb7185); }
.theme-violet .step-num { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.theme-amber .step-num { background: linear-gradient(135deg, #d97706, #fbbf24); }

/* --- Tags --- */
.tag { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; margin-right: 6px; margin-bottom: 6px; }

/* --- FAQ Section --- */
.faq-section { padding: 60px 0; background: #fff; border-top: 1px solid #f1f5f9; }
.faq-section h2 { font-size: 1.8rem; font-weight: 800; text-align: center; margin-bottom: 40px; letter-spacing: -0.5px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: #c7d2fe; }
.faq-q {
  padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 0.97rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s; user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 300; transition: transform 0.3s; line-height: 1; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 20px 18px; color: #555; font-size: 0.93rem; line-height: 1.75; }

/* --- Related Articles --- */
.related-section { padding: 60px 0; background: #f8f9fc; }
.related-section h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 30px; letter-spacing: -0.5px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.related-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; cursor: pointer;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.07); }
.related-card-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative;
}
.related-card-body { padding: 20px; }
.related-card-body .tag { margin-bottom: 10px; }
.related-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.related-card-body p { font-size: 0.85rem; color: #777; margin-bottom: 12px; line-height: 1.6; }
.related-card-body .read-more { font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.related-card-body .read-more::after { content: '→'; transition: transform 0.2s; }
.related-card:hover .read-more::after { transform: translateX(4px); }

/* --- CTA Banner --- */
.cta-banner {
  margin: 50px 0; padding: 40px; border-radius: 16px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; position: relative; z-index: 1; }
.cta-banner p { font-size: 0.95rem; margin-bottom: 0; position: relative; z-index: 1; }
.theme-indigo .cta-banner { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; }
.theme-indigo .cta-banner p { color: rgba(255,255,255,0.85); }
.theme-emerald .cta-banner { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.theme-emerald .cta-banner p { color: rgba(255,255,255,0.85); }
.theme-rose .cta-banner { background: linear-gradient(135deg, #e11d48, #f43f5e); color: #fff; }
.theme-rose .cta-banner p { color: rgba(255,255,255,0.85); }
.theme-violet .cta-banner { background: linear-gradient(135deg, #7c3aed, #8b5cf6); color: #fff; }
.theme-violet .cta-banner p { color: rgba(255,255,255,0.85); }
.theme-amber .cta-banner { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.theme-amber .cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner .cta-primary { background: #fff; color: #1a1a2e; }
.cta-banner .cta-primary:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* --- Footer --- */
.blog-footer {
  background: #0f172a; color: #94a3b8; padding: 50px 0 30px; text-align: center;
}
.blog-footer a { color: #c7d2fe; }
.blog-footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { font-size: 0.85rem; }
.footer-copy { font-size: 0.8rem; color: #64748b; }

/* --- Index Page Specific --- */
.index-hero { padding: 100px 0 70px; text-align: center; background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); color: #fff; position: relative; overflow: hidden; }
.index-hero::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%); pointer-events: none;
}
.index-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; position: relative; }
.index-hero p { font-size: 1.15rem; color: #94a3b8; max-width: 600px; margin: 0 auto; position: relative; }
.index-hero .stats { display: flex; justify-content: center; gap: 40px; margin-top: 36px; position: relative; }
.index-hero .stat { text-align: center; }
.index-hero .stat-num { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #818cf8, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.index-hero .stat-label { font-size: 0.8rem; color: #64748b; margin-top: 2px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; padding: 60px 0; }
.blog-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.blog-card-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 24px; }
.blog-card-body .tag { margin-bottom: 12px; }
.blog-card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 0.88rem; color: #666; line-height: 1.7; margin-bottom: 16px; }
.blog-card-body .card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #999; }
.blog-card-body .read-link { font-weight: 600; color: #6366f1; display: flex; align-items: center; gap: 4px; }
.blog-card-body .read-link::after { content: '→'; transition: transform 0.2s; }
.blog-card:hover .read-link::after { transform: translateX(4px); }

/* Card image themes */
.bg-indigo-light { background: linear-gradient(135deg, #eef2ff, #c7d2fe); }
.bg-emerald-light { background: linear-gradient(135deg, #ecfdf5, #a7f3d0); }
.bg-rose-light { background: linear-gradient(135deg, #fff1f2, #fecdd3); }
.bg-violet-light { background: linear-gradient(135deg, #f5f3ff, #c4b5fd); }
.bg-amber-light { background: linear-gradient(135deg, #fffbeb, #fde68a); }

/* --- Mobile Hamburger --- */
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; padding: 4px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; gap: 16px; border-bottom: 1px solid #eee; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
  .navbar-links.open { display: flex; }
  .hamburger { display: block; }
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .cta-group { flex-direction: column; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .index-hero .stats { gap: 24px; }
  .step { flex-direction: column; gap: 10px; }
  .cta-banner { padding: 28px 20px; }
  .info-grid { grid-template-columns: 1fr; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a5b4fc; }

/* --- Selection --- */
::selection { background: #c7d2fe; color: #1e1b4b; }