.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.tournament-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid #e8ecf0;
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tournament-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tournament-title {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
}

.tournament-title i {
    color: #4299e1;
    margin-right: 0.5rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.status-badge.completed {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.tournament-info {
    flex: 1;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #4a5568;
}

.info-item i {
    width: 20px;
    color: #a0aec0;
    margin-right: 0.75rem;
}

.champion-info {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    color: #744210 !important;
    font-weight: 600;
}

.champion-info i {
    color: #d69e2e !important;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-outline-primary {
    background: transparent;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.btn-outline-primary:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Team Battle specific styles */
.team-battle-card {
    border: 2px solid #48bb78;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.team-battle-card:hover {
    box-shadow: 0 15px 35px rgba(72, 187, 120, 0.25);
}

.team-battle-card .card-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.team-battle-card .tournament-title {
    color: white;
}

.team-battle-card .tournament-title i {
    color: #c6f6d5;
}

.team-battle-card .status-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-success {
    background: transparent;
    color: #48bb78;
    border: 2px solid #48bb78;
}

.btn-outline-success:hover {
    background: #48bb78;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
}

/* Tabs styling */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.nav-tabs .nav-link {
    border: none;
    color: #718096;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #4299e1;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
    border-bottom: 3px solid #667eea;
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

.nav-tabs .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .tournament-card {
        background: #2d3748;
        border-color: #4a5568;
    }

    .tournament-card .card-header {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-bottom-color: #4a5568;
    }

    .tournament-title {
        color: #e2e8f0;
    }

    .info-item {
        color: #cbd5e0;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .card-actions {
        flex-direction: column;
    }

    .btn {
        margin-bottom: 0.5rem;
    }

    .tournament-card .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
