/* Namaz vakti ve piyasalar sayfalari (inc/seobaz-namaz-sayfalari.php, inc/seobaz-piyasalar.php).
   Yalniz bu sayfalarda yuklenir. Vurgu rengi temanin --color1 degiskeninden gelir. */

.seobaz-nv .nv-ust,
.seobaz-pi .nv-ust {
    margin-bottom: 20px;
}

.nv-baslik {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 800;
    color: rgb(var(--title-color, 38 38 38));
}

.nv-alt {
    margin-top: 6px;
    font-size: .95rem;
    color: rgb(var(--title-color, 38 38 38) / .7);
}

.nv-bolum,
.seobaz-nv .widget-title.nv-bolum,
.seobaz-pi .widget-title.nv-bolum {
    margin: 36px 0 18px;
}

/* Temanin bolum basligi sabit yukseklikte; mobilde iki satira kirilan baslik alttaki icerige tasmasin. */
.widget-title.nv-bolum {
    height: auto;
    min-height: 1.75rem;
}

/* Bugunun vakit karti */
.nv-kart {
    padding: 22px 28px 24px;
    background: #fff;
    border-radius: var(--sb-r, 6px);
    box-shadow: var(--sb-shadow, 0 1px 3px rgba(20, 22, 28, .06));
}

.nv-kart.nv-bos {
    color: rgb(var(--title-color, 38 38 38) / .7);
}

.nv-kart-ust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 16px;
}

.nv-kart-baslik {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--sb-ink, rgb(var(--title-color, 38 38 38)));
}

.nv-kart-baslik a {
    color: inherit;
    text-decoration: none;
}

.nv-kart-baslik a:hover {
    color: rgb(var(--color1));
}

.nv-kart-tarih {
    margin-top: 2px;
    font-size: 14px;
    color: var(--sb-mute, #6b7280);
}

.nv-kart-tarih span {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgb(var(--color1) / .08);
    color: rgb(var(--color1));
    font-size: 12px;
    font-weight: 700;
}

.nv-sayac {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nv-sayac-etiket {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--sb-mute, #6b7280);
}

.nv-sayac-deger {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: rgb(var(--color1));
}

.nv-vakitler {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-vakitler li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 8px;
    text-align: center;
    background: #f7f8fa;
    border: 1px solid var(--sb-line-2, #e6e8ec);
    border-radius: var(--sb-r, 6px);
    transition: background-color .2s, opacity .2s;
}

.nv-vakitler li span {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-mute-2, #5b616d);
}

.nv-vakitler li em {
    font-style: normal;
    font-size: .7rem;
    font-weight: 700;
    color: rgb(var(--color1));
}

.nv-vakitler li b {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--sb-ink, rgb(var(--title-color, 38 38 38)));
}

.nv-vakitler li.gecti {
    opacity: .55;
}

.nv-vakitler li.simdi {
    background: rgb(var(--color1) / .08);
    border-color: rgb(var(--color1) / .35);
}

.nv-vakitler li.sonraki {
    background: rgb(var(--color1));
    border-color: rgb(var(--color1));
}

.nv-vakitler li.sonraki span,
.nv-vakitler li.sonraki em,
.nv-vakitler li.sonraki b {
    color: #fff;
}

/* Gun tablolari (mobilde kendi icinde kayar, sayfa tasmaz) */
.nv-tablo-kap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: var(--sb-r, 6px);
    box-shadow: var(--sb-shadow, 0 1px 3px rgba(20, 22, 28, .06));
}

.nv-tablo {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.nv-tablo th,
.nv-tablo td {
    padding: 11px 14px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--sb-line, #eef0f3);
}

.nv-tablo thead th {
    background: #f7f8fa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--sb-mute, #6b7280);
    border-bottom-color: var(--sb-line-2, #e6e8ec);
}

.nv-tablo th.nv-tarih,
.nv-tablo thead th:first-child {
    text-align: left;
}

.nv-tablo tbody tr:last-child td {
    border-bottom: 0;
}

.nv-tablo td.nv-tarih {
    text-align: left;
    font-weight: 600;
}

.nv-tablo td.nv-hicri {
    font-size: 13px;
    color: var(--sb-mute, #6b7280);
}

.nv-tablo tr.nv-cuma td {
    background: rgb(0 0 0 / .02);
}

.nv-tablo tr.nv-bugun td {
    background: rgb(var(--color1) / .08);
    font-weight: 700;
}

.nv-tablo tr.nv-bugun td:first-child {
    box-shadow: inset 3px 0 0 rgb(var(--color1));
}

.nv-tablo td.nv-vurgu {
    font-weight: 700;
    color: rgb(var(--color1));
}

.nv-tablo sup,
.nv-not sup {
    font-weight: 700;
    color: rgb(var(--color1));
}

.nv-not {
    margin-top: 14px;
    font-size: .85rem;
    line-height: 1.6;
    color: rgb(var(--title-color, 38 38 38) / .65);
}

/* Il listesi ve arama */
.nv-ara {
    width: 100%;
    max-width: 420px;
    height: 44px;
    margin-bottom: 16px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
    border: 1px solid var(--sb-border, #dfe2e7);
    border-radius: var(--sb-r, 6px);
    box-shadow: var(--sb-shadow, 0 1px 3px rgba(20, 22, 28, .06));
}

.nv-ara:focus {
    outline: none;
    border-color: rgb(var(--color1));
    box-shadow: 0 0 0 3px rgb(var(--color1) / .15);
}

.nv-iller {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-il {
    display: flex;
}

.nv-il a {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    color: var(--sb-ink, rgb(var(--title-color, 38 38 38)));
    text-decoration: none;
    background: #fff;
    border-radius: var(--sb-r, 6px);
    box-shadow: var(--sb-shadow, 0 1px 3px rgba(20, 22, 28, .06));
    transition: box-shadow .2s, color .15s;
}

.nv-il a:hover {
    box-shadow: 0 8px 24px rgba(20, 22, 28, .1);
}

.nv-il a:hover .nv-il-ad {
    color: rgb(var(--color1));
}

.nv-il-aktif a {
    background: rgb(var(--color1) / .06);
    box-shadow: inset 0 0 0 1px rgb(var(--color1));
}

.nv-il-ad {
    font-size: 15px;
    font-weight: 700;
    transition: color .15s;
}

.nv-il-vakit {
    white-space: nowrap;
    font-size: 12.5px;
    color: var(--sb-mute, #6b7280);
}

.nv-il-vakit b {
    font-weight: 700;
    color: rgb(var(--title-color, 38 38 38) / .9);
}

.nv-icerik {
    margin-top: 24px;
}

/* Piyasalar */
.pi-kartlar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.pi-kart {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 18px 18px 14px;
    background: #fff;
    border-radius: var(--sb-r, 6px);
    box-shadow: var(--sb-shadow, 0 1px 3px rgba(20, 22, 28, .06));
}

.pi-kart-ust {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pi-kod {
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    color: rgb(var(--color1));
    background: rgb(var(--color1) / .1);
    border-radius: 4px;
}

.pi-ad {
    font-weight: 700;
}

.pi-deger {
    font-size: 1.7rem;
    line-height: 1.15;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pi-deger small {
    font-size: 1rem;
    font-weight: 700;
    color: rgb(var(--title-color, 38 38 38) / .6);
}

.pi-degisim {
    font-size: .85rem;
    font-weight: 700;
}

.pi-degisim span {
    font-weight: 500;
    color: rgb(var(--title-color, 38 38 38) / .55);
}

.pi-yukari {
    color: #16a34a;
}

.pi-asagi {
    color: #dc2626;
}

.pi-sabit {
    color: rgb(var(--title-color, 38 38 38) / .6);
}

.pi-sekme {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.pi-sekme button {
    padding: 3px 10px;
    font-size: .78rem;
    font-weight: 600;
    color: rgb(var(--title-color, 38 38 38) / .8);
    background: #fff;
    border: 1px solid rgb(0 0 0 / .12);
    border-radius: 999px;
    cursor: pointer;
}

.pi-sekme button.secili {
    color: #fff;
    background: rgb(var(--color1));
    border-color: rgb(var(--color1));
}

.pi-kart .pi-grafik {
    display: none;
}

.pi-kart[data-aralik="7"] .pi-g7,
.pi-kart[data-aralik="30"] .pi-g30 {
    display: block;
}

.pi-grafik-cizim {
    position: relative;
}

.pi-grafik-cizim svg {
    display: block;
    width: 100%;
    height: 110px;
    overflow: visible;
}

.pi-ipucu {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    padding: 3px 8px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    background: rgb(var(--title-color, 38 38 38));
    border-radius: 6px;
    pointer-events: none;
}

.pi-minmax,
.pi-grafik-bos {
    margin-top: 4px;
    font-size: .78rem;
    color: rgb(var(--title-color, 38 38 38) / .6);
}

.pi-grafik-bos {
    padding: 30px 0;
    text-align: center;
}

.pi-cevirici {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 22px 28px 24px;
    background: #fff;
    border-radius: var(--sb-r, 6px);
    box-shadow: var(--sb-shadow, 0 1px 3px rgba(20, 22, 28, .06));
}

.pi-alan {
    display: flex;
    flex: 1 1 150px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: .8rem;
    font-weight: 600;
    color: rgb(var(--title-color, 38 38 38) / .7);
}

.pi-alan input,
.pi-alan select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 1rem;
    color: rgb(var(--title-color, 38 38 38));
    background: #fff;
    border: 1px solid var(--sb-border, #dfe2e7);
    border-radius: var(--sb-r, 6px);
}

.pi-alan input:focus,
.pi-alan select:focus {
    outline: none;
    border-color: rgb(var(--color1));
    box-shadow: 0 0 0 3px rgb(var(--color1) / .15);
}

.pi-degistir {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    background: #fff;
    border: 1px solid rgb(0 0 0 / .12);
    border-radius: 50%;
    cursor: pointer;
}

.pi-degistir:hover {
    color: rgb(var(--color1));
    border-color: rgb(var(--color1));
}

.pi-sonuc {
    flex: 1 1 100%;
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: rgb(var(--color1));
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .nv-baslik {
        font-size: 1.4rem;
    }

    .nv-kart,
    .pi-cevirici {
        padding: 18px 16px 18px;
    }

    .nv-vakitler li b {
        font-size: 19px;
    }

    .nv-vakitler {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nv-sayac {
        align-items: flex-start;
    }

    .nv-sayac-deger {
        font-size: 1.6rem;
    }
}
