/* ------- Small Price Widgets ------- */
.small-widget {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  width: 240px;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin: 12px;
}

.small-widget .widget-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}

.small-widget .widget-price {
  font-size: 26px;
  font-weight: bold;
  color: #222;
  margin-bottom: 6px;
}

.small-widget .widget-info div {
  font-size: 14px;
  margin: 4px 0;
}

.small-widget .widget-chart {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 6px;
}

.price-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

p {
  margin-bottom: 30px;
  margin-top: 30px;
}




.market-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}




/* Genel kapsayıcı */
.market-tables {
    flex: 2;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #1f1f1f;
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 40px auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Başlık */
.market-tables h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700; /* Altın için default */
}

/* Tabloların genel ayarları */
.market-tables table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

/* Table Head */
.market-tables thead {
    background: linear-gradient(90deg, #29293d, #3a3a5a);
}

.market-tables th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

/* Table Body */
.market-tables tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

/* Hover efekti */
.market-tables tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Table hücreleri */
.market-tables td {
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* Pozitif / negatif değişim renkleri */
.market-tables td.up {
    color: #4caf50;
    font-weight: 600;
}

.market-tables td.down {
    color: #f44336;
    font-weight: 600;
}

/* Tablo başlığına özel renkler */
#gold-table + h2, #gold-table h2 {
    color: #ffd700; /* Altın */
}

#silver-table + h2, #silver-table h2 {
    color: #c0c0c0; /* Gümüş */
}




.ai-panel {
    flex: 1; /* Sağ panel */
    margin: 40px auto;
    background: #1f1f1f;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    line-height: 1.4;
}
.ai-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}
.ai-panel p {
    margin: 5px 0;
    color: #fff;
}
.ai-panel .up { color: #4caf50; }
.ai-panel .down { color: #f44336; }






@media (max-width: 768px) {
    .price-card {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-links-header {
        display: none;
    }
    .ad-left {
        display: none;
    }
    .ad-right {
        display: none;
    }
        .market-tables table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* iOS için kaydırma */
    }

    .market-tables th,
    .market-tables td {
        white-space: nowrap; /* Satır taşmasını önler */
    }

    .market-tables th {
        font-size: 13px;
        padding: 10px;
    }

    .market-tables td {
        font-size: 12px;
        padding: 10px;
    }
        .market-container {
        flex-direction: column; /* Yan yana yerine alt alta */
    }

    .ai-panel {
        margin: 20px 0; /* üst-alt boşluk artır */
        width: 100%;    /* tam genişlik */
    }

    .market-tables {
        width: 100%; /* tablo da tam genişlik */
    }

}

@media (max-width: 480px) {
    .price-card {
        grid-template-columns: 1fr;
    }
    .nav-links-header {
        display: none;
    }
    .ad-left {
        display: none;
    }
    .ad-right {
        display: none;
    }
    .market-tables th,
    .market-tables td {
        padding: 8px;
        font-size: 11px;
    }
}


/* Responsive */
/* Mobil görünüm iyileştirme */
@media (max-width: 600px) {
    .market-tables thead {
        display: none;
    }
    .market-tables table,
    .market-tables tbody,
    .market-tables tr,
    .market-tables td {
        display: block;
        width: 100%;
    }

    .market-tables tr {
        margin-bottom: 15px;
        border-radius: 10px;
        background: #2a2a3d; /* kart arka planı */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        padding: 15px 10px;
        border: 1px solid rgba(255,255,255,0.1);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .market-tables tr:active {
        transform: scale(0.98);
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .market-tables td {
        padding-left: 50%;
        position: relative;
        text-align: left;
    }

    .market-tables td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 12px;
        font-weight: 600;
        color: #ffd700; /* Başlık rengi */
    }
}