/* ============================================
   AKBAY Döviz – Minimal Clean Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark: #111111;
  --dark-soft: #1a1a1a;
  --accent: #c8a450;
  --accent-hover: #b8943f;
  --bg: #fafafa;
  --bg-alt: #f3f3f3;
  --card: #ffffff;
  --text: #222222;
  --text-mid: #555555;
  --text-light: #888888;
  --accent-green: #2d9d6a;
  --accent-red: #d44;
  --border: #e8e8e8;
  --radius: 10px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* Erişilebilirlik: Yalnızca ekran okuyuculara görünür */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-decoration: none;
}

.logo-main {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.logo-icon {
  display: none;
}

.logo-accent {
  color: var(--accent);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--text-mid);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--dark);
  background: var(--bg-alt);
}

.nav-link.active {
  color: var(--dark);
  font-weight: 500;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  min-height: 520px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.82);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 0.92rem;
  opacity: 0.65;
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.65;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  border: none;
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: 400;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  margin-left: 8px;
  transition: border-color var(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* --- Sections --- */
.section {
  padding: 72px 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 0.85rem;
  font-weight: 300;
}

.auto-refresh-note {
  font-size: 0.78rem;
  opacity: 0.6;
}

/* --- Rate Board --- */
.rates-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #0f0c29, #1a1a2e, #16213e, #0f0c29);
  background-size: 400% 400%;
  animation: ratesGradient 12s ease infinite;
}

@keyframes ratesGradient {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.rates-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(200,164,80,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 70%, rgba(200,164,80,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 10%, rgba(100,140,200,0.10) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: ratesGlow 8s ease-in-out infinite alternate;
}

@keyframes ratesGlow {
  0%   { opacity: 0.6; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1.02); }
}

.rates-section > .container {
  position: relative;
  z-index: 1;
}

.rate-board {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
}

.rate-table thead {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
}

.rate-table th {
  padding: 11px 20px;
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
}

.rate-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.rate-table tbody tr:last-child td {
  border-bottom: none;
}

.rate-table tbody tr:hover td {
  background: var(--bg-alt);
}

.currency-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.currency-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.currency-name {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 300;
}

.rate-value {
  font-weight: 500;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--dark);
}

.trend-up {
  color: var(--accent-green);
  font-weight: 500;
  font-size: 0.88rem;
}

.trend-down {
  color: var(--accent-red);
  font-weight: 500;
  font-size: 0.88rem;
}

.trend-neutral {
  color: var(--text-light);
  font-weight: 400;
}

/* ── EUR/USD Parite satırı ── */
.parity-row td {
  background: var(--bg-alt);
  border-top: 2px solid var(--border);
}
.parity-flags {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}
.parity-flags .currency-flag {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.parity-flags .currency-flag:first-child {
  left: 0; top: 0; z-index: 2;
}
.parity-flag-2 {
  left: 18px; top: 0; z-index: 1; opacity: 0.92;
}
.parity-na {
  color: var(--text-light);
  font-weight: 300;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  display: inline-block;
  width: 72px;
  height: 18px;
  vertical-align: middle;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* API Error */
.api-error {
  margin-top: 20px;
  padding: 16px 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: var(--accent-red);
  text-align: center;
  font-weight: 400;
  font-size: 0.88rem;
}

.rates-disclaimer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  font-style: italic;
}

/* --- About --- */
.about-section {
  background: var(--card);
}

.about-text > p {
  font-size: 0.92rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.75;
  font-weight: 300;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px 18px;
  background: var(--bg);
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: #ccc;
}

.feature-icon {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}

.feature-card h3 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
  font-weight: 300;
}

/* --- Services --- */
.services-section {
  background: var(--bg-alt);
}

.services-section .section-title {
  color: var(--dark);
  text-align: center;
}

.services-section .section-subtitle {
  color: var(--text-light);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: left;
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: #ccc;
}

.service-icon {
  font-size: 1.3rem;
  margin-bottom: 14px;
  display: block;
}

.service-card h3 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
  font-weight: 300;
}

/* --- Contact --- */
.contact-section {
  background: var(--card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 8px;
}

.contact-item strong {
  display: block;
  margin-bottom: 1px;
  color: var(--dark);
  font-size: 0.84rem;
  font-weight: 500;
}

.contact-item p {
  color: var(--text-light);
  font-size: 0.84rem;
  font-weight: 300;
}

.contact-item a {
  color: var(--accent);
  font-weight: 400;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  transition: opacity var(--transition);
}

.social-link:hover {
  opacity: 0.85;
}

.social-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-google {
  background: #4285f4;
}

.map-placeholder {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.84rem;
}

.map-placeholder span {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  padding: 40px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer .logo {
  color: #fff;
}

.footer .logo-accent {
  color: var(--accent);
}

.footer .logo-main {
  color: #fff;
}

.footer .logo-sub {
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 240px;
  font-weight: 300;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: 300;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-bottom: 6px;
  font-weight: 300;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.76rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-features,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 90px 0 70px;
    min-height: 420px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    max-width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .rate-table th,
  .rate-table td {
    padding: 12px 12px;
    font-size: 0.84rem;
  }

  .rate-value {
    font-size: 0.88rem;
  }

  .currency-flag {
    width: 24px;
    height: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.35rem;
  }

  .rate-table th,
  .rate-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .rate-value {
    font-size: 0.84rem;
  }

  .currency-name {
    display: none;
  }
}

/* --- Rate update flash animation --- */
@keyframes rateFlash {
  0%   { background: rgba(200, 164, 80, 0.18); }
  100% { background: transparent; }
}

.rate-updated {
  animation: rateFlash 0.7s ease-out forwards;
}

/* --- Values Section --- */
.values-section {
  background: var(--bg-alt);
}
.values-section .section-title,
.values-section .section-subtitle {
  text-align: center;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(200,164,80,0.08);
}
.value-icon {
  width: 44px;
  height: 44px;
  background: var(--dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.value-card p {
  font-size: 0.81rem;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 300;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-bounce 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0;
  animation: whatsapp-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes whatsapp-ping {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}
