/* ELO FIRME Brand Styles - StackRadar */

:root {
  /* Colors */
  --orange: #FF6B35;
  --navy: #1A365D;
  --yellow: #FBBF24;
  --green: #10B981;
  --red: #EF4444;
  
  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-md) 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: var(--space-sm);
}

.logo-divider {
  color: var(--gray-300);
  font-weight: 300;
}

.logo-sub {
  font-weight: 600;
  color: var(--navy);
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--orange);
}

/* Hero */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #E55A2B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xl);
  text-align: center;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 160px;
}

.card-content {
  padding: var(--space-lg);
}

.card-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.tag-saas {
  background: #DBEAFE;
  color: #1E40AF;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.card-excerpt {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Article layout: keep long-form content readable and resilient on mobile. */
.article {
  padding: var(--space-3xl) 0;
}

.article-header {
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
}

.article-tag,
.related-tag {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-title {
  margin: var(--space-sm) 0 var(--space-md);
  color: var(--navy);
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.article-meta {
  display: flex;
  gap: var(--space-md);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.article-content {
  color: var(--gray-800);
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-x: auto;
}

.article-content h2,
.article-content h3 {
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--navy);
  line-height: 1.25;
}

.article-content h2 {
  font-size: 1.8rem;
}

.article-content h3 {
  font-size: 1.35rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content hr {
  margin-bottom: var(--space-lg);
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-xl);
}

.article-content a {
  color: var(--navy);
  font-weight: 600;
}

.article-content blockquote {
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--orange);
  background: var(--gray-50);
  color: var(--gray-600);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--gray-200);
  text-align: left;
  white-space: nowrap;
}

.article-content th {
  background: var(--gray-50);
  color: var(--navy);
}

.affiliate-disclosure {
  max-width: 760px;
  margin: var(--space-2xl) auto;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 0.9rem;
}

.product-offers { margin: 56px 0 28px; padding: 30px; border: 1px solid #dedbd3; border-top: 4px solid #FF6B35; background: #fbfaf7; }
.product-offers-heading > span { color: #C94F24; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-offers-heading h2 { margin: 8px 0; color: #1A365D; font-size: 28px; }
.product-offers-heading p { max-width: 720px; margin: 0; color: #68778a; }
.product-offers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.product-offer-card { padding: 20px; border: 1px solid #e5e1d8; background: #fff; }
.product-offer-card > span { color: #68778a; font-size: 11px; }
.product-offer-card h3 { margin: 18px 0 7px; color: #1A365D; font-size: 20px; text-transform: capitalize; }
.product-offer-card p { margin: 0 0 18px; color: #68778a; font-size: 14px; }
.product-offer-card a { display: inline-block; color: #fff; background: #FF6B35; padding: 11px 14px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.product-offer-card a:hover { background: #C94F24; }

@media (max-width: 700px) { .product-offers { padding: 22px; } .product-offers-grid { grid-template-columns: 1fr; } }

.related-posts {
  max-width: 760px;
  margin: var(--space-3xl) auto 0;
}

.related-posts h3 {
  margin-bottom: var(--space-md);
  color: var(--navy);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.related-card {
  display: block;
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--navy);
  text-decoration: none;
}

.related-card h4 {
  margin-top: var(--space-sm);
  line-height: 1.35;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content > h1:first-child {
  display: none;
}

.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* About */
.about-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-xl) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer-sub {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .header {
    padding: 12px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }

  .article {
    padding: var(--space-xl) 0;
  }

  .article-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  .article-content {
    overflow-wrap: anywhere;
  }

  .article-meta {
    flex-wrap: wrap;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }
}
