:root {
    --bg-color: #0a0a0c;
    --sidebar-bg: rgba(18, 18, 20, 0.2);
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-color: #901d35;
    --text-main: #ffffff;
    --text-dim: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.container {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 80px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    padding: 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-area {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--text-dim);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    background: #080808;
    border-radius: 100px;
    padding: 5px;
}

.nav-item {
    font-size: 20px;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    background: #171717;
}

/* Nav labels hidden by default (desktop) - shown only on mobile when sidebar.open */
.nav-label {
    display: none;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-main);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 0 4px 4px 0;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.4), var(--bg-color)),
        url('https://forum.nexabag.xyz/assets/img/delta.png');
    /* Arka plan görseli buraya */
    background-size: cover;
    background-position: center;
    padding: 30px;
    padding-left: 150px;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.status {
    text-align: right;
    font-size: 12px;
}

.game-info {
    color: var(--text-dim);
    display: block;
}

/* HERO SECTION */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-text h1 {
    font-size: 64px;
    line-height: 1;
    margin: 10px 0 25px 0;
    letter-spacing: 2px;
}

.hero-text span {
    font-weight: 300;
}

.play-btn {
    background-color: #e2f9f1;
    color: #000;
    border: none;
    padding: 12px 35px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* STATS */
.stats-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 20px;
    margin-top: 40px;
}

/* App description & preview styles */
.app-description {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 8px;
    line-height: 1.6;
}

.feature-list {
    list-style: disc;
    padding-left: 18px;
    color: var(--text-dim);
    font-size: 14px;
}




.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h3 {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.bar.active {
    background: #d4a056;
}

.days {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-dim);
}

.view-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-dim);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 11px;
    transition: 0.3s;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.stat-item .value {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.stat-item .label {
    font-size: 10px;
    color: var(--text-dim);
}

.champions {
    display: flex;
    justify-content: space-around;
}

.champ {
    text-align: center;
    font-size: 10px;
}

.champ img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: block;
    margin-bottom: 5px;
}

/* Arka plan geçiş efekti */
.main-content {
    transition: background 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
}

/* Aktif butonun yanındaki o küçük çizgi */
.nav-item.active {
    color: var(--accent-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: -25px;
    width: 5px;
    height: 25px;
    background: var(--accent-color);
    border-radius: 0 5px 5px 0;
    box-shadow: 0 0 15px var(--accent-color);
}

/* Bar animasyonu */
.bar {
    transition: height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile responsive & off-canvas sidebar */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
}

/* Close button hidden by default (desktop) */
.close-sidebar {
    display: none;
} 

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    transition: transform 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        left: 0;
        position: fixed;
        padding: 20px;
        height: 100vh;
        backdrop-filter: blur(20px);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Show close button when sidebar is open (mobile) */
    .sidebar.open .close-sidebar {
        display: block;
    }

    .container {
        display: block;
    }

    .main-content {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 20px;
        padding-bottom: 60px;
        min-height: 100vh;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        background: transparent; /* remove background on mobile */
    }

    .logo-area {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
    }

    /* Mobile nav items show label when sidebar is open */
    .nav-item {
        padding: 8px 12px;
        border-radius: 8px;
        justify-content: flex-start;
        width: 100%;
        background: transparent;
    }

    .sidebar .close-sidebar {
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 18px;
        cursor: pointer;
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 1002;
    }

    .sidebar .close-sidebar i { pointer-events: none; }

    .nav-item img {
        margin-right: 12px;
    }

    .nav-label {
        display: none;
        font-size: 14px;
        color: var(--text-main);
        margin-left: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar.open .nav-item .nav-label {
        display: inline-block;
    }

    .nav-item.active .nav-label {
        color: var(--accent-color);
        font-weight: 600;
    }
}