﻿:root {
    --green: #009245;
    --green2: #007a3a;
    --bg: #f4fff8;
    --bg2: #e8fff1;
    --card: #ffffff;
    --stroke: rgba(0,146,69,.16);
    --text: #0b2b16;
    --muted: rgba(11, 43, 22, .68);
    --muted2: rgba(11, 43, 22, .52);
    --shadow: 0 10px 30px rgba(0, 60, 28, .10);
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(900px 500px at 10% 0%, rgba(0,146,69,.18), transparent 55%), radial-gradient(900px 500px at 90% 20%, rgba(0,146,69,.12), transparent 55%), linear-gradient(180deg, var(--bg), var(--bg2));
}

.hero-card {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(6px);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .hero-card {
        padding: 18px;
    }
}

/* --- LOGO BAR --- */
.logo-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo-feyz {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.logo-sutiz {
    height: 82px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 420px) {
    .logo-feyz {
        height: 48px;
    }

    .logo-sutiz {
        height: 72px;
    }
}

/* Center badge */
.qr-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0,146,69,.10);
    border: 1px solid rgba(0,146,69,.22);
    font-weight: 900;
    color: rgba(11,43,22,.92);
    white-space: nowrap;
}

.qr-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(0,146,69,.14);
}

/* --- TITLE --- */
.hero-title {
    margin-bottom: 12px;
}

.product-title {
    margin: 4px 0 10px 0;
    font-weight: 950;
    font-size: 1.6rem;
    line-height: 1.12;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2.1rem;
    }
}

/* FULL WIDTH TRUST */
.trust-pill {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0,146,69,.10);
    border: 1px solid rgba(0,146,69,.22);
    font-weight: 900;
    color: rgba(11,43,22,.92);
}

/* ✅ trust pill full satır */
.trust-pill-full {
    width: 100%;
    text-align: center;
}

/* --- Cards --- */
.card-soft {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,60,28,.08);
}

.card-soft-header {
    padding: 14px 14px 10px 14px;
    border-bottom: 1px solid var(--stroke);
    background: rgba(0,146,69,.06);
}

.card-soft-title {
    font-weight: 950;
    font-size: 1.05rem;
}

.card-soft-sub {
    margin-top: 4px;
    font-size: .85rem;
    color: var(--muted2);
}

/* Video */
.video-shell {
    padding: 12px;
}

.video-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: rgba(0,0,0,.06);
}

.video-stack {
    position: relative;
}

.btn-sound {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(0,146,69,.35);
    background: rgba(255,255,255,.92);
    color: var(--green2);
    font-weight: 950;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,60,28,.12);
}

    .btn-sound.done {
        background: rgba(0,146,69,.14) !important;
        border-color: rgba(0,146,69,.35) !important;
    }

/* Info strip */
.info-strip {
    display: flex;
    gap: 10px;
    padding: 0 12px 12px 12px;
    flex-wrap: wrap;
}

.info-item {
    flex: 1 1 120px;
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0,146,69,.06);
    border: 1px solid rgba(0,146,69,.14);
}

.info-label {
    font-size: .78rem;
    color: var(--muted2);
}

.info-value {
    font-weight: 950;
    margin-top: 2px;
}

    .info-value.ok {
        color: var(--green2);
    }

/* Animals */
.animal-toggle {
    padding: 0 12px 10px 12px;
}

.form-switch .form-check-input {
    width: 3.2em;
    height: 1.6em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--green);
    border-color: var(--green);
}

.form-check-label {
    font-weight: 950;
    cursor: pointer;
}

.animals-panel {
    margin: 0 12px 12px 12px;
    border-radius: 16px;
    background: rgba(0,146,69,.05);
    border: 1px solid rgba(0,146,69,.16);
    overflow: hidden;
}

.animals-head {
    padding: 12px;
    border-bottom: 1px solid rgba(0,146,69,.14);
    background: rgba(0,146,69,.06);
}

.animals-title {
    font-weight: 950;
}

.animals-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: .92rem;
}

/* ✅ MOBİL FIX: default 1 sütun + kademeli artış */
.animals-grid {
    display: grid;
    grid-template-columns: 1fr; /* ✅ mobil tek sütun */
    gap: 10px;
    padding: 12px;
    max-height: 360px;
    overflow: auto;
}

/* ekran biraz genişleyince 2 sütun */
@media (min-width: 420px) {
    .animals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* daha geniş ekranlarda 3 sütun */
@media (min-width: 576px) {
    .animals-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* desktop düzenin için */
@media (min-width: 992px) {
    .animals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 520px;
    }
}

/* ✅ MOBİL FIX: numara taşmasın, kırpılmasın */
.animal-chip {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,146,69,.18);
    background: rgba(255,255,255,.92);
    color: rgba(11,43,22,.95);
    font-weight: 900;
    letter-spacing: .25px;
    white-space: normal; /* ✅ tek satıra zorlama yok */
    overflow-wrap: anywhere; /* ✅ sığmazsa kır */
    word-break: break-word;
    line-height: 1.1;
    font-size: 0.98rem;
}

    .animal-chip:hover {
        background: rgba(0,146,69,.08);
    }

/* çok dar ekranlarda biraz daha küçült */
@media (max-width: 380px) {
    .animal-chip {
        font-size: 0.92rem;
        padding: 9px 10px;
    }
}

.animal-detail {
    margin: 0 12px 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(0,146,69,.22);
    background: rgba(255,255,255,.92);
    overflow: hidden;
}

.detail-header {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(0,146,69,.16);
}

.detail-kicker {
    font-size: .78rem;
    color: var(--muted2);
}

.detail-title {
    font-size: 1.05rem;
    font-weight: 950;
}

.detail-body {
    padding: 12px;
}

.acc-soft {
    border: 1px solid rgba(0,146,69,.16) !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.accordion-button {
    background: rgba(0,146,69,.06) !important;
    color: var(--text) !important;
    font-weight: 950;
    gap: 10px;
}

    .accordion-button:focus {
        box-shadow: none !important;
    }

.acc-title {
    flex: 1;
}

.acc-date {
    color: var(--muted);
    font-weight: 900;
    font-size: .85rem;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .acc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.acc-kv {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,146,69,.14);
    background: rgba(0,146,69,.04);
}

    .acc-kv span {
        display: block;
        color: var(--muted2);
        font-size: .8rem;
    }

    .acc-kv b {
        display: block;
        margin-top: 2px;
    }

/* Certificates grid */
.cert-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.cert-tile {
    border: 1px solid rgba(0,146,69,.18);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    padding: 0;
    box-shadow: 0 10px 20px rgba(0,60,28,.08);
}

.thumb-wrap {
    position: relative;
    width: 100%;
}

.thumb-canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* fallback always visible until pdf render succeeds */
.thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(0,146,69,.05), rgba(0,0,0,.20));
    color: #fff;
}

.pdf-badge {
    align-self: flex-start;
    background: rgba(0,146,69,.92);
    color: #fff;
    font-weight: 950;
    padding: 4px 10px;
    border-radius: 999px;
}

.pdf-name {
    font-weight: 950;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-open {
    font-weight: 900;
    font-size: .78rem;
    opacity: .95;
}

/* label on real thumb */
.thumb-label {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: #fff;
    text-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.thumb-name {
    font-weight: 950;
    font-size: .86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumb-open {
    margin-top: 2px;
    font-weight: 950;
    font-size: .78rem;
    opacity: .92;
}

.placeholder-tile {
    height: 200px;
    border-radius: 16px;
    background: rgba(0,146,69,.06);
    border: 1px solid rgba(0,146,69,.14);
    position: relative;
    overflow: hidden;
}

    .placeholder-tile::after {
        content: "";
        position: absolute;
        top: 0;
        left: -40%;
        width: 40%;
        height: 100%;
        background: rgba(0,146,69,.12);
        animation: shimmer 1.2s infinite;
    }

@keyframes shimmer {
    0% {
        left: -40%;
    }

    100% {
        left: 110%;
    }
}

.sound-modal {
    border: 1px solid rgba(0,146,69,.22);
    border-radius: 16px;
}

.cert-modal {
    background: #ffffff;
    border: 1px solid rgba(0,146,69,.22);
    color: var(--text);
}

.cert-frame {
    width: 100%;
    height: 75vh;
    border: 1px solid rgba(0,146,69,.16);
    border-radius: 14px;
    background: #fff;
}

.small-muted {
    color: var(--muted2);
    font-size: .85rem;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(0,146,69,.22);
    background: rgba(0,146,69,.04);
}

.empty-title {
    font-weight: 950;
}

.empty-sub {
    margin-top: 6px;
    color: var(--muted2);
}

/* ✅ ÜST HEADER GÖRSELİ */
.top-banner {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,146,69,.16);
    background: #fff;
    margin-bottom: 12px;
}

.top-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ✅ Trust dot geri geldi */
.trust-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .trust-pill .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: #009245;
        box-shadow: 0 0 0 6px rgba(0,146,69,.14);
    }

/* ✅ Sertifikalar: resimli tile */
.cert-tile-img {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cert-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,146,69,.18);
    background: rgba(0,146,69,.06);
}

.cert-img {
    width: 100%;
    height: auto;
    display: block;
}

/* fallback */
.cert-img-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(0,146,69,.08), rgba(0,0,0,.20));
    color: #fff;
}

.cert-caption {
    font-weight: 900;
    font-size: .86rem;
    color: rgba(11,43,22,.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ✅ Durum kırmızı */
.info-value.bad {
    color: #b00020;
}

/* ✅ Trust pill kırmızı/yeşil */
.trust-ok {
    background: rgba(0,146,69,.10);
    border-color: rgba(0,146,69,.22);
}

    .trust-ok .dot {
        background: #009245;
        box-shadow: 0 0 0 6px rgba(0,146,69,.14);
    }

.trust-bad {
    background: rgba(176,0,32,.10);
    border-color: rgba(176,0,32,.25);
    color: rgba(80,0,12,.92);
}

    .trust-bad .dot {
        background: #b00020;
        box-shadow: 0 0 0 6px rgba(176,0,32,.16);
    }
.animal-chip.risk {
    border-color: rgba(220, 53, 69, .65) !important;
    background: rgba(220, 53, 69, .08) !important;
    color: #b02a37 !important;
}

    .animal-chip.risk:hover {
        background: rgba(220, 53, 69, .14) !important;
    }
