@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
    /* Color Palette - Premium Universal */
    --primary: #FF8C00;
    --primary-hover: #e67e00;
    --primary-glow: rgba(255, 140, 0, 0.25);
    --secondary: #4CAF50;
    --secondary-hover: #43a047;
    --secondary-glow: rgba(76, 175, 80, 0.2);

    --bg-main: #0b0e14;
    --bg-card: #151921;
    --bg-accent: #1c222d;

    --text-main: #ffffff;
    --text-muted: #8a94a6;
    --border: rgba(255, 255, 255, 0.08);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
}

.light-mode {
    --bg-main: #f4f7fa;
    --bg-card: #ffffff;
    --bg-accent: #f8fafc;
    --text-main: #1a1f26;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.05);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* --- Global Utilities --- */
.page-transition {
    animation: softFadeIn 0.8s ease forwards;
}

@keyframes softFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.theme-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.theme-btn:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--primary);
}

.theme-btn svg {
    fill: var(--text-main);
    transition: var(--transition);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- LANDING PAGE (ana-sayfa.html) --- */

.landing-body {
    padding-top: 40px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    padding: 8px 20px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
    display: inline-block;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 10vw, 96px);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 100px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 16px;
    font-size: 24px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: block;
}

/* --- AUTH PAGE (giris.html) --- */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, var(--bg-accent) 0%, var(--bg-main) 100%);
}

.auth-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-accent);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- GAME PANEL (oyun.html) --- */


.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
    margin-top: 40px;
}

.sidebar-link {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.sidebar-link .nav-icon {
    font-size: 24px;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}

/* Sadece PC Yan Menüsünde yazıları gizle */
.pc-sidebar .sidebar-link span:not(.nav-icon) {
    display: none;
}

/* Mobil Sidebar'da yazılar ve ikonlar gözüksün */
.mobile-sidebar .sidebar-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 24px;
    justify-content: flex-start;
}

.mobile-sidebar .sidebar-link .nav-icon {
    filter: none;
    opacity: 1;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--bg-accent);
    color: var(--primary);
}

.sidebar-link:hover .nav-icon,
.sidebar-link.active .nav-icon {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

/* AFK Rapor Modalı */
.afk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.afk-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.afk-report-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 450px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.afk-modal-overlay.active .afk-report-card {
    transform: translateY(0);
}

.afk-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.afk-duration {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}

/* --- Horizontal Equipment Gear Bar --- */
.equipment-layout-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.horizontal-gear-bar {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.item-slot {
    width: 64px; height: 64px;
    background: var(--bg-accent);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.item-slot:hover { border-color: var(--primary); transform: translateY(-5px); }

.item-slot::after {
    content: attr(data-label);
    position: absolute;
    bottom: -20px;
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
}

.item-slot img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }

.afk-levelup-badge {
    background: #4ade80;
    color: #000;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    display: inline-block;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.afk-claim-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.afk-claim-btn:hover {
    background: #ff8c33;
    transform: scale(1.05);
}

/* Sidebar Tooltip */
.sidebar-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--bg-card);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 3000;
}

.sidebar-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.game-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1200px) {
    .game-container {
        grid-template-columns: 1fr 450px;
    }
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    /* RPG Çerçeve Efekti */
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: -6px;
}

@media (max-width: 768px) {
    .game-container {
        padding: 16px;
        gap: 20px;
    }
    .game-card {
        padding: 20px;
    }
}

.map-section {
    position: relative;
    width: 100%;
    aspect-ratio: 770 / 165;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 4px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    outline: 2px solid var(--map-color);
    outline-offset: -8px;
    grid-column: 1 / -1;
    box-shadow: 0 0 30px rgba(0,0,0,0.5), 0 0 15px var(--map-color);
    transition: 1s ease;
}

@media (max-width: 768px) {
    .map-section {
        aspect-ratio: 770 / 165;
        border-radius: var(--radius-lg);
        border-width: 4px;
    }
}

.map-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    transition: 1s ease;
}

.battle-stage {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Karakterleri aşağı hizaal */
    padding: 0 15%; /* Mesafeyi açtık */
}

.sprite-container {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

#enemy-area {
    margin-top: 50px; /* Düşmanı biraz daha aşağı çektik */
}

@media (max-width: 768px) {
    .sprite-container {
        width: 120px;
        height: 120px;
    }
}

.sprite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    image-rendering: pixelated;
}

.sprite:hover {
    transform: scale(1.1);
}

.history-box {
    height: 260px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border);
}

.history-item {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-accent);
    border-left: 4px solid var(--primary);
    font-size: 13px;
    font-weight: 600;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, currentColor, transparent);
    animation: scanline 2s linear infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.history-item:hover {
    background: var(--bg-card);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Character Status & Stats --- */
.status-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.health-bar-wrapper {
    width: 100%;
    height: 28px;
    background: var(--bg-accent);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.health-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff4d4d, #ff0000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transition: width 0.4s ease;
}

.health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: var(--bg-accent);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

/* --- Cross Equipment Grid --- */
.equipment-layout-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.cross-grid {
    display: grid;
    grid-template-columns: repeat(4, 72px);
    grid-template-rows: repeat(3, 72px);
    gap: 24px;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Slot Positions based on User Diagram */
/* Slot Positions - Balanced 4x3 Grid */
.slot-silah {
    grid-row: 2;
    grid-column: 1;
}

.slot-kask {
    grid-row: 1;
    grid-column: 2;
}

.slot-zirh {
    grid-row: 2;
    grid-column: 2;
}

.slot-pantolon {
    grid-row: 3;
    grid-column: 2;
}

.slot-ayaklik {
    grid-row: 3;
    grid-column: 3;
}

.slot-canta {
    grid-row: 1;
    grid-column: 3;
}

.slot-eldiven {
    grid-row: 2;
    grid-column: 3;
}

.slot-kalkan {
    grid-row: 2;
    grid-column: 4;
}

.potion-section {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    width: 100%;
}

.item-slot {
    width: 72px;
    height: 72px;
    background: var(--bg-accent);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.item-slot:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
    background: var(--bg-card);
}

.item-slot::after {
    content: attr(data-label);
    position: absolute;
    bottom: -22px;
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-slot::before {
    content: '';
}

/* Emoji veya + işareti yok */

/* --- Selection Overlay --- */
.selection-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 3000;
    padding: 48px;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
}

.selection-overlay.open {
    transform: translateX(0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--primary-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}


/* --- Navigation & Theme --- */
/* --- Pixel Building Mode (Başkent) --- */
.sketch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding: 20px 0;
}

.sketch-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sketch-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.sketch-img-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    opacity: 1;
    /* Pixel art için opaklığı tam yapıyoruz */
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sketch-card:hover .sketch-img-wrapper {
    transform: scale(1.05);
}

.sketch-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Pixel art'ı ezmemek için contain kullanıyoruz */
    image-rendering: pixelated;
    /* Piksellerin keskin görünmesi için */
}

.sketch-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.blueprint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* --- Mobil Alt Navigasyon --- */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    background: rgba(21, 25, 33, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    padding: 12px 8px;
    z-index: 9998;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    transition: var(--transition);
    flex: 1;
}

.bottom-nav .nav-link.active {
    color: var(--primary);
}

.bottom-nav .nav-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}

.bottom-nav .nav-link.active .nav-icon {
    filter: grayscale(0) opacity(1);
    transform: translateY(-4px) scale(1.1);
}

/* --- Mobil Sidebar (Hamburger) --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 10000;
    padding: 32px 0;
    transition: var(--transition);
    border-right: 1px solid var(--border);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hamburger-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
    .bottom-nav, .hamburger-btn, .mobile-sidebar {
        display: none !important;
    }
}

/* Sağ Kahraman Paneli */
.right-hero-panel {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100vh;
    width: 220px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-hero-panel.open {
    right: 0;
}

.hero-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-toggle-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.hero-preview-mini {
    text-align: center;
    margin-bottom: 24px;
}

.mini-equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.mini-slot {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    image-rendering: pixelated;
}

.mini-stat-box {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.mini-stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

@media (min-width: 1300px) {

    /* Masaüstünde içerik kaymasın, üzerine binsin */
    .game-content {
        margin-right: 0 !important;
    }
}

/* --- LANDING ENHANCEMENTS --- */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbMove 20s infinite alternate ease-in-out;
}

@keyframes orbMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Global Inventory & Equipment Styles --- */
:root {
    --slot-size: 60px;
    --slot-bg: rgba(255, 255, 255, 0.02);
    --slot-border: rgba(255, 255, 255, 0.08);
}

.inventory-page-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-layer {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equip-layout {
    position: relative;
    width: 100%;
    height: 100%;
}

.slot-unit {
    width: var(--slot-size);
    height: var(--slot-size);
    background: var(--slot-bg);
    border: 1px solid var(--slot-border);
    border-radius: 4px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.slot-unit:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.05);
}

#h-helmet { top: 10px; left: 50%; transform: translateX(-50%); }
#h-weapon { top: 170px; left: 40px; }
#h-armor  { top: 90px; left: 50%; transform: translateX(-50%); }
#h-bag    { top: 90px; right: 40px; }
#h-gloves { top: 90px; left: 40px; }
#h-boots  { top: 170px; left: 50%; transform: translateX(-50%); }

.backpack-layer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.backpack-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    padding: 10px;
}

.item-slot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.item-box {
    width: var(--slot-size);
    height: var(--slot-size);
    background: var(--slot-bg);
    border: 1px solid var(--slot-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.item-slot:hover .item-box {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(255, 140, 0, 0.05);
}

.item-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    height: 12px;
}

.stats-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    flex-grow: 1;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

@media (max-width: 1000px) {
    .top-layer { grid-template-columns: 1fr; }
    .backpack-horizontal-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Global Harita Teması */
:root {
    --map-color: var(--primary);
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--map-color) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    transition: 1.5s ease;
    animation: global-glow 5s infinite alternate;
}

@keyframes global-glow {
    from { opacity: 0.03; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0.07; transform: translate(-50%, -50%) scale(1.15); }
}

/* --- Global Navigation Layout --- */
.pc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 100;
}

.game-content {
    margin-left: 100px;
    min-height: 100vh;
    transition: var(--transition);
}

/* --- Mobile Navigation Styles --- */
.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    backdrop-filter: blur(10px);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 10001;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0 !important;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 450px; /* Biraz daha daraltarak ortaladık */
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    padding: 12px 10px;
    z-index: 9998;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    transition: 0.3s;
    font-size: 10px;
    font-weight: 800;
}

.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-link.active img {
    opacity: 1;
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

@media (max-width: 1024px) {
    .hamburger-btn { display: flex; align-items: center; justify-content: center; }
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); width: 90%; max-width: 400px; }
    .pc-sidebar { display: none !important; }
    .game-content { margin-left: 0 !important; padding-top: 80px !important; padding-bottom: 130px !important; }
}

/* Bildirimler Köşesi - PC Sağda, Mobil Altta */
.notifications-corner {
    position: fixed;
    top: 20px;
    right: -500px;
    width: 450px; 
    max-height: 700px; 
    background: rgba(21, 25, 33, 0.98);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 2100;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    pointer-events: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-corner.open {
    right: 80px;
}

.notifications-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.03);
}

.notifications-content {
    overflow-y: auto;
    padding: 5px 0;
    flex-grow: 1;
}

/* Mobil Bildirim Butonu */
.mobile-note-toggle {
    display: flex;
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    z-index: 2200;
    box-shadow: 0 8px 25px var(--primary-glow);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.mobile-note-toggle:hover { transform: scale(1.1); }

@media (max-width: 1100px) {
    .notifications-corner {
        top: 0;
        right: -100%;
        bottom: 0;
        width: 95%;
        max-width: 500px;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border-left: 1px solid var(--border);
    }
    .notifications-corner.open {
        right: 0;
    }
    .mobile-note-toggle {
        bottom: 100px;
    }
}

/* --- Karakter Sprite Sistemi --- */
.hero-visual-container {
    width: 120px;
    height: 80px;
    position: relative;
    overflow: hidden;
    transform: scale(3.5); /* Bir tık küçültüldü, banner'a tam sığacak */
    transform-origin: bottom center; /* Ayakları zemine sabitler */
    image-rendering: pixelated;
}

.hero-sprite {
    width: 120px;
    height: 80px;
    background-repeat: no-repeat;
    background-size: auto 80px;
}

.hero-idle {
    background-image: url('./assets/sovalye-anımasyon/Outline/120x80_PNGSheets/_Idle.png');
    animation: hero-idle-anim 1.2s steps(10) infinite;
}

/* Saldırı Varyasyonları */
.hero-attack-1 {
    background-image: url('./assets/sovalye-anımasyon/Outline/120x80_PNGSheets/_Attack.png');
    animation: hero-atk-4 0.4s steps(4) forwards;
}

.hero-attack-2 {
    background-image: url('./assets/sovalye-anımasyon/Outline/120x80_PNGSheets/_Attack2.png');
    animation: hero-atk-6 0.5s steps(6) forwards;
}

.hero-attack-combo {
    background-image: url('./assets/sovalye-anımasyon/Outline/120x80_PNGSheets/_AttackCombo.png');
    animation: hero-atk-10 0.8s steps(10) forwards;
}

.hero-attack-crouch {
    background-image: url('./assets/sovalye-anımasyon/Outline/120x80_PNGSheets/_CrouchAttack.png');
    animation: hero-atk-4 0.4s steps(4) forwards;
}

@keyframes hero-idle-anim {
    from { background-position: 0 0; }
    to { background-position: -1200px 0; }
}

@keyframes hero-atk-4 {
    from { background-position: 0 0; }
    to { background-position: -480px 0; }
}

@keyframes hero-atk-6 {
    from { background-position: 0 0; }
    to { background-position: -720px 0; }
}

@keyframes hero-atk-10 {
    from { background-position: 0 0; }
    to { background-position: -1200px 0; }
}