/* ===========================================================
   Kuyumcu Borsası - Genel Site Stili
   =========================================================== */

:root {
  --gold: #b3a06a;
  --gold-light: #d9cda3;
  --dark: #55585a;
  --dark-soft: #3f4244;
  --cream: #f4f4f3;
  --text-muted: #6d7072;
  --border: #dcdcda;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(60, 62, 63, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 .5rem;
  letter-spacing: .3px;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-weight: 900;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: #e9e4d8;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.main-nav a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 20%, #26221a, var(--dark) 65%);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #fff;
}

.hero p {
  color: #cfc7b3;
  max-width: 560px;
  margin: 12px auto 0;
}

/* ---------- Section headings ---------- */
.section {
  padding: 48px 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 1.7rem;
  position: relative;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--gold);
}

.section-title a {
  font-size: .9rem;
  color: var(--gold);
  font-weight: 600;
}

.rate-updated-note {
  font-size: .78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rate-updated-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fae5c;
  display: inline-block;
  animation: rate-pulse 1.6s infinite;
}

@keyframes rate-pulse {
  0% { opacity: 1; }
  50% { opacity: .35; }
  100% { opacity: 1; }
}

/* ---------- Rate dashboard ---------- */
.rate-subgroup-title {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin: 26px 0 12px;
}

.rate-subgroup-title:first-child {
  margin-top: 0;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.rate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
}

.rate-card:hover {
  transform: translateY(-3px);
}

.rate-card h3 {
  font-size: .95rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.rate-card .price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  color: var(--gold);
  font-weight: 700;
  margin: 6px 0 4px;
}

.rate-card .buy {
  font-size: .85rem;
  color: var(--text-muted);
}

.rate-card .change {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 2px 0 6px;
}

.rate-card .change.up {
  color: #2f8f4e;
}

.rate-card .change.down {
  color: #c0392b;
}

.empty-note {
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(20,18,15,.14);
}

.product-thumb {
  aspect-ratio: 1 / 1;
  background: #f1ece0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb .placeholder {
  color: var(--text-muted);
  font-size: .85rem;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.product-meta {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 10px;
}

.product-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- News list ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-thumb {
  height: 150px;
  background: #f1ece0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 16px;
}

.news-category {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.news-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: .9rem;
}

.news-date {
  display: block;
  margin-top: 10px;
  font-size: .78rem;
  color: var(--text-muted);
}

/* ---------- Detail pages ---------- */
.detail-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 720px) {
  .detail-wrap {
    grid-template-columns: 1fr;
  }
}

.detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1ece0;
  box-shadow: var(--shadow);
}

.detail-price-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}

.detail-price-box .price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--gold);
}

.btn {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.btn:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ---------- Döviz / Altın Çevirici ---------- */
.converter-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.converter-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.converter-row + .converter-row {
  margin-top: 14px;
}

.converter-input,
.converter-result {
  flex: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--cream);
  min-width: 0;
}

.converter-result {
  color: var(--gold);
  display: flex;
  align-items: center;
}

.converter-select {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
  color: var(--dark);
  min-width: 0;
}

.converter-swap {
  display: block;
  margin: 16px auto;
}

.converter-note {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 480px) {
  .converter-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Panel (yönetim) ---------- */
.panel-field {
  margin-bottom: 16px;
}

.panel-subsection {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 18px 18px 4px;
  margin-bottom: 20px;
}

.panel-subsection h4 {
  margin: 0 0 14px;
  font-size: .95rem;
  color: var(--dark);
}

.panel-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.panel-input,
input.panel-input,
textarea.panel-input,
select.panel-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: var(--cream);
}

.panel-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--dark);
}

.btn-danger {
  background: #a23a2f;
}

.btn-danger:hover {
  background: #7d2c23;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-table th,
.panel-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: .9rem;
}

.panel-table th {
  background: var(--cream);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .4px;
}

.panel-table tr:last-child td {
  border-bottom: none;
}

.panel-table .row-actions a {
  margin-right: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-card-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.panel-card-links a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--dark);
}

.panel-card-links a span {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ---------- Bildirimler ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 12px;
}

.alert-success {
  background: #e5f3e8;
  color: #256b3a;
  border: 1px solid #bfe3c8;
}

.alert-error {
  background: #fbe7e5;
  color: #96352a;
  border: 1px solid #f2c3bd;
}

/* ---------- Piyasa Durumu panosu (koyu tema, ticker tablo) ---------- */
.board-section {
  background: #0a0a0a;
  padding: 32px 0 40px;
}

.price-board {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
}

.board-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.board-quickstats {
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--gold-light);
  font-weight: 600;
}

.board-quickstats strong {
  color: #3ddc71;
  font-weight: 700;
}

.board-meta {
  text-align: center;
  color: #cfcfcf;
  font-size: .85rem;
  margin: 10px 0 22px;
}

.board-notice {
  text-align: center;
  color: #f4d675;
  background: rgba(244, 214, 117, 0.08);
  border: 1px solid rgba(244, 214, 117, 0.35);
  border-radius: 8px;
  font-size: .85rem;
  padding: 10px 16px;
  margin: 4px auto 16px;
  max-width: 720px;
  line-height: 1.5;
}

.board-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #262626;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  background: #050505;
  min-width: 620px;
}

.board-table th {
  background: #111;
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #262626;
}

.board-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c1c;
  color: #fff;
  font-size: .92rem;
}

.board-row:last-child td {
  border-bottom: none;
}

.board-name {
  font-weight: 700;
  white-space: nowrap;
}

.board-dir {
  font-size: 1rem;
  font-weight: 700;
  color: #7a7a7a;
}

.board-dir.up {
  color: #3ddc71;
}

.board-dir.down {
  color: #e6564a;
}

.pill {
  display: inline-block;
  background: #123a26;
  color: #f4d675;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .92rem;
  white-space: nowrap;
}

.board-fark,
.board-pct {
  font-weight: 700;
  color: #7a7a7a;
  white-space: nowrap;
}

.board-fark.up,
.board-pct.up {
  color: #3ddc71;
}

.board-fark.down,
.board-pct.down {
  color: #e6564a;
}

.board-time {
  color: #9a9a9a;
  font-size: .82rem;
  white-space: nowrap;
}

.board-footnote {
  color: #8a8a8a;
  font-size: .8rem;
  margin-top: 18px;
  line-height: 1.5;
}

.board-footnote code {
  color: #cfcfcf;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-soft);
  color: #cfc7b3;
  padding: 40px 0 24px;
  margin-top: 60px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-col p, .footer-col a {
  font-size: .88rem;
  color: #b7ae9a;
  display: block;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  font-size: .8rem;
  color: #8a8271;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
  }
}
