/* 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-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.spell-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spell-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

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

.spell-card img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

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

.spell-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.spell-stats {
    background: var(--bg-surface-elevated);
    border-radius: 6px;
    padding: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.spell-stats div {
    white-space: nowrap;
}

.spell-stats .stats-value {
    color: var(--accent);
    font-weight: 600;
}

.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%;
    }
}
