/* Hero profiles CSS styles */
.heroes-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.hero-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #2c3e50;
    color: white;
}

.search-container {
    margin-bottom: 30px;
    text-align: center;
}

#hero-search {
    width: 100%;
    max-width: 500px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.hero-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-image {
    height: 200px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.hero-info {
    padding: 20px;
}

.hero-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.hero-years {
    color: #7f8c8d;
    margin: 0 0 5px 0;
    font-style: italic;
}

.hero-category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.hero-description {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #1a252f;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.hero-modal-header {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.hero-modal-image {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.hero-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-modal-title {
    flex: 1;
    min-width: 200px;
}

.hero-modal-title h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.hero-modal-body {
    padding: 20px;
}

.hero-modal-body h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.hero-modal-body p {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.error-message {
    text-align: center;
    padding: 30px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-modal-header {
        flex-direction: column;
    }
    
    .hero-modal-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .heroes-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 5px;
    }
}
