/* Spells page - dark theme */
.spells-header {
    background: var(--bg-surface-elevated);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
}

.spells-header .season-info {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.spells-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spells-filter-form .filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.spells-filter-form .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.spells-filter-form .filter-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.spells-filter-form .filter-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.spells-filter-form .filter-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-muted);
}

.spells-filter-form .filter-group select:hover {
    border-color: var(--accent);
}

.spells-submit-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.spells-submit-btn:hover {
    background: var(--accent-hover);
}

.spells-search {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.spells-search input {
    padding: 12px 20px;
    border: 2px solid var(--border-primary);
    border-radius: 25px;
    font-size: 1em;
    width: 400px;
    max-width: 100%;
    transition: all 0.3s ease;
    background: var(--bg-surface);
    color: var(--text-primary);
}

.spells-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.spells-search button {
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.spells-search button:hover {
    background: var(--accent-hover);
}

/* ===== Spells grid — dota1x6 chrome (matches heroes) ===== */
.spells-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.spell-card {
    position: relative;
    background: var(--color-bg-base, #0a1823);
    border: none;
    border-radius: 2px;
    padding: 14px 14px 12px;
    text-align: center;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.85),
                inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.spell-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.9),
                inset 0 0 0 1px rgba(251, 140, 7, 0.32);
}

.spell-card a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.spell-card img {
    width: 72px;
    height: 72px;
    border-radius: 2px;
    object-fit: cover;
    margin: 0 auto 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
    transition: filter 200ms;
}

.spell-card:hover img { filter: brightness(1.08); }

.spell-name {
    font-family: var(--font-display, 'Reaver');
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-strong, #fff);
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.57);
    transition: color 200ms;
}
.spell-card:hover .spell-name { color: var(--color-primary-500, #fb8c07); }

.spell-stats {
    background: rgba(8, 16, 21, 0.55);
    border-radius: 2px;
    padding: 8px 10px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-text-muted, #8e97a4);
    font-family: var(--font-sans);
    text-align: left;
}
.spell-stats div {
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.spell-stats strong {
    color: var(--color-text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
}
.spell-stats .stats-value {
    color: var(--color-text-strong, #fff);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.no-results {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .spells-filter-form .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .spells-filter-form .filter-group {
        min-width: auto;
        width: 100%;
    }

    .spells-submit-btn {
        align-self: stretch;
        margin-top: 10px;
    }

    .spells-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .spells-search {
        flex-direction: column;
        align-items: center;
    }

    .spells-search input {
        width: 100%;
    }
}
