/* 2goo Tech - Master Stylesheet (Light Mode Only) */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --muted: #f4f4f5;
  --muted-foreground: #64748b;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  
  --brand: #e11d48;
  --brand-foreground: #ffffff;
  --ink: #0f172a;
  --ink-foreground: #ffffff;
  --surface-dark: #f8fafc;
  --highlight: #facc15;
  
  --radius: 0.375rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: #09090b;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  color: #09090b;
  line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .text-left { text-align: right !important; }
[dir="rtl"] .text-right { text-align: left !important; }

/* Container */
.container-editorial {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-editorial { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-editorial { padding-left: 2rem; padding-right: 2rem; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: #09090b;
  line-height: 1.2;
}

.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.hidden, [hidden], #mobileDrawer.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline { display: inline !important; }
.fixed { position: fixed !important; }
.absolute { position: absolute !important; }
.relative { position: relative !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.bg-background { background-color: #ffffff; }
.bg-white { background-color: #ffffff; }
.bg-ink { background-color: var(--ink); }
.text-ink-foreground { color: var(--ink-foreground); }
.bg-surface-dark { background-color: var(--surface-dark); }
.bg-card { background-color: #ffffff; }
.bg-muted { background-color: #f4f4f5; }
.bg-brand { background-color: var(--brand); }
.text-brand { color: var(--brand); }
.text-brand-foreground { color: var(--brand-foreground); }
.text-muted-foreground { color: #64748b; }
.border-border { border-color: #e4e4e7; }
.border-b { border-bottom: 1px solid #e4e4e7; }
.border-t { border-top: 1px solid #e4e4e7; }
.border-r { border-right: 1px solid #e4e4e7; }
.border-l { border-left: 1px solid #e4e4e7; }
.border { border: 1px solid #e4e4e7; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-sm { border-radius: 0.25rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04); }

/* Flex & Grid */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex { display: flex !important; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
}

/* Header Styles */
.site-header {
  position: relative;
  z-index: 40;
  margin-bottom: 2rem;
  background-color: #ffffff;
}
.utility-bar {
  background-color: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
.utility-bar-inner {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.live-pulse {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.brand-row {
  background-color: #ffffff;
  border-bottom: 1px solid #e4e4e7;
  padding: 1.25rem 0;
}
.logo-img {
  height: 44px;
  width: auto;
}

/* Nav ticker */
.trending-strip {
  border-bottom: 1px solid #e4e4e7;
  background-color: #f8fafc;
  overflow-x: auto;
  white-space: nowrap;
}
.trending-strip-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
  font-size: 12px;
}
.trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background-color: rgba(225, 29, 72, 0.1);
  color: var(--brand);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navigation Menu */
.primary-nav {
  background-color: #ffffff;
  border-bottom: 1px solid #e4e4e7;
}
.nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  gap: 0.25rem;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: #09090b;
  border-bottom-color: var(--brand);
}

/* Article Cards (Light Mode) */
.article-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #ffffff;
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 185px;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.article-card:hover .card-media img {
  transform: scale(1.04);
}
.card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
[dir="rtl"] .card-badge {
  left: auto;
  right: 0.5rem;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  color: #09090b;
  transition: color 0.15s ease;
  line-height: 1.35;
}
.article-card:hover .card-title {
  color: var(--brand);
}
.card-excerpt {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* Compact / Secondary Article Card */
.article-card.card-sm .card-link-compact {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.article-card.card-sm .card-media {
  width: 90px;
  min-width: 90px;
  height: 65px;
  max-height: 65px;
  aspect-ratio: auto;
  border-radius: 0.375rem;
  flex-shrink: 0;
}
.article-card.card-sm .card-title {
  font-size: 0.85rem;
  margin-top: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Big Hero Card */
.hero-card .card-media {
  aspect-ratio: 16 / 9;
  max-height: 340px;
  border-radius: 0.75rem;
}
.hero-card .card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .hero-card .card-title { font-size: 2rem; line-height: 1.2; }
}

/* Ad slots constraints */
.ad-slot-container {
  margin: 1.75rem auto;
  width: 100%;
}
.ad-slot-box {
  max-width: 970px;
  margin-left: auto;
  margin-right: auto;
}
.ad-slot-box img {
  max-height: 120px !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* Reading Progress Bar */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e11d48, #f43f5e);
  z-index: 9999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* Sticky Table of Contents */
.toc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.toc-link {
  display: block;
  font-size: 0.825rem;
  color: #64748b;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  line-height: 1.35;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.toc-link:hover {
  color: #e11d48;
  background-color: #fff1f2;
  border-left-color: #e11d48;
}
[dir="rtl"] .toc-link {
  border-left: none;
  border-right: 2px solid transparent;
}
[dir="rtl"] .toc-link:hover {
  border-right-color: #e11d48;
}
.toc-link.active {
  color: #e11d48;
  font-weight: 600;
  background-color: #fff1f2;
  border-left-color: #e11d48;
}

/* Executive Summary / Key Takeaways Box */
.verdict-box {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem 0;
}
[dir="rtl"] .verdict-box {
  border-left: 1px solid #fecdd3;
  border-right: 4px solid #e11d48;
}

/* Editorial Article Prose */
.article-prose {
  color: #1e293b;
  font-size: 1.125rem;
  line-height: 1.85;
  font-family: var(--font-sans);
}
.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
  font-family: var(--font-display);
  color: #0f172a;
  letter-spacing: -0.02em;
}
.article-prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-prose h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.article-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.article-prose a:hover {
  color: #be123c;
}
.article-prose strong {
  font-weight: 700;
  color: #09090b;
}
.article-prose blockquote {
  border-left: 4px solid var(--brand);
  background-color: #f8fafc;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #334155;
}
[dir="rtl"] .article-prose blockquote {
  border-left: none;
  border-right: 4px solid var(--brand);
  border-radius: 0.5rem 0 0 0.5rem;
}
.article-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}
.article-prose ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}
[dir="rtl"] .article-prose ul,
[dir="rtl"] .article-prose ol {
  padding-left: 0;
  padding-right: 1.5rem;
}
.article-prose li {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  line-height: 1.65;
}
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.925rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}
.article-prose th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #cbd5e1;
}
[dir="rtl"] .article-prose th {
  text-align: right;
}
.article-prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.article-prose tr:hover td {
  background-color: #f8fafc;
}
.article-prose pre {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}
.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.article-prose p code,
.article-prose li code {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--brand);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
.article-prose img {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  margin: 2rem auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Provider Card (Light Mode) */
.provider-card {
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.provider-card:hover {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.provider-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.rating-stars {
  color: #eab308;
  font-weight: bold;
}

/* Trust Bar / Editorial Standards */
.trust-bar {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Home Newsletter Banner */
.newsletter-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #fff1f2 100%);
  border: 1px solid #fecdd3;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin: 3.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.05);
}

/* Ad Slot Box (Light Mode) */
.ad-slot-container {
  margin: 2rem 0;
  text-align: center;
}
.ad-slot-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  display: inline-block;
  max-width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-brand {
  background-color: var(--brand);
  color: #ffffff;
}
.btn-brand:hover {
  background-color: #be123c;
}
.btn-outline {
  background-color: #ffffff;
  border-color: #e4e4e7;
  color: #1e293b;
}
.btn-outline:hover {
  background-color: #f4f4f5;
  color: #09090b;
}

/* Inputs & Form Controls */
.input, .textarea, .select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background-color: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 0.375rem;
  color: #09090b;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.15);
}

/* Footer (Light Mode Clean Masthead) */
.site-footer {
  margin-top: auto;
  background-color: #f8fafc;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}
.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.6;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0f172a;
  margin-bottom: 1.25rem;
}
.footer-link {
  color: #64748b;
  font-size: 13px;
  transition: color 0.15s ease, transform 0.15s ease;
  display: block;
  margin-bottom: 0.65rem;
}
.footer-link:hover {
  color: var(--brand);
  transform: translateX(3px);
}
[dir="rtl"] .footer-link:hover {
  transform: translateX(-3px);
}

/* Modals & Dropdowns (Light Mode) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 0.375rem;
  padding: 0.5rem;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 50;
  display: none;
}
.dropdown-menu.show {
  display: block;
}
[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  color: #1e293b;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease;
}
.dropdown-item:hover, .dropdown-item.active {
  background-color: #f1f5f9;
  color: var(--brand);
}
