/* Uludağ Kıymetli Madenler — site stili (tek koyu zemin) */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #12141a;
  --bg-2: #1a1d25;
  --bg-3: #21252f;
  --line: #2a2e38;
  --text: #edebe0;
  --text-2: #b5b4aa;
  --muted: #82848d;
  --gold: #d9b64a;
  --gold-2: #b08b32;
  --up: #5dd39e;
  --down: #f08a8a;
  --radius: 16px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- fiyat şeridi (sayfanın en üstü) ---------- */
.ticker { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ticker[hidden] { display: none; }
.ticker-row {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 13px 0;
}
.ticker-row::-webkit-scrollbar { display: none; }
.ticker-item { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; flex-shrink: 0; }
.ticker-name {
  font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.ticker-val {
  font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text);
  padding: 1px 6px; border-radius: 6px;
}
.price-dir { font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.price-dir.up { color: var(--up); }
.price-dir.down { color: var(--down); }
/* fiyat değişim uyarısı: artışta yeşil, düşüşte kırmızı yanıp söner */
@keyframes tickFlashUp {
  0%, 55% { color: #86ffc4; background: rgba(93, 211, 158, .22); }
  100% { color: var(--text); background: transparent; }
}
@keyframes tickFlashDown {
  0%, 55% { color: #ffb3b3; background: rgba(240, 138, 138, .22); }
  100% { color: var(--text); background: transparent; }
}
.ticker-val.flash-up { animation: tickFlashUp 1.6s ease; }
.ticker-val.flash-down { animation: tickFlashDown 1.6s ease; }
@media (max-width: 720px) {
  .ticker-row { justify-content: flex-start; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px; padding-top: 10px; padding-bottom: 10px;
}
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav > a, .nav-dd > a {
  color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  letter-spacing: .01em; transition: color .2s;
}
.nav > a:hover, .nav-dd > a:hover { color: var(--text); }

/* Uyum açılır menüsü */
.nav-dd { position: relative; }
.nav-dd > a::after {
  content: "▾"; font-size: 10px; margin-left: 6px; color: var(--muted);
}
.dd-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 14px; display: none; z-index: 60;
}
.dd-inner {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  min-width: 300px; padding: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.dd-inner a {
  display: block; padding: 11px 14px; border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-size: 14px; transition: .15s;
}
.dd-inner a:hover { background: var(--bg-3); color: var(--text); }
.dd-inner a span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu { display: block; }

/* dil anahtarı: TR | EN — menü dışında, her genişlikte görünür */
.lang { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-shrink: 0; }
.lang a { color: var(--muted); text-decoration: none; font-weight: 600; letter-spacing: .04em; transition: color .2s; }
.lang a:hover { color: var(--text); }
.lang a.active { color: var(--gold); }
.lang .sep { color: var(--line); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 50% -20%, rgba(176, 139, 50, .16), transparent 62%),
    radial-gradient(700px 400px at -10% 110%, rgba(176, 139, 50, .06), transparent 55%);
  padding: 104px 0 92px;
  position: relative;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px); font-weight: 650; letter-spacing: -.025em;
  line-height: 1.12; color: var(--text); margin: 0 auto;
}
.hero-logo { margin: 0 auto; }
.hero-logo img {
  width: clamp(280px, 44vw, 520px); height: auto;
  display: block; margin: 0 auto;
}
.hero p {
  margin: 26px auto 0; max-width: 62ch; font-size: 18px; line-height: 1.7; color: var(--text-2);
}
.hero .cta-row { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  border-radius: 12px; padding: 14px 28px; transition: .2s;
}
.btn-gold { background: var(--gold); color: #1b1603; }
.btn-gold:hover { background: #e7c65e; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- kurum logoları ---------- */
.inst-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inst-strip .wrap {
  display: flex; align-items: center; justify-content: center; gap: clamp(48px, 9vw, 130px);
  padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap;
}
.inst-strip img { height: 48px; width: auto; display: block; }

/* ---------- ortak bölüm ---------- */
section.block { padding: 96px 0; }
.kicker {
  font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
h2.title { font-size: clamp(28px, 4vw, 40px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.lead { margin-top: 18px; color: var(--text-2); max-width: 62ch; font-size: 17px; }

/* hakkımızda */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about-facts { display: grid; gap: 14px; margin-top: 8px; }
.about-photo {
  width: 100%; border-radius: var(--radius); display: block;
  aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 16px;
  border: 1px solid var(--line);
}
.fact {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.fact h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.fact p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.fact .gold-line { width: 26px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: 14px; }

/* uyum + duyurular kartları */
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .25s;
}
.card:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.card .tag {
  font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
}
.card h3 { margin-top: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.card p { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.card .arrow { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--gold); }

/* iletişim */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: var(--bg-2);
}
.contact-card h3 {
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.contact-card p, .contact-card a { margin-top: 10px; font-size: 15.5px; color: var(--text); text-decoration: none; display: block; line-height: 1.6; }
.contact-card a:hover { color: var(--gold); }
.contact-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.c-row { margin-top: 16px; }
.c-row:first-of-type { margin-top: 14px; }
.c-label {
  display: block; font-size: 11px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.c-row a, .c-row .c-val { margin-top: 0; font-size: 15.5px; color: var(--text); display: block; line-height: 1.5; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a { color: var(--text-2); text-decoration: none; font-size: 13.5px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  padding: 24px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: 12.5px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* alt sayfa (uyum) */
.subpage-hero { padding: 84px 0 24px; }
.subpage-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 650; letter-spacing: -.02em; color: var(--text); }
.subpage-hero p { margin-top: 16px; color: var(--text-2); max-width: 62ch; }
.doc-list { display: grid; gap: 16px; margin-top: 8px; max-width: 760px; }
.doc {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; text-decoration: none; color: inherit; transition: .2s;
}
.doc:hover { border-color: var(--gold-2); }
.doc h3 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.doc .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.doc .dl { font-size: 13.5px; font-weight: 650; color: var(--gold); white-space: nowrap; }

/* reveal animasyonu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-row, .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section.block { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .site-header .wrap { min-height: 64px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 18px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .inst-strip img { height: 30px; }
  .card-row, .contact-grid { grid-template-columns: 1fr; }
  .doc { flex-direction: column; align-items: flex-start; }
  /* mobilde açılır menü düz listeye dönüşür */
  .nav-dd { width: 100%; }
  .dd-menu { position: static; transform: none; display: block; padding-top: 8px; }
  .dd-inner { box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; min-width: 0; }
  .dd-inner a { padding: 7px 0; }
  .dd-inner a span { display: none; }
  /* dil anahtarı menü dışında: logo ile hamburger arasında sağda durur */
  .lang { margin-left: auto; }
}
