/* Altın Fiyatları Sayfası */

.altin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.altin-page h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.altin-page .page-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Altın Fiyat Tablosu */
.altin-table-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 40px;
}

.altin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.altin-table-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.altin-table-header .badge {
    background: linear-gradient(135deg, #c9a227, #e6c04a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.altin-table {
    width: 100%;
    border-collapse: collapse;
}

.altin-table thead th {
    background: #f8fafc;
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.altin-table thead th:nth-child(3),
.altin-table thead th:nth-child(4),
.altin-table thead th:nth-child(5) {
    text-align: right;
}

.altin-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.altin-table tbody tr:last-child {
    border-bottom: none;
}

.altin-table tbody tr:hover {
    background: #fffbeb;
}

.altin-table tbody td {
    padding: 16px 24px;
    font-size: 0.9rem;
    color: #334155;
    vertical-align: middle;
}

.altin-table tbody td:nth-child(3),
.altin-table tbody td:nth-child(4),
.altin-table tbody td:nth-child(5) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Altın isim hücresi */
.altin-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.altin-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.altin-name-text {
    display: flex;
    flex-direction: column;
}

.altin-name-text .name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.altin-name-text .meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Ağırlık ve ayar */
.altin-weight {
    font-weight: 500;
    color: #475569;
}

.altin-karat {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

/* Fiyat hücreleri */
.price-buy {
    font-weight: 700;
    color: #16a34a;
    font-size: 0.95rem;
}

.price-sell {
    font-weight: 700;
    color: #dc2626;
    font-size: 0.95rem;
}

.price-change-cell {
    font-weight: 600;
    font-size: 0.85rem;
}

.price-change-cell.positive {
    color: #16a34a;
}

.price-change-cell.negative {
    color: #dc2626;
}

/* Ayar Fiyatları Bölümü */
.ayar-section {
    margin-bottom: 40px;
}

.ayar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ayar-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ayar-card:hover {
    border-color: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.15);
}

.ayar-card .ayar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ayar-card .ayar-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.ayar-card .ayar-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #c9a227;
    margin-bottom: 4px;
}

.ayar-card .ayar-desc {
    font-size: 0.78rem;
    color: #94a3b8;
}

.ayar-card .ayar-purity {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92700c;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Hesaplayıcı */
.altin-calculator {
    margin-bottom: 40px;
}

.calc-body {
    padding: 24px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 20px;
    align-items: end;
}

.calc-input-group label,
.calc-result-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: #c9a227;
    background: #fff;
}

.calc-result {
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #92700c;
    text-align: center;
}

/* Karşılaştırma Tag'leri */
.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.tag-green {
    background: #dcfce7;
    color: #166534;
}

.tag-blue {
    background: #dbeafe;
    color: #1e40af;
}

.tag-purple {
    background: #f3e8ff;
    color: #6b21a8;
}

.tag-gold {
    background: #fef3c7;
    color: #92700c;
}

/* Yatırım İpuçları */
.tips-section {
    margin-bottom: 40px;
}

.tips-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tip-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #c9a227, #e6c04a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.tip-content strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.tip-content p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 20px;
    line-height: 1.5;
}

/* Bilgi Kartları */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.info-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .ayar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .altin-page h1 {
        font-size: 1.5rem;
    }

    .altin-table-wrapper {
        border-radius: 12px;
    }

    .altin-table thead {
        display: none;
    }

    .altin-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 8px;
        align-items: center;
    }

    .altin-table tbody td {
        padding: 0;
        border: none;
    }

    .altin-table tbody td:nth-child(1) {
        width: 100%;
        margin-bottom: 4px;
    }

    .altin-table tbody td:nth-child(2) {
        display: none;
    }

    .altin-table tbody td:nth-child(3),
    .altin-table tbody td:nth-child(4) {
        text-align: left;
        flex: 1;
    }

    .altin-table tbody td:nth-child(3)::before {
        content: 'Alış: ';
        font-size: 0.72rem;
        color: #94a3b8;
        font-weight: 500;
        display: block;
        margin-bottom: 2px;
    }

    .altin-table tbody td:nth-child(4)::before {
        content: 'Satış: ';
        font-size: 0.72rem;
        color: #94a3b8;
        font-weight: 500;
        display: block;
        margin-bottom: 2px;
    }

    .altin-table tbody td:nth-child(5) {
        text-align: left;
    }

    .altin-table tbody td:nth-child(5)::before {
        content: 'Değişim: ';
        font-size: 0.72rem;
        color: #94a3b8;
        font-weight: 500;
        display: block;
        margin-bottom: 2px;
    }

    .ayar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ayar-card {
        padding: 18px;
    }

    .ayar-card .ayar-price {
        font-size: 1.2rem;
    }

    .calc-row {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .altin-page {
        padding: 15px;
    }

    .ayar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ayar-card .ayar-title {
        font-size: 1.1rem;
    }

    .ayar-card .ayar-price {
        font-size: 1rem;
    }
}
