/* v: 1.0.5 */
:root {
    --bg-primary: #0a1e1a;
    --bg-secondary: #1a2f2a;
    --bg-card: #0f2520;
    --accent-green: #33cc77;
    --accent-green-hover: #2eb869;
    --text-primary: #ffffff;
    --text-secondary: #8a9d99;
    --border-color: #1e3830;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0d2621 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    padding: 15px 20px;
    background: rgba(10, 30, 26, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.lang-btn {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    color: #00d4ff;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    user-select: none;
}

/* Header logo kutuları: koyu gri yuvarlatılmış (görseldeki gibi) */
.logo-box {
    flex: 1;
    min-width: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-left {
    justify-content: flex-start;
}

.logo-right {
    justify-content: flex-end;
}

.main-logo,
.partner-logo {
    height: 36px;
    max-width: 100%;
    object-fit: contain;
}

.partner-logo {
    max-height: 36px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 15px 10px;
    flex-wrap: wrap;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(51, 204, 119, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(51, 204, 119, 0.6);
    transform: scale(1.2);
}

/* Navigation */
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.search-btn {
    background: rgba(26, 47, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: rgba(51, 204, 119, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.tabs {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.tab {
    background: rgba(26, 47, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.tab.active {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
    box-shadow: 0 4px 16px rgba(51, 204, 119, 0.4);
}

.tab:hover:not(.active) {
    background: rgba(51, 204, 119, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Search Box */
.search-box {
    padding: 0 15px 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(15, 37, 32, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.search-submit {
    padding: 12px 24px;
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.search-info {
    padding: 10px 20px;
    background: rgba(51, 204, 119, 0.1);
    border-left: 3px solid var(--accent-green);
    margin: 0 15px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.clear-search {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

/* Games Section */
.games-section {
    padding: 0 15px 20px;
}

.games-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green) rgba(26, 47, 42, 0.4);
}

.games-slider::-webkit-scrollbar {
    height: 6px;
}

.games-slider::-webkit-scrollbar-track {
    background: rgba(26, 47, 42, 0.4);
    border-radius: 3px;
}

.games-slider::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 3px;
}

.game-card {
    position: relative;
    flex-shrink: 0;
    width: 130px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

/* Popüler/Hot: turuncu alev ikonu (görseldeki gibi) */
.hot-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 140, 0, 0.95);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.5);
}

.hot-badge .hot-icon {
    display: block;
}

.game-image {
    width: 100%;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(51, 204, 119, 0.3);
    background: var(--bg-card);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sites Section */
.trending-section {
    padding: 20px 15px;
    background: rgba(15, 37, 32, 0.6);
    border-radius: 24px 24px 0 0;
    margin-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.stars-left,
.stars-right {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 18px;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Sites List */
.sites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-card {
    background: linear-gradient(135deg, rgba(26, 47, 42, 0.8), rgba(15, 37, 32, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(51, 204, 119, 0.2);
}

.site-card:hover::before {
    opacity: 1;
}

.site-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.site-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-logo-box {
    width: 120px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-stars {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 4px;
}

.bonus-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 4px;
}

.bonus-type {
    font-size: 12px;
    color: var(--text-secondary);
}

.site-action {
    flex-shrink: 0;
}

/* Bonus Holen butonu + external link ikonu (panelden button_text, button_link) */
.bonus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(51, 204, 119, 0.3);
    white-space: nowrap;
    max-width: 110px;
}

.bonus-btn:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 204, 119, 0.5);
}

.bonus-btn .bonus-btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.bonus-btn .bonus-btn-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Admin Link */
.admin-link {
    text-align: center;
    padding: 30px 20px;
}

.admin-link a {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.admin-link a:hover {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .header-content {
        gap: 8px;
    }

    .lang-switcher {
        padding: 4px 8px;
    }

    .lang-btn {
        font-size: 12px;
    }

    .main-logo,
    .partner-logo {
        height: 35px;
    }

    .section-title {
        font-size: 18px;
    }

    .site-card {
        text-align: center;
        padding: 15px 12px;
    }

    .site-logo-wrapper {
        margin-bottom: 5px;
    }

    .site-logo-box {
        width: 140px;
        height: 70px;
    }

    .bonus-btn {
        width: auto;
        max-width: 100px;
        padding: 7px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .game-card {
        width: 110px;
    }

    .game-image {
        height: 110px;
    }

    .bonus-amount {
        font-size: 20px;
    }

    .site-logo-box {
        width: 120px;
        height: 60px;
    }
}

/* Home Banners strict fit */
.home-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.banner-item {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.banner-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.banner-item a {
    display: block;
    width: 100%;
}

.banner-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
    border-color: var(--accent-green);
}