/* ===================================================================
   HangiFinans - Modern Finans & Kredi Karşılaştırma Tasarım Sistemi
   Sade, Şık, Ultra Hızlı ve Mobil Uyumlu UI
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Primary Colors */
  --primary: #00875a;          /* HangiKredi yeşili / Güven veren zümrüt */
  --primary-hover: #006644;
  --primary-light: #e3fcef;
  --primary-dark: #004d34;

  /* Accent Colors */
  --accent-blue: #0052cc;
  --accent-purple: #6554c0;
  --accent-amber: #ff991f;
  --accent-red: #de350b;

  /* Grayscale / Dark Backgrounds */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-logo .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #00875a 0%, #00b874 100%);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(0, 135, 90, 0.25);
}

.brand-logo span.accent {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.2);
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.75rem;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

/* Calculator Card */
.calc-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.calc-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
  overflow-x: auto;
}

.calc-tab {
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.calc-tab:hover {
  color: var(--primary);
}

.calc-tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.1);
}

.range-slider {
  width: 100%;
  accent-color: var(--primary);
  margin-top: 0.5rem;
  cursor: pointer;
}

.calc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 135, 90, 0.35);
}

/* Loan Offer Card */
.offer-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.offer-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.offer-card.sponsored {
  border: 2px solid #00875a;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 50px);
}

.sponsor-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #00875a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-bottom-left-radius: 8px;
}

.offer-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr 180px;
  align-items: center;
  gap: 1.25rem;
}

.bank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bank-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.loan-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.metric-val.rate {
  color: var(--primary);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-top: 6px;
  width: max-content;
}

/* Card Offers Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-item {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.card-visual {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-visual::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.card-chip {
  width: 32px;
  height: 24px;
  background: #f59e0b;
  border-radius: 4px;
}

/* Features List */
.features-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-list li i {
  color: var(--primary);
}

/* SEO Content Section */
.seo-section {
  padding: 4rem 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

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

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.blog-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links-title {
  color: #fff;
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ==================== MOBİL MENÜ & DRAWER STILLERI ==================== */
.mobile-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mobile-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2.2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-toggle-btn:hover .hamburger-bar {
  background-color: var(--primary);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden; /* Sağ taraftaki gölgenin taşmasını engeller */
  box-shadow: none;   /* Kapalıyken kesinlikle gölge oluşturmaz */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease, box-shadow 0.3s ease;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
}

.mobile-drawer-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
}

.mobile-group-title:first-child {
  margin-top: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.15s ease;
}

.mobile-nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.mobile-nav-link .nav-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-link .nav-text i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.mobile-nav-link .arrow-icon {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.mobile-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

/* Mobil Alt Sabit Bar (App Bar) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 1000;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.mobile-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.mobile-bar-item i {
  font-size: 1.15rem;
}

.mobile-bar-item.active,
.mobile-bar-item:hover {
  color: var(--primary);
}

body.menu-locked {
  overflow: hidden;
}

/* ==================== CANLITV WIDGET DOLGUNLAŞTIRMA & GENİŞLETME ==================== */
.api-widget-section {
  padding: 2rem 0 !important;
}

#widget {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

#widget .instagram-lookup-widget {
  width: 100% !important;
  max-width: 680px !important;
  padding: 22px 26px !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6) !important;
}

#widget .widget-tabs {
  margin-bottom: 14px !important;
  padding: 5px !important;
  border-radius: 10px !important;
}

#widget .widget-tab-btn {
  padding: 9px 18px !important;
  font-size: 13.5px !important;
}

#widget .search-form {
  padding: 6px 6px 6px 16px !important;
  border-radius: 10px !important;
  min-height: 52px !important;
}

#widget .instagram-lookup-widget .form-input {
  font-size: 14px !important;
  padding: 10px 8px !important;
}

#widget .instagram-lookup-widget .btn-gradient {
  padding: 10px 22px !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
}

/* ==================== EN SONDAKI MEDIA QUERYLER ==================== */
@media (max-width: 900px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .offer-grid .bank-info {
    grid-column: span 2;
  }
  .offer-grid .offer-action {
    grid-column: span 2;
  }
  .nav-menu {
    display: none !important;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex !important;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .api-widget-section {
    padding: 1.5rem 0.5rem !important;
  }
  #widget .instagram-lookup-widget {
    max-width: 100% !important;
    padding: 18px 16px !important;
  }
}

@media (max-width: 640px) {
  .mobile-bottom-bar {
    display: flex !important;
  }
  body {
    padding-bottom: 70px;
  }
}



