/* ============================================================================
   CANLI FİYATLAR — premium görünüm
   ============================================================================ */

/* Hero */
.lp-hero {
    background: linear-gradient(135deg, #101418 0%, #1d232b 55%, #2a2417 100%);
    padding: 44px 0 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lp-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%);
    pointer-events: none;
}

.lp-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.lp-hero__title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 6px;
}

.lp-hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: var(--fw-display);
    color: #fff;
    margin: 0;
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-display);
}

.lp-hero__desc {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: var(--fs-body);
}

.lp-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 16px;
    backdrop-filter: blur(4px);
}

.lp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-label);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-caps);
    color: #6ee7a0;
    background: rgba(25, 135, 84, 0.16);
    border: 1px solid rgba(25, 135, 84, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    text-transform: uppercase;
}

.lp-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    animation: lp-pulse 1.5s infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.45); }
    50% { opacity: 0.4; box-shadow: 0 0 0 5px rgba(46, 204, 113, 0); }
}

/* İçerik */
.lp-page {
    min-height: 50vh;
    padding: 44px 0 90px;
    background: #f6f5f1;
}

#lp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
}

@media (max-width: 991.98px) {
    #lp-content {
        grid-template-columns: 1fr;
    }
}

.lp-group-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 34px rgba(16, 20, 24, 0.07);
}

.lp-group-header {
    font-size: var(--fs-label);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    padding: 14px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #8c6e30, #b59a57, #d1b77a);
}

.lp-group-header.doviz {
    background: linear-gradient(90deg, #14324f, #1565c0, #42a5f5);
}

.lp-group-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.lp-table {
    margin: 0;
}

.lp-table th {
    font-size: var(--fs-label);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: #8a8f98;
    background: #fbfaf7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 20px;
}

.lp-table td {
    font-size: var(--fs-sm);
    vertical-align: middle;
    padding: 13px 20px;
    border-color: rgba(0, 0, 0, 0.045);
}

.lp-table tbody tr {
    transition: background 0.18s ease;
}

.lp-table tbody tr:hover td {
    background: rgba(212, 175, 55, 0.055);
}

.lp-table tbody tr.lp-wholesale-legend:hover td {
    background: #fdf9e9;
}

.lp-table tr:last-child td {
    border-bottom: none;
}

.lp-buy,
.lp-sell {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lp-buy { color: #157347; font-weight: var(--fw-bold); }
.lp-sell { color: #c8323f; font-weight: var(--fw-bold); }

.lp-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-flag {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e6e2d8;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lp-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Komisyonsuz (toptancı) fiyat — ana fiyatın yanında tek satırda */
.lp-wholesale {
    font-size: var(--fs-label);
    color: #a3862a;
    font-weight: var(--fw-semibold);
    opacity: 0.9;
    margin-left: 8px;
}

.lp-wholesale:not(:empty)::before {
    content: '·';
    margin-right: 8px;
    color: rgba(0, 0, 0, 0.25);
}

.lp-wholesale-legend td {
    font-size: var(--fs-label);
    color: #a3862a;
    background: #fdf9e9;
    border-top: 1px solid #f0e2ae !important;
    padding: 8px 20px !important;
}

.lp-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    color: var(--text-body);
    background: #fff;
    border-radius: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

/* Fiyat değişim animasyonları */
.price-flash-up   { animation: lp-flash-green 1s ease-out forwards; }
.price-flash-down { animation: lp-flash-red   1s ease-out forwards; }

@keyframes lp-flash-green {
    0%   { color: #157347 !important; background-color: rgba(25, 135, 84, 0.14); border-radius: 4px; }
    100% { color: inherit; background-color: transparent; }
}

@keyframes lp-flash-red {
    0%   { color: #c8323f !important; background-color: rgba(220, 53, 69, 0.14); border-radius: 4px; }
    100% { color: inherit; background-color: transparent; }
}

/* Grup başlığı artık <h2> (semantik): tarayıcı/bootstrap başlık boşluğu sıfırlanır */
.lp-group-header {
    margin: 0;
    line-height: 1.3;
}

.lp-hero__title-row + .lp-hero__desc {
    margin-top: 2px;
}

/* Bilgilendirme notu */
.lp-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 22px 0 0;
    font-size: var(--fs-xs);
    color: var(--text-body);
}

.lp-disclaimer i {
    color: var(--color-gold-dark);
    margin-top: 2px;
}

/* Bilgi kartları */
.lp-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.lp-info__card {
    display: block;
    padding: 24px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 22px rgba(16, 20, 24, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.lp-info__card--link:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 14px 34px rgba(16, 20, 24, 0.1);
    color: inherit;
}

.lp-info__icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--color-gold-dark);
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.lp-info__card h2 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--color-dark);
    margin: 0 0 6px;
    line-height: var(--lh-snug);
}

.lp-info__card p {
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
    color: var(--text-body);
    margin: 0;
}

.lp-info__card strong {
    color: var(--color-gold-dark);
}

@media (max-width: 767.98px) {
    .lp-info {
        grid-template-columns: 1fr;
    }

    .lp-hero__inner {
        align-items: flex-start;
    }
}

/* Mobil: tablo kartın içine sığsın (Satış sütunu kesilmesin) */
@media (max-width: 575.98px) {
    .lp-table th:first-child {
        width: auto !important;
    }

    .lp-table th,
    .lp-table td {
        padding: 10px 10px;
    }

    .lp-table th:first-child,
    .lp-table td:first-child {
        padding-left: 14px;
    }

    .lp-table th:last-child,
    .lp-table td:last-child {
        padding-right: 14px;
    }

    .lp-table td {
        font-size: var(--fs-xs);
    }

    .lp-name-cell {
        gap: 8px;
        line-height: 1.3;
    }

    .lp-icon {
        width: 20px;
        height: 20px;
    }

    .lp-flag {
        width: 28px;
        height: 19px;
    }

    /* Toptancı fiyatı ana fiyatın altına iner */
    .lp-wholesale {
        display: block;
        margin-left: 0;
    }

    .lp-wholesale:not(:empty)::before {
        content: none;
    }
}
