/* Plus Jakarta Sans artık index.html <head> içinde yükleniyor (render-blocking @import kaldırıldı) */

:root {
    --tg-main-color: #37E3EB;
    --tg-main-color-hover: #6ff8ff;
    --tg-color1: #37E3EB;
    --tg-color1-hover: #68f7ff;
    --tg-color2: #FF4CAB;
    --tg-color2-hover: #ff5cb3;
    --tg-background-light: #FAFAFA;
}
.center-screen {
    display: flex!important;
    justify-content: center!important;
    align-items: center!important;
    min-height: 100vh!important;
}
.center-horizontal-mobile { }
.tg-bg-light{ background-color: var(--tg-background-light)!important; }
.tg-img-button{
   cursor: pointer;
}
.tg-button:hover{ background: var(--tg-main-color-hover); }
.tg-button.play-now{
    color: #FFF!important;
    font-family: "Plus Jakarta Sans"!important;
    font-size: 15px!important;
    font-style: normal!important;
    font-weight: 400!important;
    line-height: normal!important;
    border-radius: 50px!important;
    height: 40px;
}

.play-now-button-color1{ background: var(--tg-color1)!important; }
.play-now-button-color1:hover{ background: var(--tg-color1-hover)!important; }
.play-now-button-color2{ background: var(--tg-color2)!important; }
.play-now-button-color2:hover{ background: var(--tg-color2-hover)!important; }

.tg-button.start-now{
    width: 408px;
    height: 60px;
    color: #FFF!important;
    font-family: "Plus Jakarta Sans"!important;
    font-size: 26px!important;
    font-style: normal!important;
    font-weight: 400!important;
    line-height: normal!important;
}
.game-card{
    border: 1px solid #E3E3E3;
    min-height: 180px;
    border-radius: 8px;
    background: #FFF;
    padding: 1rem;
}

/* Header banner: mobilde tam genişlik (mevcut görünüm) */
#tg-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Büyük ekranlarda tam genişlik + cover: yükseklik sabit, görsel alanı kaplar */
@media (min-width: 769px) {
    #tg-banner img {
        width: 100%;
        height: 440px;
        object-fit: cover;
        object-position: center;
    }
}

 /* the slides */
.slick-slide {
    margin: 0 27px;
}
/* the parent */
.slick-list {
    margin: 0 -27px;
}
.vertical-line {
    width: 1px;
    align-self: stretch;
    background: radial-gradient(50% 50% at 50% 50%, #E3E3E3 0%, #FFF 100%);
    margin: 0px 10px;
}


@media only screen and (max-width: 768px) {
    .center-horizontal-mobile{
        margin: 0 auto!important;
    }
}
@media (min-width: 1024px) {
    .game-logo-part img {
        width: 50%;
        height: auto;
    }
}

/* ===== index.html inline <style>'dan taşındı (görsel yolları ../images/ olarak güncellendi) ===== */

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--tg-background-light) !important;
}

.all-games-div .page-title {

    color: #333 !important;
    font-family: "Plus Jakarta Sans" !important;
    font-size: 36px !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: normal !important;
}

.all-games-div .game-title {
    color: #0C0B37 !important;
    text-edge: cap;
    font-family: "Plus Jakarta Sans" !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
}

.all-games-div .game-desc {
    color: #0C0B37 !important;
    font-family: "Plus Jakarta Sans" !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
}


.mail-link {
    color: #333 !important;
    font-family: "Plus Jakarta Sans" !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 300 !important;
    line-height: normal !important;
    bottom: 0 !important;
}

.modal-body #modalGameWinCondition figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;

}


.modal-header {
    height: 36px;
    border-bottom: unset !important;
}

#leader-modal .modal-header {
    width: 97%;
    display: flex;

    position: absolute;
    height: 39px !important;
    border-bottom: unset !important;
    padding: unset !important;
}

#leader-modal, #rewardModal {

    --bs-modal-margin: 0 !important;
    min-height: 80vh !important;
}

#leaderboard-iframe {
    min-height: 100vh;
    min-width: 100%;
}

#leaderboard-modal-body {
    background-color: #00a8e8 !important;
    padding: 0 !important;
    margin: 0 !important;
}


.modal-dialog-scrollable {
    max-height: 80vh;
}

.modal-body {
    padding: 1rem;
}

.card {
    border-radius: 5px;
    margin: 20px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-header {
    font-size: 1.2em;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.card-body {
    padding-top: 10px;
}

.card-success {
    border: 2px solid #28a745;
    background-color: #e9f5ee;
}

.card-danger {
    border: 2px solid #dc3545;
    background-color: #f8d7da;
}

.card-warning {
    border: 2px solid #ffc107;
    background-color: #fff3cd;
}

.badge-success {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.badge-warning {
    background-color: #ffc107;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}


#noRewardMessage {
    color: #0C0B37;
    leading-trim: both;
    text-edge: cap;
    font-size: 16px;
}

#rewardModal .modal-dialog-scrollable .modal-body {
    font-size: 12px;

}

#gameDetailModal .reward-tag {
    color: #FFD700;
    font-weight: bold;
    font-size: 18px;
}


#rewardModal .modal-custom-bg, #gameDetailModal .modal-custom-bg {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    background: #FFF;
}

#gameDetailModal .modal-body {
    color: #0C0B37;

}

#rewardModal .modal-title, #gameDetailModal .modal-title {
    text-align: center;
    width: 100%;
    color: #000000;
    font-size: 18px;
    padding-top: 20px;

}

#rewardModal .modal-header .btn-close, #gameDetailModal .modal-header .btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
}

#gameDetailModal .modal-logo, #rewardModal .modal-logo {
    display: block;
    margin: 0 auto;
    width: 100px;
    height: auto;
    align-self: center;
}

#gameDetailModal .modal-footer, #rewardModal .modal-footer {
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    position: relative;
    bottom: 20px;
}

#gameDetailModalContent .desc-label {
    color: #0C0B37;
    leading-trim: both;
    text-edge: cap;
    font-size: 12px;
    font-style: normal;
    line-height: normal;
}

#gameDetailModalContent .desc-label-win-condition {
    color: #FF4CAB;
    leading-trim: both;
    text-edge: cap;
    font-size: 16px;
    font-style: normal;
    line-height: normal;
}

#gameDetailModalContent .desc-win-condition {
    color: #0C0B37;
    leading-trim: both;
    text-edge: cap;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.modal-body {
    position: relative;
    z-index: 1050;
}

@media (max-width: 768px) {
    .modal-dialog {
        width: 100%;
        margin: 0;
        min-height: 100vh !important;
        max-width: 100%;
    }

    .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    #gameDetailModal .modal-body {
        padding: 1rem;
        height: calc(100vh - 7rem);
        overflow-y: auto;
    }

    /* rewardModal: mobilde tam ekran (altta boşluk kalmasın) */
    #rewardModal .modal-dialog {
        margin: 0 !important;
        width: 100vw;
        max-width: none;
        height: 100% !important;
        min-height: 100% !important;
        transform: none !important;
        transition: none !important;
    }

    #rewardModal .modal-content {
        height: 100% !important;
        min-height: 100%;
        border-radius: 0;
    }

    #rewardModal .modal-body {
        padding: 1rem;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    #rewardModal .modal-footer {
        bottom: 0;
    }

    #leader-modal .modal-body {
        padding: 1rem;
        height: 85vh !important;
        overflow-y: auto;
    }

    .modal-header, .modal-footer {
        padding: 1rem;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.btn-action {
    width: 100%;
    height: 35px;
    display: inline-flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #FFF;
    border-radius: 6px;
    border: 1px solid #FFF;
    background: #ECECEC;
    box-shadow: 0px -2px 4px 0px rgba(255, 255, 255, 0.80), 0px 2px 4px 0px rgba(0, 0, 0, 0.10);
}

.btn-text {
    text-wrap: none;
    color: #0C0B37 !important;
    leading-trim: both;
    text-edge: cap;
    font-family: "Plus Jakarta Sans";
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.oyna-btn {
    width: 100%;
    height: 35px;
    display: inline-flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    border-radius: 6px;
    border: 1px solid #FFF;
    background: #E91D34;
    box-shadow: 0 -2px 4px 0 rgba(255, 255, 255, 0.80), 0 2px 4px 0 rgba(0, 0, 0, 0.10);
}

.oyna-btn:disabled {
    background-color: #ECECEC !important;
    color: #BCBCBC !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.hemen-oyna-text {
    color: #FFF;
    leading-trim: both;
    text-edge: cap;
    font-family: "Plus Jakarta Sans";
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.reward-card {
    padding: 0.5rem 1rem;
    background-color: transparent;
    position: relative;
    bottom: 5px;
}

.reward-vertical-line {
    width: 1px;
    background-image: url("../images/odul-vertical-line.svg");
    margin: -14px 10px;
}

.coupon-info-part {
    display: flex;
    flex: 3;
    flex-direction: column;
}

.reward-card-company-title {
    color: #000;
    leading-trim: both;
    text-edge: cap;
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.reward-card-company-info {
    color: #555;
    leading-trim: both;
    text-edge: cap;
    font-family: "Plus Jakarta Sans";
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    overflow-y: auto;
    max-height: 30px;
}

.reward-card-company-date {
    color: #878787;
    leading-trim: both;
    text-edge: cap;
    font-family: "Plus Jakarta Sans";
    font-size: 8px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.reward-coupon {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;
    width: 100%;
    height: 32px;
    flex-shrink: 0;
    border-radius: 7.304px;
    border: 1.043px solid rgba(255, 255, 255, 0.00);
    background: #ECECEC;
    box-shadow: -1.739px -1.739px 1.739px 0px rgba(255, 255, 255, 0.50), 1.739px 1.739px 4.174px 0px rgba(0, 0, 0, 0.15);
}

.reward-coupon-text {
    text-align: center;
    position: relative;
    width: 95%;
    color: #0C0B37;
    font-family: "Plus Jakarta Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 1px;
}

.reward-coupon-text-disable {
    color: #E1E1E1 !important;
}


.coupon-status-text {
    color: #878787;
    text-align: right;
    leading-trim: both;
    text-edge: cap;
    font-family: "Plus Jakarta Sans";
    font-size: 8px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.status-circle {
    width: 6px;
    height: 6px;
    background-color: transparent;
}

/* SVG kullanarak */
.status-circle::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #FFD600;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" viewBox="0 0 6 6" fill="none"><circle cx="3" cy="3" r="3" fill="white"/></svg>') no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" viewBox="0 0 6 6" fill="none"><circle cx="3" cy="3" r="3" fill="white"/></svg>') no-repeat;
}

/* Farklı statü durumlarına göre renk değiştirme */
.status-circle.active::before {
    background-color: #00F28C;
}

.status-circle.inactive::before {
    background-color: #FF005C;
}

.background-image-div {
    height: max-content;
    background-image: url('../images/reward-coupon-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    fill: #FFF;
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.15));
}


@media only screen and (min-width: 769px) {
    .reward-card {
        padding: 3rem 2rem;
    }
}

@media only screen and (max-width: 768px) {
    .reward-card {
        padding: 6rem 3rem;
    }
}


@media only screen and (max-width: 576px) {
    .reward-card {
        padding: 2rem;
    }
}

@media only screen and (max-width: 425px) {
    .reward-coupon-text {

        font-size: 18px;

    }
}

@media only screen and (max-width: 320px) {
    .reward-coupon-text {
        font-size: 14px;
    }

    .reward-card {
        padding: 1rem;
    }
}

.game-info-part {
    position: relative;
}

.timer-wrapper {
    width: 120px;
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 10;
    background: transparent;
    padding: 8px 3px 8px 3px;
    border-radius: 5px;
    font-size: 12px;
    color: #E91D34;
    font-weight: bold;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.timer-text {
    color: #E91D34;
    text-align: center;
    font-family: "Plus Jakarta Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.disabled {
    color: #BCBCBC !important;
    pointer-events: none !important;
    opacity: 0.3;
}

.close-icon {
    cursor: pointer;
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-left: auto;
}


/* ===== Skeleton yükleme animasyonu (oyun listesi) ===== */
.skeleton-card {
    border: 1px solid #E3E3E3;
    min-height: 180px;
    border-radius: 8px;
    background: #FFF;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.skeleton-logo {
    flex: 1;
    height: 96px;
    border-radius: 8px;
    margin-right: 3px;
}

.skeleton-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 10px;
}

.skeleton-line {
    border-radius: 4px;
}

.skeleton-buttons {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.skeleton-btn {
    flex: 1;
    height: 35px;
    border-radius: 6px;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #ECECEC 25%, #F5F5F5 37%, #ECECEC 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer { animation: none; }
}
