/* ============================
   ALTIN FİYAT SİSTEMİ CSS
   ============================ */

/* GENEL */
.af-price {
    font-weight: 700;
    color: #c9a227;
    font-size: 16px;
    text-align: right;
    white-space: nowrap;
}

/* ============================
   INFO BAR
   ============================ */
.af-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6e0c5;
    border-left: 4px solid #d4af37;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.af-info-text {
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

.af-update-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f7f1da;
    border: 1px solid #e8dfc0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

/* ============================
   CANLI NOKTA
   ============================ */
.af-live-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    display: inline-block;
    animation: afPulse 1.6s infinite;
}

@keyframes afPulse {
    0%   { transform: scale(1);   opacity: 1;   }
    50%  { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(1);   opacity: 1;   }
}

/* ============================
   TABLO KART
   ============================ */
.af-live-table {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6e0c5;
    overflow: hidden;
    margin: 18px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* TABLO HEADER */
.af-table-header {
    background: linear-gradient(135deg, #faf6e6, #f3ebc9);
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e8dfc0;
}

.af-gold-icon {
    font-size: 18px;
}

/* TABLO WRAP */
.af-table-wrap {
    overflow-x: auto;
}

/* TABLO */
.af-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* HEADER */
.af-table th {
    background: #faf6e6;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-align: left;
    border-bottom: 1px solid #e8dfc0;
}

/* SATIR */
.af-table td {
    padding: 13px 16px;
    font-size: 15px;
    border-bottom: 1px solid #f3ecd3;
}

/* ALTIN ADI */
.af-gold-name {
    font-weight: 500;
    color: #333;
}

/* FİYAT */
.af-table td.af-price {
    text-align: right;
}

/* HOVER */
.af-table tbody tr:hover {
    background: #fffdf6;
    transition: all .2s ease;
}

/* ============================
   SON GÜNCELLEME
   ============================ */
.af-update-info {
    padding: 10px 16px;
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffdf6;
}

/* ============================
   HESAPLAYICI
   ============================ */
.af-calc-widget {
    border: 1px solid #e8dfc0;
    border-radius: 10px;
    padding: 18px;
    background: #fffbf0;
    margin: 20px 0;
}

.af-calc-widget h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.af-calc-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.af-calc-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #444;
}

/* INPUTLAR */
.af-calc-row input,
.af-calc-row select {
    padding: 7px 10px;
    border: 1px solid #e6e0c5;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 140px;
}

.af-calc-row input:focus,
.af-calc-row select:focus {
    outline: none;
    border-color: #d4af37;
}

/* SONUÇ */
.af-cw-result {
    font-size: 18px;
    color: #c9a227;
}

/* ============================
   MOBİL
   ============================ */
@media (max-width: 768px) {
    .af-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .af-update-badge {
        font-size: 11px;
    }
    .af-table th {
        font-size: 12px;
        padding: 10px;
    }
    .af-table td {
        font-size: 14px;
        padding: 10px;
    }
    .af-price {
        font-size: 15px;
    }
    .af-calc-row {
        flex-direction: column;
        gap: 10px;
    }
    .af-calc-row input,
    .af-calc-row select {
        width: 100%;
    }
}
