/**
 * Destek Portföy - Kurumsal Tasarım Sistemi & Orijinal Destek Portföy Turuncu Renk Paleti
 * Orijinal Destek Portföy Turuncusu (#FF6B00) & Grafit Slate (#1E293B)
 */

@import url('fonts.css');

:root {
  --primary: #FF6B00;
  --primary-hover: #E65100;
  --primary-dark: #B43A00;
  --primary-light: #FFF7ED;
  --primary-glow: rgba(255, 107, 0, 0.15);
  
  --secondary: #1E293B;
  --secondary-dark: #0F172A;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --bg-page: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-emerald: #FED7AA;
  --border-orange: #FED7AA;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-emerald: 0 10px 25px -5px rgba(255, 107, 0, 0.35);
  --shadow-orange: 0 10px 25px -5px rgba(255, 107, 0, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
}

/* Light default for headings when not inside a dark container or explicit color class */
body h1:not([class*="text-"]),
body h2:not([class*="text-"]),
body h3:not([class*="text-"]),
body h4:not([class*="text-"]),
body h5:not([class*="text-"]),
body h6:not([class*="text-"]) {
  color: var(--secondary);
}

/* Ensure bright contrast in dark containers */
.text-white,
[class*="from-slate-900"] h1, [class*="from-slate-900"] h2, [class*="from-slate-900"] h3, [class*="from-slate-900"] h4,
.bg-slate-900 h1, .bg-slate-900 h2, .bg-slate-900 h3, .bg-slate-900 h4,
.bg-slate-800 h1, .bg-slate-800 h2, .bg-slate-800 h3, .bg-slate-800 h4,
.newsletter-section h2, .newsletter-section h3 {
  color: #FFFFFF;
}

.site-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================
   BUTONLAR & ETİKETLER
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #FFFFFF !important;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-outline-emerald,
.btn-outline-orange {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-emerald:hover,
.btn-outline-orange:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-pill {
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.0625rem;
}

/* ==========================================
   HEADER & NAVBAR
   ========================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

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

/* Destek Logo */
.destek-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.destek-logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.destek-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

.destek-logo-text span {
  color: var(--primary);
  font-weight: 600;
}

/* Top Announcement Bar */
.top-bar {
  background-color: #0F172A;
  color: #94A3B8;
  font-size: 0.75rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(255, 107, 0, 0.08) 0%, rgba(248, 250, 252, 0.6) 60%, #FFFFFF 100%);
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFF7ED;
  color: var(--primary-dark);
  border: 1px solid var(--border-orange);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title .text-emerald,
.hero-title .text-orange {
  color: var(--primary);
  background: linear-gradient(135deg, #FF6B00 0%, #FA541C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

/* Hero 3D Card Graphic */
.hero-graphic-card {
  position: relative;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 28px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 107, 0, 0.05);
  padding: 2rem;
  overflow: hidden;
}

.hero-floating-badge {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================
   FON KARTLARI & GRID (Destek Portföy Orange Palette)
   ========================================== */
.fund-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.fund-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 16px 36px -8px rgba(255, 107, 0, 0.18);
}

.fund-card-header {
  background: linear-gradient(135deg, #FF6B00 0%, #FA541C 100%);
  color: #FFFFFF;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fund-card-code {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.fund-card-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

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

.fund-stat-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
}

.fund-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.fund-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

/* Risk Seviyesi Göstergesi (6/7, 2/7 Dial) */
.risk-gauge-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

.risk-dial-circle {
  width: 44px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--secondary);
}

.risk-dial-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

/* ==========================================
   HESAPLAYICI & KARŞILAŞTIRMA ARACI
   ========================================== */
.calculator-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.calc-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4);
  transition: transform 0.1s;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ==========================================
   FON NASIL ALINIR (APP MOCKUPS)
   ========================================== */
.app-mockup-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.app-mockup-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.phone-frame {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: #0F172A;
  border: 6px solid #1E293B;
  border-radius: 36px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}

.phone-screen {
  background: #FFFFFF;
  min-height: 380px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   BLOG KARTLARI
   ========================================== */
.blog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  height: 180px;
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

/* ==========================================
   MERAK EDİLENLER (FAQ ACCORDION)
   ========================================== */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  background: var(--primary);
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* ==========================================
   HAFTALIK BÜLTEN (NEWSLETTER)
   ========================================== */
.newsletter-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 28px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================
   FOOTER (Destek Portföy Style)
   ========================================== */
.main-footer {
  background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%);
  border-top: 1px solid var(--border-color);
  color: #334155;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-link {
  font-size: 0.875rem;
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 2px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.footer-contact-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================
   MODALLAR & OVERLAYS
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 0.75rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================
   ÇEREZ BİLDİRİMİ (COOKIE BANNER)
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px -5px rgba(0,0,0,0.15);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
