/* =====================================================
   Αναsφάλιστα.gr — Main Stylesheet
   Modern, professional insurance portal
   ===================================================== */

/* ── Variables ── */
:root {
  --blue-900: #0f2240;
  --blue-800: #1a3560;
  --blue-700: #1e4080;
  --blue-600: #2952a3;
  --blue-500: #3b6fd4;
  --blue-100: #e8f0fc;
  --blue-50:  #f0f4ff;

  --orange-600: #e05a00;
  --orange-500: #f06400;
  --orange-400: #ff7a1a;
  --orange-50:  #fff4ed;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --red-600: #dc2626;
  --red-50:  #fef2f2;
  --green-600: #16a34a;
  --green-50:  #f0fdf4;

  --font-sans: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--gray-900); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .625rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.btn-primary {
  background: var(--orange-500); color: #fff;
  border-color: var(--orange-500);
}
.btn-primary:hover { background: var(--orange-600); border-color: var(--orange-600); text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-50); text-decoration: none; }
.btn-lg { padding: .875rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; display: flex; }

/* ── Header ── */
.site-header {
  background: var(--blue-900); color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .875rem 0;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.2rem; color: #fff; }
.logo-text strong { color: #93c5fd; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a {
  color: rgba(255,255,255,.85); padding: .5rem .75rem;
  border-radius: var(--radius-sm); font-size: .9rem;
  transition: all var(--transition);
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.mobile-menu-btn {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer; padding: .25rem;
}

/* ── Mobile Nav ── */
.mobile-nav {
  display: none; flex-direction: column; gap: .5rem;
  background: var(--blue-800); padding: 1rem 1.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.9); padding: .625rem .75rem;
  border-radius: var(--radius-sm); font-size: .95rem;
}
.mobile-nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  color: #fff; padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,100,0,.25); border: 1px solid rgba(255,100,0,.5);
  color: #fbbf24; padding: .375rem .875rem;
  border-radius: 2rem; font-size: .85rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin-bottom: 1.25rem; font-weight: 800; }
.text-accent { color: #93c5fd; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 560px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.1); }
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stat-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  padding: 1rem 1.5rem; text-align: center; min-width: 130px;
}
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: #fbbf24; line-height: 1.1; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: .25rem; }

/* ── Alert Banner ── */
.alert-banner {
  background: var(--red-50); border-top: 3px solid var(--red-600);
  padding: .875rem 0;
}
.alert-banner p { font-size: .95rem; color: var(--gray-700); text-align: center; }
.alert-banner a { color: var(--red-600); font-weight: 600; }

/* ── Quick CTA ── */
.quick-cta { padding: 2.5rem 0; background: var(--blue-50); }
.cta-card-prominent {
  background: #fff; border: 2px solid var(--blue-100);
  border-radius: var(--radius); padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-md);
}
.cta-card-prominent h2 { font-size: 1.4rem; margin-bottom: .5rem; color: var(--blue-900); }
.cta-card-prominent p { color: var(--gray-500); }
.cta-text { flex: 1; min-width: 250px; }
.cta-actions { display: flex; gap: .875rem; flex-wrap: wrap; }

/* ── Articles Section ── */
.articles-section { padding: 4rem 0; }
.section-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-100); }
.section-header h2 { font-size: 1.75rem; color: var(--blue-900); margin-bottom: .375rem; }
.section-header p { color: var(--gray-500); }

/* ── Article Cards ── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3.5rem; }
.articles-grid-featured { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.article-card {
  background: #fff; border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all var(--transition); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); text-decoration: none; }
.card-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .875rem; }
.category-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: .25rem .625rem; border-radius: 2rem; text-transform: uppercase; letter-spacing: .05em;
}
.category-badge.category-bofu { background: #dcfce7; color: #166534; }
.category-badge.category-mofu { background: #fef3c7; color: #92400e; }
.category-badge.category-tofu { background: var(--blue-50); color: var(--blue-700); }
.article-card h3 { font-size: 1.05rem; line-height: 1.4; color: var(--blue-900); margin-bottom: .625rem; font-weight: 700; }
.article-card p { font-size: .9rem; color: var(--gray-500); flex-grow: 1; margin-bottom: 1rem; line-height: 1.6; }
.card-link { font-size: .9rem; font-weight: 600; color: var(--blue-600); }
.article-card.card-featured { border-color: var(--orange-400); border-width: 2px; }
.article-card.card-featured::before {
  content: '⭐ Δημοφιλές';
  display: block; background: var(--orange-50); color: var(--orange-600);
  font-size: .75rem; font-weight: 700; padding: .25rem .75rem;
  margin: -.5rem -.5rem .875rem; border-radius: 8px 8px 0 0;
}

/* ── Bottom CTA ── */
.bottom-cta {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  padding: 4rem 0; text-align: center; color: #fff;
}
.bottom-cta-inner { max-width: 680px; margin: 0 auto; }
.bottom-cta h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.bottom-cta p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── Article Layout ── */
.breadcrumb { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); padding: .875rem 0; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.breadcrumb li { font-size: .875rem; color: var(--gray-500); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: .5rem; }
.breadcrumb a { color: var(--blue-600); }
.breadcrumb li:last-child { color: var(--gray-700); }

.article-layout { padding: 2.5rem 0 4rem; }
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }

.article-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-100); }
.article-meta { display: flex; align-items: center; gap: .875rem; margin-bottom: 1rem; }
.article-meta time { font-size: .875rem; color: var(--gray-500); }
.article-header h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.2; color: var(--blue-900); margin-bottom: 1rem; font-weight: 800; }
.article-lead { font-size: 1.1rem; color: var(--gray-500); line-height: 1.7; }

.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--gray-700); }
.article-body h2 { font-size: 1.5rem; color: var(--blue-900); margin: 2.5rem 0 1rem; font-weight: 700; }
.article-body h3 { font-size: 1.2rem; color: var(--blue-800); margin: 2rem 0 .75rem; font-weight: 700; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--blue-900); }

/* ── FAQ ── */
.faq-section { margin: 3rem 0; }
.faq-section h2 { font-size: 1.5rem; color: var(--blue-900); margin-bottom: 1.5rem; }
.faq-item { border: 1px solid var(--gray-100); border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 1.125rem 1.25rem;
  background: var(--gray-50); border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--blue-900);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--blue-50); }
.faq-question .icon { font-size: .875rem; transition: transform var(--transition); }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { display: none; padding: 1.125rem 1.25rem; font-size: .95rem; color: var(--gray-700); line-height: 1.7; border-top: 1px solid var(--gray-100); }
.faq-item.open .faq-answer { display: block; }

/* ── Article CTA ── */
.article-cta { margin: 3rem 0 0; }
.cta-card {
  background: linear-gradient(135deg, var(--blue-50), #fff);
  border: 2px solid var(--blue-100); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.cta-card h3 { font-size: 1.25rem; color: var(--blue-900); margin-bottom: .625rem; }
.cta-card p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-widget { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.sidebar-cta { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }
.sidebar-cta h3 { font-size: 1.1rem; margin-bottom: .625rem; }
.sidebar-cta p { font-size: .875rem; color: rgba(255,255,255,.85); margin-bottom: 1.25rem; }
.sepe-link { display: block; text-align: center; margin-top: .875rem; font-size: .85rem; color: rgba(255,255,255,.75); }
.sepe-link:hover { color: #fff; }
.sidebar-widget h4 { font-size: 1rem; color: var(--blue-900); margin-bottom: 1rem; padding-bottom: .625rem; border-bottom: 2px solid var(--gray-100); }
.facts-list { list-style: none; padding: 0; }
.facts-list li { padding: .5rem 0; border-bottom: 1px solid var(--gray-50); font-size: .9rem; color: var(--gray-700); }
.facts-list li:last-child { border-bottom: none; }
.related-list { list-style: none; padding: 0; }
.related-list li { padding: .375rem 0; border-bottom: 1px solid var(--gray-50); }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: .875rem; color: var(--blue-600); line-height: 1.4; }

/* ── Mobile Bottom CTA ── */
.mobile-bottom-cta { display: none; padding: 1.5rem 0; background: var(--orange-50); border-top: 2px solid var(--orange-400); }

/* ── Footer ── */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { font-size: 1.1rem; display: block; margin-bottom: .75rem; }
.footer-brand .logo-text strong { color: #93c5fd; }
.footer-brand p { font-size: .875rem; line-height: 1.7; }
.footer-links h4 { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links a { display: block; font-size: .875rem; color: rgba(255,255,255,.65); padding: .25rem 0; }
.footer-links a:hover { color: #fff; }
.footer-cta p { color: rgba(255,255,255,.75); margin-bottom: 1rem; font-size: .95rem; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .mobile-bottom-cta { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; margin-left: auto; }
  .site-header .btn-primary { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: .75rem; }
  .stat-card { min-width: 100px; padding: .75rem 1rem; }
  .cta-card-prominent { flex-direction: column; text-align: center; padding: 1.5rem; }
  .articles-grid, .articles-grid-featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-header h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; width: 100%; }
  .hero-stats { flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 90px; }
}

/* ── Article Byline & Disclaimer ── */
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0 .75rem;
  font-size: .85rem;
  color: var(--gray-500);
}
.byline-author { font-weight: 600; color: var(--gray-600); }
.byline-sep { color: var(--gray-300); }
.byline-ai {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .78rem;
  cursor: help;
}
.article-disclaimer {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: .75rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: .84rem;
  color: #78350f;
  margin: .75rem 0 1.5rem;
  line-height: 1.6;
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  font-size: .9rem;
}
#cookie-banner .cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#cookie-banner p { flex: 1; margin: 0; line-height: 1.6; }
#cookie-banner p a { color: #93c5fd; text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: #2563eb;
  color: #fff;
  border: 2px solid #2563eb;
  padding: .55rem 1.25rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-accept:hover { background: #1d4ed8; border-color: #1d4ed8; }
.cookie-btn-reject {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid #64748b;
  padding: .55rem 1.25rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-reject:hover { border-color: #94a3b8; color: #fff; }
.cookie-btn-settings {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: .55rem .75rem;
  font-size: .85rem;
  cursor: pointer;
  text-decoration: underline;
}
.cookie-settings-link {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: .25rem 0;
}
.cookie-settings-link:hover { color: rgba(255,255,255,.8); }

/* ── Legal Pages ── */
.legal-page { max-width: 820px; margin: 3rem auto; padding: 0 1.5rem; }
.legal-page h1 { font-size: 2rem; color: var(--blue-900); margin-bottom: .5rem; }
.legal-page .legal-meta { color: var(--gray-500); font-size: .875rem; margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.2rem; color: var(--blue-800); margin: 2rem 0 .75rem; }
.legal-page h3 { font-size: 1rem; color: var(--blue-700); margin: 1.5rem 0 .5rem; }
.legal-page p, .legal-page li { font-size: .95rem; line-height: 1.8; color: var(--gray-600); }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; margin: .75rem 0; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 1rem 0; }
.legal-page table th { background: var(--blue-50); color: var(--blue-800); padding: .6rem .75rem; text-align: left; border: 1px solid var(--blue-100); }
.legal-page table td { padding: .6rem .75rem; border: 1px solid var(--gray-100); color: var(--gray-600); vertical-align: top; }
.legal-page table tr:nth-child(even) td { background: var(--gray-50); }
.imprint-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.imprint-box p { margin: .35rem 0; font-size: .95rem; }

/* ── Footer Legal Links ── */
.footer-legal { margin-top: 1rem; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.45); margin-right: 1rem; }
.footer-legal a:hover { color: rgba(255,255,255,.75); }
.footer-company { font-size: .78rem; color: rgba(255,255,255,.35); line-height: 1.7; margin-top: .5rem; }
.footer-relationship { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: .75rem; font-style: italic; }
