/* Основные стили */
.site-tournament {
    font-family: 'Georgia', 'Times New Roman', serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f1e5;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.1);
}

.site-tournament h3 {
    color: #5a3921;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b4513;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Список турниров */
.tournament-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Карточка турнира */
.tournament-card {
    background: linear-gradient(135deg, #f0d9b5 0%, #e6c9a0 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #8b4513;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.tournament-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #8b4513;
}

.tournament-name {
    color: #5a3921;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 15px 15px 5px;
    text-align: center;
    border-bottom: 1px dashed #8b4513;
}

.tournament-desc {
    color: #333;
    padding: 10px 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 60px;
}

.tournament-meta {
    padding: 10px 15px;
    background-color: rgba(139, 69, 19, 0.1);
    margin: 10px;
    border-radius: 5px;
    border-left: 3px solid #8b4513;
}

.tournament-meta p {
    margin: 5px 0;
    color: #5a3921;
    font-size: 0.9rem;
}

/* Кнопки действий */
.tournament-actions {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e0d0b8;
}

.btn {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: #8b4513;
    color: white;
}

.btn-primary:hover {
    background-color: #6b3100;
    transform: scale(1.05);
}

.btn-success {
    background-color: #5a8b47;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

/* Сообщение об отсутствии турниров */
.no-tournaments {
    text-align: center;
    padding: 40px;
    background-color: rgba(139, 69, 19, 0.05);
    border-radius: 10px;
    margin: 30px 0;
    border: 1px dashed #8b4513;
}

.no-tournaments h5 {
    color: #8b4513;
    font-size: 1.2rem;
}

/* Кнопка "Назад" */
.back-button-container {
    text-align: center;
    margin-top: 40px;
}

.back-link {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid #8b4513;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.back-link:hover {
    background-color: #8b4513;
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tournament-list {
        grid-template-columns: 1fr;
    }

    .site-tournament {
        padding: 15px;
    }

    .site-tournament h3 {
        font-size: 1.6rem;
    }
}