/* =========================================================
   JollyGame portal nav — bSilkroad / Archive referans dili
   (kod/görsel kopyası yok; yerleşim + renk dili)
   ========================================================= */

#main #head_topbar {
    display: none !important;
}

#main #head_topmenu_cover {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto !important;
    min-height: 0;
    z-index: 10000 !important;
    transition: none;
    background: transparent;
}

#main #head_topmenu_cover #head_topmenu {
    width: 100%;
    height: 41px !important;
    background: #202020 !important;
    border-top: 3px solid #E91919;
    border-bottom: 1px solid #303030;
    box-shadow: none !important;
    border-radius: 0;
}

#main #head_topmenu_cover #head_topmenu #head_topmenu_container,
#main #head_topmenu_cover #head_topmenu .jg-nav__inner {
    width: 100% !important;
    max-width: none;
    height: 41px;
    margin: 0;
    padding: 0 18px 0 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    position: relative;
}

#main #head_topmenu_cover #head_topmenu #head_topmenu_homebutton,
#main #head_topmenu_cover #head_topmenu #head_topmenu_left,
#main #head_topmenu_cover #head_topmenu #head_topmenu_right,
#main #head_topmenu_cover #head_topmenu #head_topmenu_logos_div {
    display: none !important;
}

.jg-brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    height: 41px;
    padding: 0;
    margin: 0 20px 0 0;
    box-sizing: border-box;
    background: transparent;
    text-decoration: none !important;
    flex-shrink: 0;
    gap: 0;
}

.jg-brand__mark {
    width: auto;
    height: 32px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    overflow: visible;
    flex-shrink: 0;
}

.jg-brand__mark img {
    width: auto;
    height: 32px;
    max-height: 32px;
    max-width: 168px;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.jg-brand__text {
    display: none;
}

.jg-brand__text-light,
.jg-brand__text-accent {
    display: none;
}

.jg-menu {
    display: flex;
    align-items: stretch;
    height: 41px;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
    flex: 0 0 auto;
}

.jg-menu__item {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    position: relative;
}

.jg-menu__link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 41px !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none !important;
    text-transform: uppercase;
    font-family: Arial, Helvetica, Roboto, sans-serif;
    letter-spacing: 0.2px;
    box-sizing: border-box;
    width: auto !important;
    background: #202020 !important;
    color: #EAEAEA !important;
}

.jg-menu__link::after {
    display: none !important;
}

.jg-menu__item--dropdown > .jg-menu__link {
    width: 115px !important;
    font-size: 12px;
    font-weight: 600;
    color: #E8E8E8 !important;
    gap: 9px;
}

.jg-menu__item--dropdown:not(.is-open) > .jg-menu__link:hover {
    background: #292929 !important;
    color: #FF3434 !important;
}

.jg-menu__item--dropdown.is-open > .jg-menu__link {
    background: #F2F2F2 !important;
    color: #FF1F1F !important;
    z-index: 2;
}

.jg-menu__item:not(.jg-menu__item--dropdown) > .jg-menu__link {
    width: 95px !important;
    font-size: 12px;
    font-weight: 500;
    color: #EAEAEA !important;
}

.jg-menu__item:not(.jg-menu__item--dropdown) > .jg-menu__link:hover {
    background: #292929 !important;
    color: #FFFFFF !important;
}

.jg-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #E8E8E8;
    border-bottom: 0;
    margin: 0;
}

.jg-menu__item--dropdown:not(.is-open) > .jg-menu__link:hover .jg-chevron {
    border-top-color: #FF3434;
}

.jg-menu__item--dropdown.is-open > .jg-menu__link .jg-chevron {
    border-top: 0;
    border-bottom: 5px solid #FF1F1F;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

/* ---------- Premium dark fantasy info bar (date / clock / lang) ---------- */
.jg-premium-infobar {
    --jg-infobar-gold: #C9A45C;
    --jg-infobar-gold-soft: rgba(201, 164, 92, 0.55);
    --jg-infobar-gold-glow: rgba(201, 164, 92, 0.28);
    --jg-infobar-red: #8B1E1E;
    --jg-infobar-red-glow: rgba(160, 40, 36, 0.55);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: 30px;
    padding: 0 8px 0 6px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(135deg, rgba(28, 28, 30, 0.92) 0%, rgba(12, 12, 14, 0.96) 50%, rgba(18, 18, 20, 0.94) 100%);
    border: 1px solid var(--jg-infobar-gold);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 6px 18px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 0 12px var(--jg-infobar-gold-glow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
}

.jg-premium-infobar::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 230, 180, 0.75), transparent);
    pointer-events: none;
    opacity: 0.85;
}

.jg-premium-infobar::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.45), transparent);
    pointer-events: none;
}

.jg-premium-infobar__date,
.jg-premium-infobar__time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.jg-premium-infobar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--jg-infobar-gold);
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px var(--jg-infobar-gold-glow));
}

.jg-premium-infobar__icon--cal {
    width: 22px;
    height: 22px;
    border: 1px solid var(--jg-infobar-gold-soft);
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(201, 164, 92, 0.12) 0%, rgba(0, 0, 0, 0.35) 100%),
        #0a0a0c;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 8px rgba(201, 164, 92, 0.15);
}

.jg-premium-infobar__icon--cal svg {
    width: 12px;
    height: 12px;
}

.jg-premium-infobar__icon--clock svg {
    width: 14px;
    height: 14px;
}

.jg-premium-infobar__date-text,
.jg-premium-infobar__time-text,
#jg-nav-date,
#jg-nav-clock {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    height: auto;
    display: inline;
    color: #F2F2F2;
    font-family: "Cinzel", "Times New Roman", Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.jg-premium-infobar__date-text,
#jg-nav-date {
    font-size: 11px;
    color: #E8E6E1;
    letter-spacing: 0.14em;
}

.jg-premium-infobar__time-text,
#jg-nav-clock {
    font-size: 13px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.jg-premium-infobar__sep {
    width: 1px;
    height: 16px;
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent, rgba(201, 164, 92, 0.55), transparent);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.jg-lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.jg-lang-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    height: 22px;
    padding: 0 7px;
    color: #A8A29A;
    font-family: "Cinzel", "Times New Roman", Georgia, serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid rgba(201, 164, 92, 0.45);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        #0a0a0c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.jg-lang-switch__flag {
    display: block;
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
    flex-shrink: 0;
    filter: grayscale(0.15) brightness(0.92);
}

.jg-lang-switch__code {
    line-height: 1;
}

.jg-lang-switch__link:hover {
    color: #F5E6C8;
    border-color: var(--jg-infobar-gold);
    background:
        linear-gradient(180deg, rgba(201, 164, 92, 0.18) 0%, rgba(20, 16, 10, 0.9) 100%),
        #12100c;
    box-shadow:
        0 0 10px rgba(201, 164, 92, 0.28),
        inset 0 1px 0 rgba(255, 230, 180, 0.12);
}

.jg-lang-switch__link:hover .jg-lang-switch__flag {
    filter: none;
}

.jg-lang-switch__link.is-active {
    color: #F8E7C0;
    border-color: #D4B46A;
    background:
        linear-gradient(180deg, rgba(90, 22, 20, 0.35) 0%, rgba(120, 28, 26, 0.72) 55%, rgba(70, 14, 14, 0.95) 100%),
        #1a0a0a;
    box-shadow:
        0 0 14px var(--jg-infobar-red-glow),
        0 0 8px rgba(201, 164, 92, 0.35),
        inset 0 1px 0 rgba(255, 200, 160, 0.15),
        inset 0 -8px 14px rgba(140, 24, 22, 0.45);
}

.jg-lang-switch__link.is-active .jg-lang-switch__flag {
    filter: none;
}

html[dir="rtl"] .jg-premium-infobar {
    margin-left: 0;
    margin-right: auto;
    padding: 0 6px 0 8px;
}

html[dir="rtl"] .jg-lang-switch {
    padding: 0;
}

html[dir="rtl"] .forum-home-shell,
html[dir="rtl"] .jg-forum-page {
    direction: rtl;
    text-align: right;
}

#hiddenmenu,
.jg-mega {
    display: block;
    position: relative;
    top: auto;
    left: 0;
    width: 100%;
    min-height: 0;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: #F2F2F2;
    border-top: 0 solid #D0D0D0;
    border-bottom: 0 solid #E2E2E2;
    border-radius: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height 200ms ease, opacity 200ms ease, transform 200ms ease, border-width 0ms linear 200ms;
    box-sizing: border-box;
    pointer-events: none;
}

#hiddenmenu.is-open,
.jg-mega.is-open,
#head_topmenu_cover.is-games-open #hiddenmenu {
    min-height: 92px;
    height: 92px;
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    border-top: 1px solid #D0D0D0;
    border-bottom: 1px solid #E2E2E2;
    pointer-events: auto;
    transition: max-height 200ms ease, opacity 200ms ease, transform 200ms ease;
}

#hiddenmenu_cover,
.jg-mega__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100%;
    min-height: 90px;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    padding: 16px 0 10px 130px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#hiddenmenu_cover::-webkit-scrollbar,
.jg-mega__inner::-webkit-scrollbar {
    display: none;
}

#hiddenmenu_cover ul {
    display: none !important;
}

.jg-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    flex-shrink: 0;
    text-decoration: none !important;
    color: #202020;
    font-family: Arial, Helvetica, sans-serif;
}

.jg-game__thumb {
    width: 46px;
    height: 46px;
    border: 1px solid #B7B7B7;
    border-radius: 0;
    object-fit: cover;
    display: block;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.12);
    transition: transform 150ms ease, border-color 150ms ease;
    background: #ddd;
}

.jg-game--a .jg-game__thumb { object-position: 20% 15%; }
.jg-game--b .jg-game__thumb { object-position: 55% 25%; }
.jg-game--c .jg-game__thumb { object-position: 80% 40%; }

.jg-game__name {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
    color: #202020;
    text-align: center;
    white-space: nowrap;
    transition: color 150ms ease;
}

.jg-game:hover .jg-game__thumb {
    transform: translateY(-2px);
    border-color: #FF2A2A;
}

.jg-game:hover .jg-game__name {
    color: #E81919;
}

.jg-mega__divider {
    width: 1px;
    height: 60px;
    background: #8F8F8F;
    margin: 14px 0 0 10px;
    flex-shrink: 0;
    align-self: flex-start;
}

.jg-mega__divider + .jg-game {
    margin-left: 18px;
}

/* İkincil kırmızı menü */
.jg-subnav {
    width: 100%;
    height: 52px;
    background: linear-gradient(180deg, #6a1212 0%, #4a0808 45%, #3a0505 100%);
    border-top: 1px solid #8a2a2a;
    border-bottom: 2px solid #1a0000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 50;
}

.jg-subnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    gap: 8px;
}

.jg-subnav__download {
    flex: 0 0 auto;
    min-width: 170px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffd27a !important;
    text-shadow: 0 1px 0 #3a1000, 0 0 12px rgba(255, 140, 0, 0.55);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 18px;
    margin-right: 6px;
}

.jg-subnav__download:hover {
    color: #ffe7b0 !important;
}

.jg-subnav__links {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}

.jg-subnav__links::-webkit-scrollbar {
    display: none;
}

.jg-subnav__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 14px;
    color: #f2f2f2 !important;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28px;
    text-transform: uppercase;
    white-space: nowrap;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.jg-subnav__links a:first-child {
    border-left: 0;
}

.jg-subnav__links a:hover,
.jg-subnav__links a.is-active {
    color: #ffd27a !important;
    background: rgba(0, 0, 0, 0.18);
}

#main #middle_panel {
    margin-top: 18px !important;
}

#betakeystaticDiv {
    top: 200px !important;
    z-index: 9000 !important;
}

body {
    background-color: #282c32 !important;
}

@media (max-width: 900px) {
    .jg-brand {
        width: auto;
        min-width: 120px;
        padding-left: 16px;
    }

    #hiddenmenu_cover,
    .jg-mega__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    #hiddenmenu.is-open,
    .jg-mega.is-open,
    #head_topmenu_cover.is-games-open #hiddenmenu {
        height: auto;
        max-height: 160px;
        min-height: 88px;
    }

    .jg-game__thumb {
        width: 44px;
        height: 44px;
    }

    .jg-premium-infobar {
        height: auto;
        min-height: 28px;
        max-width: min(100%, 420px);
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px 8px;
        padding: 4px 6px;
        border-radius: 14px;
    }

    .jg-premium-infobar__date-text,
    #jg-nav-date {
        font-size: 9px;
        letter-spacing: 0.08em;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jg-premium-infobar__time-text,
    #jg-nav-clock {
        font-size: 11px;
    }

    .jg-premium-infobar__sep {
        height: 12px;
    }

    .jg-lang-switch__link {
        min-width: 38px;
        height: 20px;
        padding: 0 5px;
        font-size: 9px;
    }

    .jg-subnav__download {
        min-width: 120px;
        font-size: 14px;
        padding-right: 10px;
    }

    .jg-subnav__links a {
        padding: 0 12px;
        font-size: 12px;
    }
}
