﻿/* ============================================
   METIN2 WIKI - PROFESSIONAL CSS STYLESHEET
   Modern, Clean & Responsive Design
   Dark Theme with Blue Accent
   ============================================ */

/* ============================================
   ROOT VARIABLES & THEME
   ============================================ */
:root {
    /* Primary Colors - Blue Accent */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.3);
    
    /* Secondary Colors */
    --secondary: #ffc533;
    --secondary-dark: #e5b02e;
    --secondary-light: #ffd666;
    
    /* Background Colors - Dark Theme */
    --bg-dark: #1a1a1a;
    --bg-darker: #1a1a1a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #252525;
    --bg-surface: #1a1a1a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Accent Colors */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Item Rarity Colors */
    --rarity-common: #9ca3af;
    --rarity-uncommon: #22c55e;
    --rarity-rare: #3b82f6;
    --rarity-epic: #a855f7;
    --rarity-legendary: #f59e0b;
    --rarity-mythic: #ef4444;
    
    /* Mob Rank Colors */
    --rank-pawn: #9ca3af;
    --rank-spawn: #22c55e;
    --rank-knight: #3b82f6;
    --rank-sknight: #a855f7;
    --rank-boss: #f59e0b;
    --rank-king: #ef4444;
    --rank-metin: #22c55e;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(15,15,15,0) 0%, var(--bg-dark) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    /* Border */
    --border: #2a2a2a;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    --font-display: 'Inter', sans-serif;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   STARFIELD BACKGROUND (DISABLED)
   ============================================ */
.starfield {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
}

.stars-small {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 200px 30px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 220px 180px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 280px 90px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 320px 150px, rgba(255,255,255,0.8), transparent);
    background-size: 350px 350px;
    animation: starMove 80s linear infinite;
    opacity: 0.5;
}

.stars-medium {
    background-image: 
        radial-gradient(1.5px 1.5px at 100px 50px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 200px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 300px 80px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 150px 200px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 350px 250px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 50px 300px, rgba(255,255,255,0.7), transparent);
    background-size: 450px 450px;
    animation: starMove 120s linear infinite;
    opacity: 0.6;
}

.stars-large {
    background-image: 
        radial-gradient(2px 2px at 150px 100px, rgba(255,255,255,1), transparent),
        radial-gradient(2px 2px at 350px 200px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 250px 350px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2.5px 2.5px at 450px 150px, rgba(255,99,99,0.9), transparent),
        radial-gradient(2px 2px at 100px 400px, rgba(86,194,255,0.9), transparent);
    background-size: 550px 550px;
    animation: starMove 200s linear infinite;
    opacity: 0.7;
}

@keyframes starMove {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

/* Ensure content is above stars */
.navbar, .main-content, .footer, .container {
    position: relative;
    z-index: 1;
}

::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Links */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

/* ============================================
   NAVBAR - Clean Minimal Design (Raycast Style)
   ============================================ */
.navbar {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-collapse {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-basis: auto;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: var(--text-muted);
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-nav .nav-link.active {
    color: #fff;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px 3px 0 0;
}

/* Dropdown Toggle */
.navbar-nav .dropdown-toggle::after {
    border: none;
    content: '▼';
    font-size: 0.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    opacity: 0.7;
}

/* Dropdown */
.dropdown-menu-dark {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-top: 0 !important;
}

.dropdown-menu-dark .dropdown-item {
    color: #888;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: #252525;
    color: #fff;
}

.dropdown-menu-dark .dropdown-header {
    color: #888;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1rem 0.4rem;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: #2a2a2a;
    margin: 0.4rem 0;
}

/* Search Form */
.search-form {
    position: relative;
    margin-left: 2rem;
}

.search-form .input-group {
    display: flex;
    align-items: stretch;
}

.search-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: #fff;
    border-radius: 6px 0 0 6px;
    padding: 0.5rem 1rem;
    width: 200px;
    font-size: 0.85rem;
    height: 38px;
}

.search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: none;
    outline: none;
}

.search-form .form-control::placeholder {
    color: #555;
}

.search-form .btn-primary {
    background: #3b82f6;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 0.9rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form .btn-primary:hover {
    background: #6d28d9;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.suggestion-item:hover {
    background: #222;
}

.suggestion-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.suggestion-item .suggestion-name {
    flex: 1;
    font-weight: 500;
}

.suggestion-item .suggestion-type {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59, 130, 246,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Stats Cards */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2.5rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.section-title i {
    color: var(--primary-light);
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.section-link:hover {
    color: var(--secondary);
    gap: 0.75rem;
}

/* ============================================
   ITEM CARDS
   ============================================ */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.item-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 99, 99, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.item-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.item-card-image {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.item-card-image img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform var(--transition-normal);
}

.item-card:hover .item-card-image img {
    transform: scale(1.1);
}

.item-card-body {
    padding: 0.5rem 0.75rem;
}

.item-card-name {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-card-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.item-card-stats {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.item-stat {
    background: rgba(255, 99, 99, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    color: var(--primary-light);
}

/* Item Rarity Borders */
.item-card.rarity-common { border-color: var(--rarity-common); }
.item-card.rarity-uncommon { border-color: var(--rarity-uncommon); }
.item-card.rarity-rare { border-color: var(--rarity-rare); }
.item-card.rarity-epic { border-color: var(--rarity-epic); }
.item-card.rarity-legendary { border-color: var(--rarity-legendary); }
.item-card.rarity-mythic { border-color: var(--rarity-mythic); }

/* ============================================
   MONSTER CARDS
   ============================================ */
.monster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.monster-card {
    background: var(--gradient-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.monster-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.monster-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.monster-card-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
}

.monster-card-image img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.monster-card-info {
    flex: 1;
}

.monster-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.monster-card-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.monster-card-rank {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rank-pawn { background: rgba(156, 163, 175, 0.2); color: var(--rank-pawn); }
.rank-spawn { background: rgba(34, 197, 94, 0.2); color: var(--rank-spawn); }
.rank-knight { background: rgba(59, 130, 246, 0.2); color: var(--rank-knight); }
.rank-sknight { background: rgba(168, 85, 247, 0.2); color: var(--rank-sknight); }
.rank-boss { background: rgba(245, 158, 11, 0.2); color: var(--rank-boss); }
.rank-king { background: rgba(239, 68, 68, 0.2); color: var(--rank-king); }
.rank-metin { background: rgba(16, 185, 129, 0.2); color: var(--rank-metin); }

.monster-card-body {
    padding: 1rem;
}

.monster-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.monster-stat {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.monster-stat-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
}

.monster-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.category-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    display: block;
}

.category-card .category-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.category-card .category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.category-card .category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   DETAIL PAGE STYLES
   ============================================ */
.detail-header {
    background: var(--gradient-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
}

.detail-image-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.detail-image {
    max-width: 150px;
    max-height: 150px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.detail-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-badge {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-badge.primary {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

.detail-badge.secondary {
    background: rgba(245, 158, 11, 0.2);
    color: var(--secondary);
}

.detail-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   CLASS TAGS - Karakter Sınıfları
   ============================================ */
.class-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.class-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.class-tag.can-use {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.class-tag.can-use:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.class-tag.cannot-use {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    opacity: 0.7;
    text-decoration: line-through;
}

/* ============================================
   ITEM INFO INLINE - Satır İçi Bilgiler
   ============================================ */
.item-info-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.item-info-inline .info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.item-info-inline .info-label {
    color: #666;
    font-size: 0.8rem;
    font-weight: 400;
}

.item-info-inline .info-value {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.item-info-inline .info-value.gold {
    color: #fbbf24;
}

/* ============================================
   ITEM STATS COMPACT - Temel Bilgiler
   ============================================ */
.item-stats-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 22, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 160px;
}

.item-stats-compact .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.item-stats-compact .stat-item:last-child {
    border-bottom: none;
}

.item-stats-compact .stat-label {
    color: #888;
    font-size: 0.85rem;
    font-weight: 400;
}

.item-stats-compact .stat-val {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

/* Stats compact için özel renkler */
.item-stats-compact .stat-item:nth-child(1) .stat-val {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #60a5fa;
}

.item-stats-compact .stat-item:nth-child(2) .stat-val {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #f87171;
}

.item-stats-compact .stat-item:nth-child(3) .stat-val {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #fbbf24;
}

.item-stats-compact .stat-item:nth-child(4) .stat-val {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #34d399;
}

/* Stats Table */
.stats-table {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.stats-table-header {
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Canavar bölümü - kırmızı accent */
.stats-table.monster-table {
    border-left: 3px solid #e74c3c;
}
.stats-table.monster-table .stats-table-header {
    color: #e74c3c;
}

/* Sandık bölümü - yeşil accent */
.stats-table.box-table {
    border-left: 3px solid #2ecc71;
}
.stats-table.box-table .stats-table-header {
    color: #2ecc71;
}

/* NPC bölümü - mavi accent */
.stats-table.npc-table {
    border-left: 3px solid #3b82f6;
}
.stats-table.npc-table .stats-table-header {
    color: #3b82f6;
}

/* Cube bölümü - mor accent */
.stats-table.cube-table {
    border-left: 3px solid #a855f7;
}
.stats-table.cube-table .stats-table-header {
    color: #a855f7;
}

.stats-table-header i {
    color: var(--primary-light);
}

.stats-table-body {
    padding: 1rem 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-name {
    color: var(--text-secondary);
}

.stat-row .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Bonus Tags */
.bonus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bonus-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bonus-tag.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Resistance Bars */
.resistance-grid {
    display: grid;
    gap: 0.75rem;
}

.resistance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resistance-name {
    width: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.resistance-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.resistance-fill {
    height: 100%;
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.resistance-fill.positive {
    background: linear-gradient(90deg, var(--success) 0%, #34d399 100%);
}

.resistance-fill.negative {
    background: linear-gradient(90deg, var(--danger) 0%, #f87171 100%);
}

.resistance-value {
    width: 50px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   UPGRADE TABLE
   ============================================ */
.upgrade-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.upgrade-table table {
    width: 100%;
    border-collapse: collapse;
}

.upgrade-table th,
.upgrade-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.upgrade-table th {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upgrade-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.upgrade-table .level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   FILTERS & TOOLBAR
   ============================================ */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    background: var(--bg-surface);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group select option {
    background: var(--bg-card);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.pagination .page-item .page-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
    color: var(--text-primary);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-wrapper {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--primary-light);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "›";
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand h5 {
    font-family: var(--font-display);
    margin: 0;
    color: var(--text-primary);
}

.footer-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.stats-mini {
    display: flex;
    gap: 1.5rem;
}

.stats-mini .stat-item {
    text-align: center;
}

.stats-mini .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
}

.stats-mini .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-divider {
    border-color: rgba(59, 130, 246, 0.15);
    margin: 2rem 0 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.btn-back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.btn-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-back-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert-custom {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-custom.alert-info {
    border-left: 4px solid var(--info);
}

.alert-custom.alert-warning {
    border-left: 4px solid var(--warning);
}

.alert-custom.alert-success {
    border-left: 4px solid var(--success);
}

.alert-custom.alert-danger {
    border-left: 4px solid var(--danger);
}

.alert-custom i {
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.alert-custom.alert-info i { color: var(--info); }
.alert-custom.alert-warning i { color: var(--warning); }
.alert-custom.alert-success i { color: var(--success); }
.alert-custom.alert-danger i { color: var(--danger); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card-hover);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .search-form .form-control {
        width: 200px;
    }
    
    .search-form .form-control:focus {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-row {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group label {
        margin-bottom: 0.25rem;
    }
    
    .detail-header {
        padding: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .monster-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-back-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }
    
    .search-form {
        width: 100%;
        margin-top: 1rem;
    }
    
    .search-form .form-control,
    .search-form .form-control:focus {
        width: 100%;
    }
    
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .monster-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-mini {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-card {
    background: var(--gradient-card);
}

.border-primary-glow {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-glow);
}

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bootstrap text-muted override */
.text-muted {
    --bs-text-opacity: 1;
    color: rgb(255 255 255 / 75%) !important;
}

/* ============================================
   INDEX PAGE - Class Cards Compact
   ============================================ */
.class-card {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    transform: translateY(-3px);
    border-color: var(--class-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px color-mix(in srgb, var(--class-color) 30%, transparent);
}

.class-card-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
    padding: 10px;
}

.class-card-image img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5));
}

.class-card-body {
    padding: 12px 15px;
    text-align: center;
    flex-grow: 1;
}

.class-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.class-card-desc {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
}

.class-card-links {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
}

.class-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.class-link:hover {
    background: var(--class-color);
    color: white;
}

.class-link i {
    font-size: 0.85rem;
}

/* ============================================
   CATEGORY GRID - Modern Design
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #3a3a3a;
    background: #222222;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-card i {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.category-card:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 2px;
}

.category-count {
    font-size: 0.7rem;
    color: #777;
}

/* Hero minimal */
.hero-section {
    background: linear-gradient(135deg, rgba(30,30,50,0.8), rgba(20,20,40,0.9));
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SECTION HEADERS - Modern Style
   ============================================ */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-title i {
    color: var(--primary-light);
}

/* ============================================
   BUTTONS - Modern Style
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary-light);
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   FORM CONTROLS - Modern Style
   ============================================ */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    color: #fff;
}

.form-control::placeholder {
    color: #666;
}

.form-select option {
    background: #1a1a2e;
    color: #fff;
}

/* ============================================
   CARDS - General Modern Style
   ============================================ */
.card-modern {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 35, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TABLES - Modern Style
   ============================================ */
.table-modern {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 35, 0.95));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-modern thead {
    background: rgba(59, 130, 246, 0.15);
}

.table-modern thead th {
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
}

.table-modern tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

.table-modern tbody td {
    padding: 0.8rem 1rem;
    color: #ccc;
    border: none;
    vertical-align: middle;
}

/* ============================================
   BADGES - Modern Style
   ============================================ */
.badge-modern {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* ============================================
   PAGINATION - Modern Style
   ============================================ */
.pagination-modern {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-modern .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination-modern .page-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
    color: #fff;
}

.pagination-modern .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================
   FILTERS - Modern Style
   ============================================ */
.filters-modern {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 35, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filters-modern .filter-label {
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth fade in for content */
.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   NPC / SHOP STYLES
   ============================================ */

/* NPC Grid */
.npc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* NPC Card */
.npc-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.npc-card:hover {
    transform: translateY(-4px);
    border-color: #3a3a3a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.npc-card-image {
    width: 100%;
    height: 160px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.npc-card-image img {
    max-width: 120px;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    transition: transform var(--transition-normal);
}

.npc-card:hover .npc-card-image img {
    transform: scale(1.1);
}

.npc-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.npc-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.npc-card-shop {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.npc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.npc-card-meta .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* NPC Detail Header */
.npc-detail-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.npc-detail-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255,99,99,0.15) 0%, rgba(86,194,255,0.15) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.npc-detail-image img {
    max-width: 160px;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.npc-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.npc-detail-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.npc-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.npc-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.npc-detail-meta .meta-item i {
    color: var(--primary);
}

/* Shop Items Grid */
.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.shop-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.shop-item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.shop-item-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.shop-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.shop-item-icon .item-count {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.shop-item-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.shop-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.shop-item-vnum {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.shop-item-price {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 4px;
}

.shop-item-price i {
    color: var(--secondary);
}

/* Content Section */
.content-section {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary);
}

/* Responsive NPC */
@media (max-width: 768px) {
    .npc-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .npc-detail-image {
        width: 150px;
        height: 150px;
    }
    
    .npc-detail-name {
        font-size: 1.5rem;
    }
    
    .npc-detail-meta {
        justify-content: center;
    }
    
    .npc-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .shop-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
