/* ============================================
   BATTLE-FLEET.COM - Design System 2026
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.7; color: #e2e8f0; background: #0b1120; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #60a5fa; text-decoration: none; transition: color 0.2s; }
a:hover { color: #93c5fd; }
ul, ol { padding-left: 1.5em; }
table { border-collapse: collapse; width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.25; color: #f1f5f9; }
h1 { font-size: 2.25rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
h4 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1.25em; }

/* --- Layout --- */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Header / Navigation --- */
.site-header { background: #0f172a; border-bottom: 1px solid #1e293b; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-logo img { width: 56px; height: 56px; object-fit: contain; }
.site-logo svg { width: 56px; height: 56px; fill: #60a5fa; }
.site-logo-text { font-size: 1.25rem; font-weight: 800; color: #f1f5f9; letter-spacing: 0.05em; text-transform: uppercase; }
.site-logo-text span { color: #60a5fa; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a { padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; color: #94a3b8; transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #f1f5f9; background: #1e293b; }

.mobile-toggle { display: none; background: none; border: none; color: #94a3b8; cursor: pointer; padding: 0.5rem; }
.mobile-toggle svg { width: 24px; height: 24px; }

/* --- Hero Section --- */
.hero { padding: 4rem 0; background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%); border-bottom: 1px solid #1e293b; }
.hero h1 { font-size: 3rem; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.hero h1 span { color: #60a5fa; }
.hero .subtitle { font-size: 1.25rem; color: #94a3b8; max-width: 600px; }

/* --- Article Layout --- */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; padding: 3rem 0; }
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 80px; align-self: start; }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 1rem 0; font-size: 0.8125rem; color: #64748b; }
.breadcrumbs a { color: #64748b; }
.breadcrumbs a:hover { color: #94a3b8; }
.breadcrumbs span { margin: 0 0.5rem; }

/* --- Article Content --- */
.article-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #1e293b; }
.article-header .category { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #60a5fa; background: rgba(96,165,250,0.1); padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.article-header .meta { font-size: 0.875rem; color: #64748b; }

.article-content { font-size: 1.0625rem; line-height: 1.8; }
.article-content h2 { padding-top: 0.5rem; border-top: 1px solid #1e293b; }
.article-content h2:first-of-type { border-top: none; padding-top: 0; }
.article-content img { border-radius: 0.5rem; margin: 1.5rem 0; }
.article-content blockquote { border-left: 3px solid #60a5fa; padding: 1rem 1.5rem; margin: 1.5rem 0; background: #0f172a; border-radius: 0 0.5rem 0.5rem 0; color: #cbd5e1; }
.article-content ul, .article-content ol { margin-bottom: 1.25em; }
.article-content li { margin-bottom: 0.5em; }
.article-content table { margin: 1.5rem 0; }
.article-content th { background: #1e293b; padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.article-content td { padding: 0.75rem 1rem; border-bottom: 1px solid #1e293b; }
.article-content tr:hover td { background: rgba(30,41,59,0.5); }

/* --- Info Box / Specs --- */
.info-box { background: #0f172a; border: 1px solid #1e293b; border-radius: 0.75rem; padding: 1.5rem; margin: 2rem 0; }
.info-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: #60a5fa; margin-bottom: 1rem; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.spec-item { display: flex; flex-direction: column; }
.spec-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; font-weight: 600; }
.spec-value { font-size: 1rem; color: #e2e8f0; font-weight: 500; }

/* --- Sidebar Components --- */
.sidebar-card { background: #0f172a; border: 1px solid #1e293b; border-radius: 0.75rem; padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-card h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 1rem; font-weight: 700; }

/* Table of Contents */
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a { font-size: 0.875rem; color: #94a3b8; display: block; padding: 0.25rem 0.75rem; border-left: 2px solid transparent; transition: all 0.2s; }
.toc-list a:hover, .toc-list a.active { color: #60a5fa; border-left-color: #60a5fa; background: rgba(96,165,250,0.05); }

/* Related Articles */
.related-link { display: block; padding: 0.625rem 0; border-bottom: 1px solid #1e293b; font-size: 0.875rem; color: #94a3b8; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: #60a5fa; }

/* --- Cards Grid (Homepage) --- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 3rem 0; }
.card { background: #0f172a; border: 1px solid #1e293b; border-radius: 0.75rem; overflow: hidden; transition: all 0.3s; }
.card:hover { border-color: #334155; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-category { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #60a5fa; margin-bottom: 0.5rem; }
.card-title { font-size: 1.0625rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.5rem; line-height: 1.35; }
.card-desc { font-size: 0.8125rem; color: #64748b; line-height: 1.6; }

/* --- Section Headers --- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #1e293b; }
.section-header h2 { font-size: 1.5rem; margin: 0; }
.section-header a { font-size: 0.875rem; color: #60a5fa; font-weight: 500; }

/* --- Category Pills --- */
.category-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.pill { padding: 0.375rem 1rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 500; background: #1e293b; color: #94a3b8; border: 1px solid #334155; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.pill:hover, .pill.active { background: #60a5fa; color: #0f172a; border-color: #60a5fa; }

/* --- Footer --- */
.site-footer { margin-top: auto; background: #0f172a; border-top: 1px solid #1e293b; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-about { color: #64748b; font-size: 0.875rem; line-height: 1.7; }
.footer-heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: #64748b; }
.footer-links a:hover { color: #e2e8f0; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: #475569; }

/* --- Image Gallery --- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.gallery img { border-radius: 0.5rem; width: 100%; aspect-ratio: 16/10; object-fit: cover; cursor: pointer; transition: opacity 0.2s; }
.gallery img:hover { opacity: 0.85; }

/* --- Comparison Table --- */
.comparison-table { overflow-x: auto; margin: 1.5rem 0; }
.comparison-table table { min-width: 600px; }
.comparison-table th:first-child, .comparison-table td:first-child { position: sticky; left: 0; background: #0b1120; z-index: 1; }

/* --- Tag Cloud --- */
.tag { display: inline-block; padding: 0.25rem 0.625rem; font-size: 0.75rem; background: #1e293b; color: #94a3b8; border-radius: 0.25rem; margin: 0.125rem; transition: all 0.2s; }
.tag:hover { background: #334155; color: #e2e8f0; }

/* --- Search Bar --- */
.search-bar { position: relative; margin-bottom: 1.5rem; }
.search-bar input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem; background: #0f172a; border: 1px solid #1e293b; border-radius: 0.5rem; color: #e2e8f0; font-size: 0.9375rem; outline: none; transition: border-color 0.2s; }
.search-bar input:focus { border-color: #60a5fa; }
.search-bar input::placeholder { color: #475569; }
.search-bar svg { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #475569; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .header-inner { height: 56px; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: #0f172a; border-bottom: 1px solid #1e293b; padding: 1rem; }
  .mobile-toggle { display: block; }
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .article-header h1 { font-size: 1.75rem; }
  .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .category-pills { gap: 0.375rem; }
  .pill { font-size: 0.75rem; padding: 0.25rem 0.75rem; }
}

/* --- Utilities --- */
.text-muted { color: #64748b; }
.text-accent { color: #60a5fa; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
