/* Стилі для блоку з темами дебатів */
.topic-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);
}

.topic-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);
}

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

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

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

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

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

.topic-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: 320px;
    height: 320px;
}

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

.topic-title {
    font-family: 'Tektur', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 8px 8px 0 8px;
    line-height: 1.1;
    max-height: 55px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.topic-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    max-height: 180px;
    overflow: hidden;
}

.topic-description {
    font-size: 11px;
    color: #ccc;
    margin: 0;
    line-height: 1.3;
    padding: 0;
    max-height: 130px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
}

.topic-category {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    color: #aaa;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
}

.topic-card .debate-button {
    display: inline-block;
    margin: 10px;
    margin-top: auto;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #666;
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Tektur', sans-serif;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    flex-shrink: 0;
}

.debate-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .topic-showcase {
        padding: 15px;
    }
    
    .topic-card {
        width: 160px;
        min-height: 280px;
        height: 280px;
    }
    
    .topic-title {
        font-size: 7px;
        max-height: 50px;
        padding: 6px 6px 0 6px;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
    
    .topic-content {
        max-height: 150px;
    }
    
    .topic-description {
        font-size: 8px;
        max-height: 110px;
        -webkit-line-clamp: 8;
        line-clamp: 8;
    }
    
    .topic-card .debate-button {
        padding: 5px 10px;
        font-size: 11px;
        margin: 8px;
    }
}
