/* Search and Filter Bar Styles */
.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.search-input {
    padding-left: 40px;
    background-color: #1e2139;
    border: none;
    color: #ffffff;
}

.search-input::placeholder {
    color: #6c757d;
}

.btn-dark-primary {
    background-color: #1e2139;
    color: #ffffff;
    border: none;
}

.btn-dark-primary:hover {
    background-color: #2c3142;
    color: var(--accent-blue);
}

/* Tournament Tabs Styles */
.tournament-tabs-container {
    background-color: #16213e;
    border-radius: 10px;
}

.tournament-tabs-header {
    border-bottom: 1px solid #2c3142;
}

.tournament-tabs .nav-link {
    color: #b6b6b6;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tournament-tabs .nav-link.active {
    color: var(--accent-blue);
    background-color: #1e2139;
}

.tournament-tabs .nav-link:hover {
    color: var(--accent-blue);
}

.tournament-tabs .badge {
    background-color: var(--accent-blue);
    color: #16213e;
    margin-left: 0.5rem;
}

/* Featured Tournament Styles */
.featured-tournament {
    background-color: #1e2139;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-tournament-image {
    position: relative;
    height: 100%;
}

.featured-tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-blue);
    color: #16213e;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-tournament-content {
    padding: 2rem;
}

.tournament-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tournament-tag.cricket {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.tournament-tag.football {
    background-color: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.tournament-tag.tennis {
    background-color: rgba(69, 183, 209, 0.2);
    color: #45b7d1;
}

.featured-tournament-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.prize-pool {
    text-align: right;
}

.prize-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.prize-label {
    font-size: 0.875rem;
    color: #b6b6b6;
}

.tournament-description {
    color: #b6b6b6;
    margin-bottom: 1rem;
}

.tournament-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    color: #b6b6b6;
}

.detail-item i {
    margin-right: 0.5rem;
    color: var(--accent-blue);
}

.tournament-progress {
    background-color: #2c3142;
    height: 10px;
}

.tournament-progress .progress-bar {
    background-color: var(--accent-blue);
}

.avatar-group {
    display: flex;
    margin-right: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1e2139;
    margin-right: -15px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-avatar {
    background-color: #2c3142;
    color: #b6b6b6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

/* Tournament Card Styles */
.tournament-card {
    background-color: #1e2139;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tournament-card-header {
    position: relative;
}

.tournament-card-header img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.tournament-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tournament-status.active {
    background-color: rgba(0, 255, 136, 0.2);
    color: var(--accent-blue);
}

.tournament-status.upcoming {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.tournament-status.completed {
    background-color: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
}

.tournament-card-body {
    padding: 1.5rem;
}

.tournament-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.tournament-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #b6b6b6;
}

.meta-item i {
    margin-right: 0.5rem;
    color: var(--accent-blue);
}

.tournament-details .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #b6b6b6;
}

.tournament-card-footer {
    padding: 1rem;
    background-color: #2c3142;
}

.countdown-timer {
    gap: 1rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2c3142;
    padding: 0.5rem;
    border-radius: 10px;
    min-width: 70px;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.countdown-label {
    font-size: 0.75rem;
    color: #b6b6b6;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .featured-tournament {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stat-box {
        min-width: 120px;
    }
}
