*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f6f8;color:#17202a}

header{
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
  color:#fff;
  padding:38px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}

header small{
  display:inline-block;
  background:rgba(255,255,255,.14);
  padding:7px 10px;
  border-radius:999px;
  margin-bottom:12px
}

header h1{margin:0;font-size:38px;line-height:1.12}
header p{margin:10px 0 0;color:#dbeafe}

header span{
  background:rgba(255,255,255,.14);
  padding:10px 14px;
  border-radius:999px;
  white-space:nowrap
}

nav{
  position:sticky;
  top:0;
  z-index:10;
  background:#fff;
  padding:12px 8%;
  display:flex;
  gap:10px;
  overflow-x:auto;
  box-shadow:0 8px 22px rgba(15,23,42,.06)
}

nav a{
  text-decoration:none;
  color:#0f172a;
  background:#eef2ff;
  border:1px solid #dbeafe;
  padding:9px 13px;
  border-radius:999px;
  white-space:nowrap;
  font-weight:600
}

main{padding:30px 8%}

.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:12px 0 18px
}

.section-title h2{margin:0;font-size:30px}
.section-title p{margin:0;color:#64748b;text-align:right}

/* 🔥 GENEL CARD GRID */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px
}

/* 🔥 ALTIN + GÜMÜŞ SABİT 2'Lİ */
#metalsGrid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card{
  background:#fff;
  border-radius:18px;
  padding:22px;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  border:1px solid #e5e7eb
}

.card h3{margin:0;font-size:26px;line-height:1.15}
.card p{color:#64748b;min-height:22px}
.card small{display:block;margin-top:12px;color:#94a3b8}

.metal{
  border-color:#f8d56b;
  background:linear-gradient(180deg,#fff,#fffaf0)
}

.rate{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid #e5e7eb;
  padding-top:12px;
  margin-top:12px
}

.rate span{color:#64748b}
.rate strong{font-size:18px;text-align:right}

.loading,.warning{
  background:#fff4d6;
  border:1px solid #facc15;
  padding:16px;
  border-radius:14px;
  grid-column:1/-1
}

.info-box{
  margin-top:16px;
  background:#eef6ff;
  border:1px solid #bfdbfe;
  padding:14px 16px;
  border-radius:14px;
  color:#334155
}

/* 🔥 TRADINGVIEW */
.tv-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:18px;
  margin-top:18px
}

.tv-card{
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  border:1px solid #e5e7eb
}

.tv-card h3{
  margin:0 0 12px;
  font-size:22px
}

.news{margin-top:42px}

.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px
}

article{
  background:#fff;
  border-radius:16px;
  padding:20px;
  box-shadow:0 12px 30px rgba(15,23,42,.07);
  border:1px solid #e5e7eb
}

article span{
  display:inline-block;
  background:#e0ecff;
  color:#1d4ed8;
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
  font-weight:700
}

article h3{font-size:18px;line-height:1.35}

article a{
  text-decoration:none;
  color:#0f172a
}

article a:hover{text-decoration:underline}
article p{color:#64748b}

.sources{
  margin-top:42px;
  background:#fff;
  border-radius:18px;
  padding:24px;
  border:1px solid #e5e7eb
}

.source-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px
}

.source-list a{
  background:#f1f5f9;
  color:#0f172a;
  text-decoration:none;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid #e2e8f0
}

footer{
  text-align:center;
  padding:26px;
  color:#64748b
}

/* 🔥 MOBİL */
@media(max-width:700px){
  header{display:block;padding:30px 6%}
  header h1{font-size:28px}
  header span{display:inline-block;margin-top:16px}

  .section-title{display:block}
  .section-title p{text-align:left;margin-top:6px}

  main{padding:24px 6%}

  #metalsGrid{
    grid-template-columns: 1fr;
  }
}