/* Characters page specific styles */
.container {
    margin-left: 260px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    background-color: #f0f2f5;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.character-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-image-container {
    width: 100%;
    padding-bottom: 100%; /* Makes it square */
    position: relative;
    overflow: hidden;
}

.character-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
}

.character-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.character-subtitle {
    color: #ff4757;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.character-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.achievements {
    margin-top: 1rem;
}

.achievements h4 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements li {
    color: #666;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
}

.achievements li::before {
    content: "•";
    color: #ff4757;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.expand-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #ff4757;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.2);
}

.expand-btn:hover {
    transform: scale(1.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        margin-left: 0;
        padding: 15px;
    }
    .characters-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Dark mode styles */
body.dark .character-card {
    background: #242526;
}

body.dark .character-name {
    color: #fff;
}

body.dark .character-subtitle {
    color: #ff7675;
}

body.dark .character-description {
    color: #ddd;
}

body.dark .achievements {
    background: #18191a;
}

body.dark .achievements h4 {
    color: #fff;
}

body.dark .achievements li {
    color: #ddd;
}

body.dark .achievements li::before {
    color: #ff7675;
}
