/* =====================================================
   Fındık Fiyat Bülteni - Frontend Stilleri
   Yazar: ESBİ BİLİŞİM
   ===================================================== */

/* ---------- Fiyat Tablosu Widget ---------- */
.ffb-fiyat-tablo-widget {
    font-family: inherit;
    box-sizing: border-box;
}

.ffb-tablo-baslik {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ffb-fiyat-listesi {
    display: flex;
    flex-direction: column;
}

.ffb-fiyat-satir {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
    flex-wrap: wrap;
}

.ffb-fiyat-satir:last-child {
    border-bottom: none;
}

/* (ffb-kategori-ad tanımı yukarıya taşındı) */

.ffb-fiyat-sag {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ffb-fiyat-deger {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c7a2c;
}

.ffb-fiyat-birim {
    font-size: 0.8em;
    color: #777;
}

.ffb-fiyat-tarih {
    font-size: 0.75em;
    color: #aaa;
    margin-left: 6px;
}

.ffb-fiyat-bos {
    font-style: italic;
    color: #999;
}

/* ---------- Tekil Fiyat Widget ---------- */
.ffb-tek-widget {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

/* Kart Stili */
.ffb-tek-stil-kart {
    background: #f8f8f8;
    padding: 20px 24px;
    border-radius: 8px;
    text-align: center;
}

/* Rozet Stili */
.ffb-tek-stil-rozet {
    background: #2c7a2c;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    display: inline-block;
    width: auto;
}

.ffb-tek-stil-rozet .ffb-tek-etiket {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85em;
    margin-bottom: 4px;
}

.ffb-tek-stil-rozet .ffb-tek-fiyat-deger {
    color: #fff;
}

.ffb-tek-stil-rozet .ffb-tek-fiyat-birim {
    color: rgba(255, 255, 255, 0.75);
}

/* Metin Stili */
.ffb-tek-stil-metin {
    background: none;
    padding: 0;
    border: none;
}

.ffb-tek-etiket {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.ffb-tek-fiyat-wrap {
    display: flex;
    align-items: baseline;
    justify-content: inherit;
    gap: 6px;
    flex-wrap: wrap;
}

.ffb-tek-widget.ffb-tek-stil-kart .ffb-tek-fiyat-wrap,
.ffb-tek-widget.ffb-tek-stil-rozet .ffb-tek-fiyat-wrap {
    justify-content: center;
}

.ffb-tek-fiyat-deger {
    font-size: 2em;
    font-weight: 700;
    color: #2c7a2c;
    line-height: 1.1;
}

.ffb-tek-fiyat-birim {
    font-size: 0.9em;
    color: #777;
    align-self: flex-end;
    margin-bottom: 4px;
}

.ffb-tek-tarih {
    font-size: 0.75em;
    color: #aaa;
    display: block;
    width: 100%;
    margin-top: 4px;
}

.ffb-tek-fiyat-bos {
    font-style: italic;
    color: #999;
    font-size: 1.1em;
}

/* ---------- Brüt / Net Fiyat Çifti (Tablo Widget) ---------- */
.ffb-kategori-sol {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
}

.ffb-kategori-ad {
    font-weight: 600;
}

.ffb-brut-grup,
.ffb-net-grup {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.ffb-fiyat-etiket {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    opacity: 0.9;
}

.ffb-brut-deger {
    font-weight: 700;
    font-size: 1.05em;
    color: #2c7a2c;
}

.ffb-net-deger {
    font-weight: 700;
    font-size: 1.05em;
    color: #1a5276;
}

/* ---------- Tekil Widget Brüt/Net ---------- */
.ffb-tek-randiman {
    font-size: 0.75em;
    font-weight: 600;
    color: #2c7a2c;
    background: #e8f4ea;
    border: 1px solid #b8ddb8;
    border-radius: 20px;
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: 8px;
}

.ffb-tek-fiyat-grup {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ffb-tek-brut-deger {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c7a2c;
    line-height: 1.1;
}

.ffb-tek-net-deger {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a5276;
    line-height: 1.1;
}

/* Topbar net fiyatı */
.ffb-topbar-net {
    font-weight: 700;
    color: inherit;
    opacity: 0.85;
}

/* Randıman badge (frontend) */
.ffb-randiman-badge {
    display: inline-block;
    background: rgba(44,122,44,0.12);
    color: #2c7a2c;
    border-radius: 10px;
    font-size: 0.72em;
    font-weight: 700;
    padding: 1px 6px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ---------- Topbar / Header Kompakt Stil ---------- */

/* Tüm fiyatları tek satırda gösteren bar (shortcode çoklu kategori için) */
.ffb-topbar-bar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    vertical-align: middle;
}

/* Shortcode çoklu öğeler arası dikey ayraç */
.ffb-topbar-bar .ffb-topbar-item + .ffb-topbar-item::before {
    content: '|';
    margin: 0 10px;
    opacity: 0.4;
}

/* Tek bir topbar widget öğesi */
.ffb-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
    flex-wrap: wrap;
    vertical-align: middle;
}

/* "DD.MM.YYYY SAAT: HH:MM Tarihli %X Randıman Kategori Fiyatı" metin bloğu */
.ffb-topbar-baslik-metin {
    font-size: 0.85em;
    font-weight: 500;
}

/* › ayracı */
.ffb-topbar-sep {
    font-size: 1em;
    font-weight: 700;
    margin: 0 2px;
}

/* Brüt / Net fiyat bloğu */
.ffb-topbar-fiyat-blok {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* "Brüt:" / "Net:" inline etiket */
.ffb-topbar-etiket-inline {
    font-size: 0.8em;
    font-weight: 600;
}

/* Fiyat değeri */
.ffb-topbar-fiyat {
    font-size: 0.9em;
    font-weight: 700;
}

/* Net fiyat */
.ffb-topbar-net {
    font-weight: 700;
}

/* TL/KG birim metni */
.ffb-topbar-birim {
    font-size: 0.8em;
}

/* BLO teması topbar renk uyumu (beyaz metin üzerine) */
.topbar .ffb-topbar-item,
.topbar .ffb-topbar-bar {
    color: inherit;
}

/* ---------- Shortcode Genel Stiller ---------- */

.ffb-shortcode-tek,
.ffb-sc-satir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ffb-shortcode-tablo {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.ffb-sc-etiket {
    font-weight: 600;
}

.ffb-sc-fiyat {
    color: #2c7a2c;
    font-weight: 700;
}

/* ---------- Editor Bildirimi ---------- */
.ffb-editor-notice {
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .ffb-fiyat-satir {
        flex-direction: column;
        align-items: flex-start;
    }

    .ffb-fiyat-sag {
        justify-content: flex-start;
    }

    .ffb-tek-fiyat-deger {
        font-size: 1.6em;
    }
}
