/* Library Page Specific Styles */

/* Subtle overlay like on index page */
.container {
    background: transparent !important;
    backdrop-filter: none;
    border-radius: 0;
    padding: 15px;
    box-shadow: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background: rgba(20, 20, 40, 0.85);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(20, 20, 40, 0.85);
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid rgba(138, 43, 226, 0.6);
    width: fit-content;
}

.back-link:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: #9b59b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.library-controls {
    background: rgba(20, 20, 40, 0.85);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(138, 43, 226, 0.5);
}

.search-bar {
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(20, 20, 40, 0.9);
    border: 3px solid rgba(138, 43, 226, 0.6);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-bar input:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.filter-group select {
    padding: 0.75rem;
    background: rgba(20, 20, 40, 0.9);
    border: 3px solid rgba(138, 43, 226, 0.6);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-group select:focus {
    outline: none;
    border-color: #9b59b6;
}

.filter-group select option {
    background: rgba(20, 20, 40, 0.98);
    color: #ffffff;
}

/* Brawler Grid */
.brawler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Brawler Card */
.brawler-card {
    background: rgba(20, 20, 40, 0.85);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.5s ease;
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.brawler-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
    border-color: #9b59b6;
}

.brawler-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.brawler-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brawler-card-content {
    padding: 1.5rem;
}

.brawler-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.brawler-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.brawler-rarity {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rarity-starting {
    background: linear-gradient(135deg, #95afc0, #778ca3);
    color: white;
}

.rarity-rare {
    background: linear-gradient(135deg, #4cd137, #44bd32);
    color: white;
}

.rarity-super-rare {
    background: linear-gradient(135deg, #00a8ff, #0097e6);
    color: white;
}

.rarity-epic {
    background: linear-gradient(135deg, #9c88ff, #8c7ae6);
    color: white;
}

.rarity-mythic {
    background: linear-gradient(135deg, #e056fd, #c44569);
    color: white;
}

.rarity-legendary {
    background: linear-gradient(135deg, #ffd32a, #f79f1f);
    color: white;
}

.rarity-ultralegendary {
    background: linear-gradient(135deg, #ff6b81, #ff4757);
    color: white;
}

.brawler-stats {
    display: grid;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.stat-value {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.brawler-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: rgba(20, 20, 40, 0.85);
    border-radius: 12px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    grid-column: 1 / -1;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .brawler-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        gap: 0.5rem;
    }
    
    .back-link {
        font-size: 0.875rem;
    }
}
