/* MarineSoftwareReview — Directory Site Styles */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.7;
  background: var(--white);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { font-size: 18px; font-weight: 700; color: var(--navy); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--gray-600); text-decoration: none; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  background: var(--accent); color: white; padding: 10px 24px; text-decoration: none;
  border-radius: 4px; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 100px 40px 80px;
  background: var(--navy);
  color: white;
}
.hero-eyebrow {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--accent-light); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.2; margin-bottom: 20px; }
.hero h1 strong { font-weight: 700; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }
.hero-cta {
  display: inline-block; background: var(--accent); color: white;
  padding: 14px 36px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none;
  border-radius: 4px; transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.9; text-decoration: none; }

/* Hero — Rating Display */
.rating-hero { margin-bottom: 16px; }
.rating-hero .stars { font-size: 28px; color: var(--amber); margin-right: 8px; }
.rating-hero .rating-number { font-size: 24px; font-weight: 700; margin-right: 6px; }
.rating-hero .review-count { font-size: 14px; color: rgba(255,255,255,0.5); }

/* Badges */
.badges { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
}
.badge-marine { background: rgba(37,99,235,0.2); color: var(--accent-light); }
.badge-ai { background: rgba(22,163,74,0.2); color: #4ade80; }

/* Comparison Ratings in Hero */
.comparison-ratings {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 20px; flex-wrap: wrap;
}
.comp-product { text-align: center; }
.comp-product strong { display: block; font-size: 16px; margin-bottom: 6px; }
.comp-product .stars { color: var(--amber); font-size: 18px; margin-right: 6px; }
.vs-badge {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.4);
  padding: 8px 16px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
}

/* Sections */
.section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--off-white); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-dark { background: var(--navy); color: white; }

.section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--accent); margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 300; margin-bottom: 16px; line-height: 1.3; }
.section h2 strong { font-weight: 700; }
.section-line { width: 60px; height: 2px; background: var(--accent); margin: 24px 0; }
.section-text { font-size: 15px; color: var(--gray-600); max-width: 700px; line-height: 1.8; }

/* Cards Grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.card {
  background: var(--white); border: 1px solid var(--gray-200); padding: 32px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--gray-400); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(15,23,42,0.06); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.card-link { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); }

/* Product Card (directory-specific) */
.product-card {
  background: var(--white); border: 1px solid var(--gray-200); padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.08); }
.product-card.featured { border-color: var(--accent); border-width: 2px; }
.product-card.featured::before {
  content: '#1 Top Rated'; position: absolute; top: -12px; left: 20px;
  background: var(--accent); color: white; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 3px;
}
.product-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.product-card-name { font-size: 18px; font-weight: 700; }
.product-card-rating { text-align: right; }
.product-card-rating .stars { color: var(--amber); font-size: 16px; }
.product-card-rating .rating-num { font-size: 20px; font-weight: 700; color: var(--navy); }
.product-card-rating .review-ct { font-size: 11px; color: var(--gray-400); display: block; }
.product-card-desc { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.product-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.product-card-tags .tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 3px; background: var(--gray-100); color: var(--gray-600);
}
.product-card-tags .tag-marine { background: #dbeafe; color: var(--accent); }
.product-card-tags .tag-ai { background: #dcfce7; color: var(--green); }
.product-card-cta {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); text-decoration: none;
}

/* Star Ratings — Text-based */
.stars { color: var(--amber); letter-spacing: 2px; }

/* Rating Bars */
.rating-bars { margin: 20px 0; }
.rating-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rating-bar-label { font-size: 12px; color: var(--gray-500); width: 100px; text-align: right; }
.rating-bar-track { flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.rating-bar-value { font-size: 13px; font-weight: 600; color: var(--navy); width: 30px; }

/* Pros / Cons Grid */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.pros-list, .cons-list { padding: 0; list-style: none; }
.pros-cons h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.pros-cons h4.pro-heading { color: var(--green); }
.pros-cons h4.con-heading { color: var(--red); }
.pros-list li, .cons-list li { font-size: 14px; color: var(--gray-600); margin-bottom: 8px; padding-left: 20px; position: relative; }
.pros-list li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons-list li::before { content: '\2013'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.comparison-table th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200); background: var(--off-white);
}
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); }
.comparison-table tr:hover td { background: var(--gray-100); }
.comparison-table .winner { color: var(--accent); font-weight: 600; }

/* Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white; padding: 32px; border-radius: 8px; margin: 32px 0;
}
.verdict-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.verdict-box .verdict-winner { font-size: 24px; font-weight: 700; color: var(--accent-light); margin-bottom: 12px; }
.verdict-box p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* Article Content */
.article { max-width: 760px; margin: 0 auto; padding: 60px 40px 80px; }
.article h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; margin-bottom: 16px; line-height: 1.3; }
.article h1 strong { font-weight: 700; }
.article h2 { font-size: 1.4rem; font-weight: 600; margin: 40px 0 16px; }
.article h3 { font-size: 1.1rem; font-weight: 600; margin: 32px 0 12px; }
.article p { font-size: 15px; color: var(--gray-600); margin-bottom: 20px; line-height: 1.8; }
.article ul, .article ol { margin: 0 0 20px 24px; color: var(--gray-600); font-size: 15px; }
.article li { margin-bottom: 8px; line-height: 1.7; }
.article-meta { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 32px; }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article th { text-align: left; padding: 10px 14px; background: var(--off-white); border-bottom: 2px solid var(--gray-200); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); }
.article td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); }
.article tr:hover td { background: var(--gray-100); }

/* CTA Banner */
.cta-banner {
  text-align: center; padding: 80px 40px;
  background: var(--navy); color: white;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300; margin-bottom: 16px; }
.cta-banner h2 strong { font-weight: 700; }
.cta-banner p { color: rgba(255,255,255,0.5); font-size: 15px; margin-bottom: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--gray-200); font-size: 13px; color: var(--gray-500); }
.footer a { color: var(--gray-500); }
.footer-main { display: flex; gap: 60px; padding: 60px 40px 40px; max-width: 1100px; margin: 0 auto; }
.footer-brand { flex: 1; max-width: 300px; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 12px; font-size: 18px; font-weight: 700; color: var(--navy); text-decoration: none; }
.footer-brand .nav-logo span { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--gray-400); line-height: 1.7; }
.footer-links { display: flex; gap: 48px; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--gray-500); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 40px; border-top: 1px solid var(--gray-200); font-size: 12px; color: var(--gray-400); max-width: 1100px; margin: 0 auto; }

/* Link List */
.link-list { list-style: none; padding: 0; margin-top: 24px; }
.link-list li { margin-bottom: 12px; }
.link-list a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  padding: 12px 16px; border: 1px solid var(--gray-200);
  transition: border-color 0.2s;
}
.link-list a:hover { border-color: var(--accent); text-decoration: none; }
.link-list a span { color: var(--accent); font-size: 12px; }

/* Category Grid (homepage) */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.category-link {
  display: block; text-align: center; padding: 24px 16px;
  border: 1px solid var(--gray-200); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--navy);
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.category-link:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.category-link .cat-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.category-link .cat-count { font-size: 11px; color: var(--gray-400); font-weight: 400; display: block; margin-top: 4px; }

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero { padding: 60px 20px 50px; }
  .section { padding: 50px 20px; }
  .article { padding: 40px 20px 60px; }
  .cards { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .comparison-ratings { flex-direction: column; gap: 16px; }
  .footer-main { flex-direction: column; gap: 32px; padding: 40px 20px; }
  .footer-brand { max-width: 100%; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 20px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
}
