/* ============================================================
   site-custom.css  — mirror sonrasi UI duzeltmeleri (tum sayfalar)
   Buraya eklenenler pagespeed birlesik CSS'ini override eder.
   ============================================================ */

/* --- Dil secici bayraklari: mirror'da bozuk gelen yollari duzeltir --- */
div#language-EN, div.language-EN {
    background: url(../images/menuflag_EN.png) no-repeat scroll 0 0 #1b1b1b !important;
}
div#language-TR, div.language-TR {
    background: url(../images/menuflag_TR.png) no-repeat scroll 0 0 #1b1b1b !important;
}

/* --- Dil secici dropdown: bozuk arka plan gorseli yerine duz beyaz --- */
ul.flag-list {
    background: #fff !important;
    border: 1px solid #ccc;
    height: auto !important;
    padding-bottom: 6px !important;
}

/* --- Dil secici kirmizi asagi ok (bozuk ok gorseli yerine CSS ucgen) --- */
a.lang-arrow {
    background-image: none !important;
    position: relative;
}
a.lang-arrow::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #e4002b;   /* kirmizi */
    pointer-events: none;
}

/* --- Kirmizi/sari seritler: initialize edilmemis jQuery UI dialog kutulari ---
   #modalError (.ui-state-error = kirmizi) ve #modalInfo (.ui-state-highlight = sari)
   dialog'a cevrilmedikleri icin sayfada gorunuyorlardi. Varsayilan gizli olmalilar;
   JS bir hata/bilgi gostermek isterse dialog acildiginda kendi stilini uygular. */
#modalError,
#modalInfo {
    display: none;
}

/* ============================================================
   Cerez Yonetim Paneli (kalici consent - OneTrust yerine)
   ============================================================ */
.cc-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: grayscale(0.7) brightness(0.55);
    backdrop-filter: grayscale(0.7) brightness(0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}
.cc-panel {
    background: #fff;
    max-width: 640px;
    width: 100%;
    border: 1px solid #cacaca;
    border-radius: 3px;
    padding: 24px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #2b2b2b;
    line-height: 1.6;
    box-sizing: border-box;
}
.cc-panel h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #1a1a1a; }
.cc-panel p { margin: 0 0 18px; }
.cc-panel a { color: #a3121b; font-weight: 700; text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cc-btn {
    padding: 10px 18px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    border: 2px solid #831017;
    line-height: 1;
}
.cc-btn-red { background: #831017; color: #fff; }
.cc-btn-red:hover { background: #6d0d13; }
.cc-btn-accept { background: #831017; color: #fff; border-color: #831017; }
.cc-btn-accept:hover { background: #6d0d13; }
.cc-btn-outline { background: #fff; color: #831017; }
.cc-btn-outline:hover { background: #f5e9ea; }
@media (max-width: 480px) {
    .cc-actions { justify-content: stretch; }
    .cc-actions .cc-btn { flex: 1; }
}

/* --- Sol alt kalici cerez ayarlari butonu --- */
.cc-float {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99999;
    width: 56px;
    height: 63px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4));
    transition: transform .15s ease;
}
.cc-float:hover { transform: scale(1.08); }
.cc-float img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* ============================================================
   Cerez Tercihleri - sol sidebar (Onay Tercihlerini Yonet)
   ============================================================ */
#cookiePrefSidebar.cc-overlay {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
}
.cc-sidebar {
    position: relative;
    width: 480px;
    max-width: 92vw;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 30px rgba(0, 0, 0, .4);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 34px 36px 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #2b2b2b;
    line-height: 1.6;
}
.cc-sidebar-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px;
}
.cc-sidebar-close:hover { color: #333; }
.cc-sidebar-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cc-sidebar-logo img { width: 32px; height: 36px; object-fit: contain; }
.cc-sidebar-logo span { font-weight: 800; font-size: 16px; color: #1b1b1b; letter-spacing: .5px; }
.cc-sidebar h3 { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: #1a1a1a; padding-right: 24px; }
.cc-sidebar p { margin: 0 0 14px; }
.cc-sidebar-links { margin-bottom: 20px !important; }
.cc-sidebar-links a { color: #a3121b; font-weight: 700; text-decoration: underline; display: block; }
.cc-sidebar h4 { margin: 22px 0 14px; font-size: 20px; font-weight: 700; color: #1a1a1a; border-top: 1px solid #e5e5e5; padding-top: 18px; }
.cc-sidebar-poweredby {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    font-size: 15px;
    font-weight: 700;
    color: #000;
}
.cc-ot-icon { display: inline-flex; align-items: center; gap: 2px; line-height: 1; }
.cc-ot-paren { font-size: 20px; font-weight: 900; color: #000; }
.cc-ot-bar { width: 3px; height: 13px; background: #000; border-radius: 1px; }
.cc-ot-name { font-weight: 800; }

.cc-cat { border-top: 1px solid #eee; padding: 13px 0; }
.cc-cat-head { display: flex; align-items: center; gap: 10px; }
.cc-cat-toggle { cursor: pointer; user-select: none; }
.cc-cat-body { display: none; padding: 10px 0 2px 28px; font-size: 13px; color: #444; line-height: 1.6; }
.cc-cat.cc-cat-open .cc-cat-body { display: block; }
.cc-cat-body p { margin: 0 0 8px; }
.cc-cat-details-link { color: #a3121b; font-weight: 700; text-decoration: underline; font-size: 13px; }
.cc-cat-plus {
    flex: 0 0 auto;
    width: 18px; height: 18px;
    border: 1px solid #999;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
}
.cc-cat-name { flex: 1; font-weight: 700; font-size: 14px; color: #1a1a1a; }
.cc-cat-state.cc-cat-always { color: #2577c2; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* iOS tarzi toggle switch */
.cc-switch { position: relative; display: inline-block; width: 38px; height: 20px; flex: 0 0 auto; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
    position: absolute; inset: 0;
    background: #ccc;
    transition: .2s;
    border-radius: 20px;
    cursor: pointer;
}
.cc-slider::before {
    content: "";
    position: absolute;
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background: #fff;
    transition: .2s;
    border-radius: 50%;
}
.cc-switch input:checked + .cc-slider { background: #a3121b; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }

.cc-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 16px;
}
.cc-btn-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 13px 18px;
    font-size: 14px;
    margin-bottom: 0;
}

/* ============================================================
   Eksik mirror gorselleri: bu 5 dosya (xbg_header, xmark, bullet1,
   xbullet2, xredBig) projede hic yok (mirror sirasinda indirilmemis).
   Duz renk fallback'i korunup gorsel referansi kaldirilir -> 404 gitmez.
   ============================================================ */
#table1 th {
    background: #cae8ea !important;
}
#table1 td.mark {
    background: #fff !important;
}
#table1 td.mark::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 16px;
    background: url(../images/xmark.webp) no-repeat center / contain;
    margin-right: 7px;
    vertical-align: middle;
}
#table1 th.spec {
    background: #fff !important;
    position: relative;
}
#table1 th.specalt {
    background: #f5fafa !important;
    position: relative;
}
/* bullet1.gif / xbullet2.gif eksikti: ayni koseyi CSS ucgeniyle yeniden ciziyoruz */
#table1 th.spec::before,
#table1 th.specalt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-style: solid;
    border-width: 9px 9px 0 0;
    border-color: #9fc6cf transparent transparent transparent;
}

/* xredBig.png eksikti: "FREE REGISTER" butonunu CSS ile yeniden cizdik */
.redbig {
    display: block;
    width: 200px !important;
    height: 36px !important;
    background: url(../images/red_button.webp) no-repeat 0 0 !important;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.redbig p {
    padding: 10px !important;
    margin: 0;
}
.redbig:hover {
    background-position: 0 -36px !important;
}

/* ============================================================
   html5lightbox video popup: eski plugin kutuyu position:absolute +
   scrollTop() hesabiyla ortalamaya calisiyor, bu hesap videonun
   gercek boyutu gec belli oldugu icin yanlis cikip alta kayiyordu.
   Kutuyu gercek ekran merkezine (viewport'a gore) sabitliyoruz.
   ============================================================ */
#html5-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
#html5-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
#html5-lightbox-box {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

/* ============================================================
   #footer, #container disinda (kapandiktan sonra) acildigi icin
   tam genislik (body genisligi) aliyordu. Ustteki beyaz icerik
   kutusuyla (#container, 860px) ayni genislige getiriyoruz.
   ============================================================ */
#footer {
    width: 802px;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* ============================================================
   My ICS Sign In - sadece gorsel, calismayan onizleme sayfasi
   (form elemani yok, inputlar disabled -> hicbir veri gonderilemez)
   ============================================================ */
.myics-login-card {
    max-width: 420px;
    margin: 30px auto 60px;
    border: 1px solid #999;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, .3);
    overflow: hidden;
}
.myics-login-head {
    background: linear-gradient(#3a3a3a, #000);
    color: #fff;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px 0;
}
.myics-login-body {
    background: #fff;
    padding: 24px 30px 30px;
}
.myics-login-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin: 0 0 20px;
    text-align: center;
}
.myics-login-body label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #4f6b72;
    margin: 0 0 6px;
}
.myics-login-body input.input200 {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}
.myics-login-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background: #ccc;
    color: #777;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: not-allowed;
}

/* Support (FAQ) category tiles - local images */
span.download, span.download:hover { background: url(../images/EN/downloadandinstall.webp) no-repeat 0 0 / 100% 100%; }
span.anyotp, span.anyotp:hover { background: url(../images/EN/usingics.webp) no-repeat 0 0 / 100% 100%; }
span.payment, span.payment:hover { background: url(../images/EN/paymentquestions.webp) no-repeat 0 0 / 100% 100%; }
span.community, span.community:hover { background: url(../images/EN/askthecommunity.webp) no-repeat 0 0 / 100% 100%; }
