/* Стилі для блоку з персонажами */
.character-showcase {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.character-showcase h2 {
    font-family: 'Tektur', sans-serif;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.character-showcase-description {
    color: #aaa;
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.character-cards {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #666 #222;
}

.character-cards::-webkit-scrollbar {
    height: 6px;
}

.character-cards::-webkit-scrollbar-track {
    background: #222;
    border-radius: 3px;
}

.character-cards::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 3px;
}

.character-card {
    flex: 0 0 auto;
    width: 200px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    height: 340px;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-color: #888;
}

.character-showcase .character-card .character-image {
    width: 100%;
    height: 160px !important;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-showcase .character-card .character-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

.character-showcase .character-card .character-info {
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

.character-showcase .character-card .character-name {
    font-family: 'Tektur', sans-serif;
    font-size: 14px !important;
    margin: 0 0 8px;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    line-height: 1.2;
    font-weight: 600;
    width: 100%;
}

.character-showcase .character-card .character-description {
    font-size: 9px !important;
    color: #aaa;
    margin: 0 0 10px;
    padding: 0 !important;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    background: none !important;
    border: none !important;
    border-left: none !important;
}

.character-showcase .character-card .debate-button {
    display: block;
    width: fit-content;
    margin: 8px auto 0;
    padding: 7px 14px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 2px solid #e74c3c;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Tektur', sans-serif;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.character-card .debate-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .character-showcase {
        padding: 15px;
    }
    
    .character-card {
        width: 160px;
        min-height: 280px;
        height: auto;
    }
    
    .character-showcase .character-card .character-image {
        height: 120px !important;
    }
    
    .character-name {
        font-size: 16px;
    }
    
    .character-description {
        font-size: 12px;
    }
    
    .debate-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}
