/* ===== MAIN CONTAINER ===== */
.home-wrapper {
    padding: 60px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.section-header-content {
    flex: 1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 8px;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-size: 18px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    align-self: flex-start;
}

.section-link i {
    font-size: 12px;
}

.section-header-centered {
    text-align: center;
    align-items: center;
}

.section-header-centered .section-title {
    justify-content: center;
}

/* ===== TOURNAMENTS SECTION ===== */
.tournaments-section {
    margin-bottom: 80px;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.tournament-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.tournament-card {
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tournament-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.tournament-card-header {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.tournament-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.tournament-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.tournament-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    z-index: 2;
}

.tournament-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tournament-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 12px;
    line-height: 1.4;
}

.tournament-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.tournament-card-footer {
    padding: 0 20px 20px;
    flex-shrink: 0;
}

.tournament-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--panel-2);
    border-radius: var(--radius);
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--panel);
    color: var(--accent);
    border-radius: var(--radius);
    font-size: 14px;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.detail-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
}

.tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--panel-2);
    color: var(--txt);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius);
}

.meta-tag i {
    font-size: 11px;
    color: var(--muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: var(--panel);
    border-radius: var(--radius);
    border: 2px dashed var(--panel-2);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: var(--radius);
    font-size: 40px;
    margin-bottom: 24px;
}

.empty-state-text {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    .home-wrapper {
        padding: 80px 40px;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .section-title {
        font-size: 28px;
    }

    .tournaments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    .home-wrapper {
        padding: 100px 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .tournaments-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tournament-card-title {
        font-size: 20px;
    }

    .tournament-desc {
        font-size: 15px;
    }
}