﻿@font-face {
    font-family: 'BetConstruct-Icons';
    src: url('fonts/BetConstruct-Icons.Chsy15pm.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

[class^=bc-i-], [class*=" bc-i-"] {
    font-family: 'BetConstruct-Icons' !important;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: none !important;
}

[class^=bc-i-]:before, [class*=" bc-i-"]:before {
    transition: none !important;
}

.bc-i-filter-outline:before {
content: ""
}

.bc-i-search:before {
content: ""
}

.bc-i-close-remove:before {
content: ""
}

.bc-i-clear:before {
content: ""
}


/* GENEL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    color: #ccc;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none; /* Tarayıcı kaydırma çubuğunu gizler */
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    /*background: linear-gradient(135deg, #3a3a3a, #1e1e1e);*/
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    padding: 15px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}
.sidebar h2 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.provider-search {
    position: relative;
    margin-bottom: 10px;
}
.provider-search input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border-radius: 6px;
    border: none;
    outline: none;
    background: rgb(25 24 29 / 90%)!important;
    color: #ccc;
    font-size: 14px;
}
.provider-search input::placeholder {
    color: #888;
}
.provider-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.provider-list {
    margin-top: 10px;
}
.provider-item {
    background: rgba(255,255,255,0.1) !important;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #ccc;
    transition: background 0.3s, transform 0.3s;
}
.provider-item:hover {
    background-color: #555;
    transform: translateX(3px);
}
.provider-item.active {
    background-color: rgba(255,255,255,0.5) !important;
}
.provider-item span {
    margin-left: auto;
    font-size: 12px;
    color: #aaa;
}

/* ÜST BAR */
.topbar {
    margin-left: 260px;
    /*background-color: #2b2b2b;*/
    padding: 15px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #333;
}
.topbar .topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


/* OYUNLAR KAPSAYICI */
.games-container {
    margin-left: 260px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.game-card {
    width: 200px;
    margin: 10px;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.game-card a {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0; /* Alt boşluğu kaldır */
}
.game-card img {
    width: 100%;
    height: auto; /* Görselin kendi oranını kullan */
    display: block;
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
}
.game-card img[src=""],
.game-card img:not([src]),
.game-card img[src*="default"] {
    background: linear-gradient(135deg, #2b2b2b 0%, #3a3a3a 100%);
}
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #f90;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
}
.badge.hot {
    background-color: #e74c3c;
}
.badge.new {
    background-color: #27ae60;
}

/* MOBİL FİLTRE VE ARAMA */
.mobile-filter-search {
    display: none;
    padding: 10px;  /* 20px → 10px (oyun kartlarıyla aynı hiza) */
    gap: 10px;
    flex-wrap: nowrap;  /* wrap → nowrap (bozukluk önlenir) */
    justify-content: flex-start;
    align-items: center;
    position: relative;  /* Absolute positioning için */
    height: 48px;       /* Sabit yükseklik expanded durumda */
}


.mobile-filter-btn {
display: flex;
align-items: center;
background: rgba(150, 150, 150, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: #fff;
padding: 12px;
height: 40px;
border-radius: 8px;
cursor: pointer;
transition: none;
font-size: 14px;
font-weight: 600;
width: fit-content;
margin-right: 5px;
border: 1px solid rgba(255, 255, 255, 0.15);
box-sizing: border-box;
}

.mobile-filter-btn i {
margin-right: 8px;
font-size: 16px;
color: #fff;
}

/* Hover */
.mobile-filter-btn:hover {
background: rgba(60, 60, 60, 0.08);
}

.mobile-filter-btn span{
opacity: .8;
font-weight: 500;
}


/* SEARCH BOX */
.mobile-search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* SEARCH İCON - TAMAMEN SABİT */
.mobile-search-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px;
    color: #fff !important;
    opacity: 0.9 !important;
    cursor: pointer;
    z-index: 3;
    transition: none !important;
}


/* ARAMA İNPUT'U - SOLA DAYALI */
.mobile-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    width: calc(100% - 50px); /* Sağ icon için yer */
    height: 100%;
    padding: 12px;
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.mobile-search-box.expanded .mobile-search-input {
    opacity: 1;
    pointer-events: auto;
    padding: 12px 50px 12px 12px !important; /* Sağ icon için yer */
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}


/* Hover */
.mobile-search-box:not(.expanded):hover {
    background: rgba(60, 60, 60, 0.08);
}

/* Loading spinner */
#loading {
    text-align: center;
    margin: 20px;
    display: none;
}
#loading:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .topbar {
        margin-left: 0;
        display: none; /* Masaüstü topbar'ı gizle */
    }
    .mobile-filter-search {
        display: flex; /* Mobil filtreleri göster */
    }
    .games-container {
        margin-left: 0;
        padding-top: 0; /* Üst boşluk azalt */
        padding: 0 5px; /* Yanlarda küçük boşluk */
    }
    /* Mobil cihazlarda oyun kartlarını responsive yap */
    .game-card {
        width: calc(50% - 10px); /* İki sütun, aralarında boşluk */
        margin: 5px;
        min-width: 0; /* Flex overflow'u önle */
    }
}
@media (max-width: 480px) {
    .game-card {
        width: calc(50% - 8px); /* Küçük ekranlarda ince ayar */
        margin: 4px;
    }
    .mobile-filter-search {
        padding: 2%;
        gap: 5px;
        flex-wrap: nowrap;
        height: 40px;
    }
    
    .mobile-filter-btn {
        height: 40px;
    }
    
    #mobile-search-box{ 
        width: 40px;
        height: 40px;
    }
    
    .mobile-filter-clear {
        width: 40px;
        height: 40px;
    }
    .mobile-filter-btn i {
        font-size: 16px;
    }
}




#mobile-filter-btn{ 
flex:0 0 auto;
}

#mobile-search-box{
margin-left:auto;
box-sizing:border-box; 
transition:none;
position:relative;
overflow:hidden;
background: rgba(150, 150, 150, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
width: 40px;
height: 40px;
}

/* Expanded: satırın geri kalanını kapla → sağ sabit kalır, SOLA doğru açılır */
#mobile-search-box.expanded{ flex:1 1 auto; }

/* Input görünürlük animasyonu */
#mobile-search-box .mobile-search-input{
width:100%; height:100%;
padding:12px 48px 12px 12px;  /* sağdaki ikon için boşluk */
background:transparent; border:0; outline:0; color:#fff;
opacity:0; pointer-events:none; transition:none;
}
#mobile-search-box.expanded .mobile-search-input{
opacity:1; pointer-events:auto;
}

/* 480px altında küçük simge boyutuna uyum (isteğe bağlı) */


/* Satır: flex düzen */
.mobile-filter-search{
display:flex;
align-items:center;
gap:0.1px;
margin: 6px 0;
}

/* Sağlayıcı butonu: genişleme yok */
#mobile-filter-btn{ flex:0 0 auto; }

/* Filtre aktifken renk değişimi */
#mobile-filter-btn.filtered {
background: rgba(255, 255, 255, 0.1) !important;
border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Clear/Temizle butonu */
.mobile-filter-clear {
display: none;
flex: 0 0 auto;
width: 40px;
height: 40px;
background: rgba(150, 150, 150, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
color: #fff;
cursor: pointer;
align-items: center;
justify-content: center;
margin: 0;
transition: none;
}

.mobile-filter-clear.active {
display: flex;
}

.mobile-filter-clear i {
font-size: 16px;
color: #fff;
}

.mobile-filter-clear:hover {
background: rgba(60, 60, 60, 0.08);
}

@media (max-width: 480px) {
#mobile-search-box {
width: 40px;
height: 40px;
}
}

/* Arama kutusu: SAĞA yapışık, küçükken 48px; büyürken SOLA doğru uzar */

/* Tıklanabilir buton: 40x40px */
.mobile-search-toggle{
position:absolute;
margin-left: auto;
right: -2px;
top: 0;
width: 40px;
height: 40px;
border: none;
background: transparent;
cursor: pointer;
border-radius: 8px;
z-index: 5;
display:flex;
align-items:center;
justify-content:center;
-webkit-tap-highlight-color: transparent;
transition: none !important;
}

.mobile-search-toggle:focus{ outline: none; }

/* İçindeki ikon */
.mobile-search-toggle #search-icon{
font-size: 16px;
line-height: 1;
color: #fff;
transition: none !important;
}

.mobile-search-toggle #search-icon:before{
transition: none !important;
}

/* Input'u butonun ALTINA al ve sağ padding aç */
.mobile-search-input{
position: relative;         /* z-index çalışsın */
z-index: 1;                 /* butondan düşük */
padding-right: 56px !important; /* butona yer bırak */
}

/* Expanded durumunda da padding koru */
#mobile-search-box.expanded .mobile-search-input{
padding-right: 56px !important;
}

/* (İstersen) Eski .mobile-search-icon kuralını KALDIR ya da etkisiz bırak */
.mobile-search-icon{ display:none !important; }

@media (max-width:480px){
.mobile-search-toggle{ 
width: 40px; 
height: 40px;
}
.mobile-search-toggle #search-icon{ 
font-size: 16px; 
}
}

/* Body scroll'u kilitlemek için */
html.scroll-lock, body.scroll-lock{ overflow:hidden !important; height:100% !important; }

/* Arka plan – tüm ekran */
.pm-backdrop{
position:fixed; inset:0; background:rgba(0,0,0,0);
display:none; z-index:2147483000;
visibility: hidden;
opacity: 0;
transition: opacity 0.3s ease, background 0.3s ease, visibility 0s 0.3s;
}
.pm-backdrop.open{ 
display:block; 
visibility: visible;
opacity: 1;
background:rgba(0,0,0,.72);
transition: opacity 0.3s ease, background 0.3s ease, visibility 0s;
}

/* Panel – tüm ekran */
.pm-panel{
position:absolute; inset:0; width:100%; height:100%;
background:#0e0e0f; color:#fff; display:flex; flex-direction:column;
}

/* Üst bar */
.pm-header{
position:sticky; top:0; display:flex; align-items:center; justify-content:space-between;
padding: calc(env(safe-area-inset-top,0px) + 12px) 16px 12px;
background:#111214; border-bottom:1px solid #24262b; z-index:2;
}
.pm-close{ width:40px; height:40px; border:0; background:transparent; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; }

/* İçerik */
.pm-body{ flex:1 1 auto; overflow:auto; padding:12px 12px 84px; }
.pm-list{ display:flex; flex-direction:column; gap:10px; }
.pm-item{
width:100%; text-align:left; background:#17181b; color:#eaeaea;
border:1px solid #262930; border-radius:8px; padding:12px 14px;
font-weight:700; letter-spacing:.3px; cursor:pointer;
}
.pm-item:hover{ background:#1c1e22; }
.pm-item.active{ border-color:#3f8fb7; box-shadow:inset 0 0 0 2px rgba(63,143,183,.35); }

/* Alt bar */
.pm-footer{
position:sticky; bottom:0;
padding:10px 12px calc(env(safe-area-inset-bottom,0px) + 10px);
background:linear-gradient(180deg, rgba(14,14,15,0) 0%, #0e0e0f 40%);
border-top:1px solid #24262b;
}
.pm-apply{
width:100%; height:48px; border:0; border-radius:10px;
background:linear-gradient(135deg,#0C9BC5 0%, #1AD0C9 100%);
color:#061219; font-weight:900; letter-spacing:.4px; cursor:pointer;
}

/* Icon fontlarda istenmeyen animasyonları kapat */
[class^=bc-i-], [class*=" bc-i-"]{ transition:none !important; }
[class^=bc-i-]:before, [class*=" bc-i-"]:before{ transition:none !important; }

