:root {
    --bg-dark: #070908;
    --card-bg: rgba(255, 255, 255, 0.03);
    --mint: #00D18F;
    --mint-glow: rgba(0, 209, 143, 0.3);
    --text-gray: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.mint {
    color: var(--mint);
}


/* RESPONZIVNÍ NAVBAR */

.navbar {
    background: rgba(7, 9, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-align: center;
}

.nav-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-controls {
        flex-direction: row;
    }
}

#itemSearch {
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    outline: none;
}

#itemSearch:focus {
    border-color: var(--mint);
}

.filters {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
    justify-content: center;
}

.filters::-webkit-scrollbar {
    display: none;
}


/* Schová scrollbar na mobilu */

.filters button {
    background: none;
    border: none;
    color: var(--text-gray);
    padding: 5px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.3s;
}

.filters button.active,
.filters button:hover {
    color: var(--mint);
}


/* HERO SECTION */

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 15px;
}

.shadow-text {
    text-shadow: 0 0 30px var(--mint-glow);
}

.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}


/* GRID SYSTÉM */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.item-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobil: 1 sloupec */
    gap: 20px;
}

@media (min-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Tablet: 2 sloupce */
}

@media (min-width: 1200px) {
    .item-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Desktop: 3 sloupce */
}


/* KARTA PŘEDMĚTU */

.item-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-card:hover {
    border-color: var(--mint);
    transform: translateY(-5px);
    background: rgba(0, 209, 143, 0.02);
}

.item-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.item-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid #222;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    flex: 1;
}

.item-stats {
    font-size: 0.85rem;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.strategy-box {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.strategy-label {
    color: var(--mint);
    font-weight: 900;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.strategy-text {
    font-size: 0.9rem;
    color: #fff;
    font-style: italic;
    line-height: 1.4;
}