/* -------------------- */
/* --- Turnuva Geçmişi Sayfası --- */
/* -------------------- */
.tournaments-history-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/tournaments-history-bg.jpg');
    background-size: cover;
    background-position: center;
}

.tournaments-history-content {
    padding: 0 15px;
}

.tournaments-history-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.section-header p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Filtre kontrolleri */
.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-form {
    display: flex;
    align-items: center;
}

.filter-form .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form label {
    font-weight: 400;
    color: var(--text-dark);
}

.filter-form select {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    min-width: 120px;
}

/* Turnuva geçmişi kartları */
.tournaments-history-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.history-card {
    background-color: white;
    border-radius: var(--border-radius-large);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Turnuva tipine göre renk sınıfları */
.history-card.daily-tournament .history-card-header {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.history-card.weekly-tournament .history-card-header {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.history-card.monthly-tournament .history-card-header {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
}

.history-card-header {
    padding: 20px;
    color: white;
    position: relative;
}

.tournament-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 400;
}

.history-card-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.tournament-date {
    font-size: 14px;
    opacity: 0.9;
}

.history-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-weight: 400;
    color: var(--text-dark);
}

.result-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Sıralamaya göre renk sınıfları */
.rank-1 {
    color: #f1c40f !important;
}

.rank-2 {
    color: #bdc3c7 !important;
}

.rank-3 {
    color: #e67e22 !important;
}

.result-value.has-prize {
    color: var(--success-color) !important;
}

.result-value.has-prize i {
    margin-right: 5px;
}

/* Daha fazla göster butonu */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.load-more-container .btn {
    padding: 10px 30px;
}

/* Veri yoksa gösterilecek mesaj */
.no-data-message {
    background-color: white;
    border-radius: var(--border-radius-large);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.message-content {
    max-width: 500px;
    margin: 0 auto;
}

.message-content i {
    font-size: 48px;
    color: var(--primary-color-light);
    margin-bottom: 15px;
}

.message-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.message-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.message-content .btn {
    padding: 10px 25px;
}

/* Aktif Turnuvalar Bölümü */
.active-tournaments-section {
    margin-bottom: 50px;
}

.active-tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.active-tournament-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius-large);
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.tournament-info {
    flex: 1;
}

.tournament-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0;
    color: var(--text-dark);
}

.tournament-time-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 14px;
}

.tournament-time-left i {
    color: var(--danger-color-light);
}

.progress-bar {
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
    width: 100%;
    max-width: 400px;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-light));
}

.tournament-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 400;
    color: white;
    margin-bottom: 5px;
}

.tournament-badge.daily {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.tournament-badge.weekly {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.tournament-badge.monthly {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
}

.tournament-prize {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.prize-label {
    font-size: 13px;
    color: var(--text-muted);
}

.prize-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 10px;
}

.tournament-prize .btn {
    padding: 8px 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .tournaments-history-cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: initial;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tournaments-history-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .active-tournament-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .tournament-prize {
        align-items: center;
        width: 100%;
    }
    
    .tournament-prize .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .tournaments-history-cards {
        grid-template-columns: 1fr;
    }
    
    .filter-form .form-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-form select {
        width: 100%;
    }
}

section {
    margin-top: 20px;
}
.stats-grid {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    align-items: stretch;
}
.stat-card {
    text-align: center;
    width: 200px;
    background-color: var(--dark-bg);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    color: var(--text-white);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}
.stat-icon {
    font-size: 22px;
    margin-bottom: 10px;
}
.stat-number {
    color: var(--primary-yellow);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.4px;
    text-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px;
}
.tournament-type-badge {
    padding: 40px 25px;
    border-radius: 20px 200px 200px 20px;
    height: 100px;
    width: 100px;
    margin-right: 5%;
    color: white;
    text-align: center;
}
.tournament-type-badge.daily {
    background: linear-gradient(45deg, #3498db, #2980b9);
	position: unset !important;
}
.tournament-type-badge.weekly {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
	position: unset !important;
}
.tournament-type-badge.monthly {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
	position: unset !important;
}

.tournament-stats {
    padding: 5px;
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, #ffc107, #1a1a2e) border-box;
    border-radius: 0 50em 0 0;
    border-top: 4px solid transparent;
}

.tournament-actions > .btn-view {
    background-color: var(--primary-yellow);
    color: var(--text-dark-on-yellow);
    border: none;
    padding: 12px 25px;
    /* font-size: 1.1em; */
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all .5s;
}
.filters-container {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
}

body > div.page-container > main > section.filters-section > div > div:nth-child(1) > label {
    padding: 0 10px;
    margin-top: 5px;
}
select#tournamentTypeFilter {
    margin-left: 10px;
    padding: 0 10px;
}
body > div.page-container > main > section.filters-section > div > div:nth-child(2) > label {
    padding: 0 10px;
    margin-top: 5px;
}
select#statusFilter {
	margin-left: 10px;
    padding: 0 10px;
}



body > div.page-container > main > section.history-section > div > table > thead > tr > th {
    background: #ced4da;
    border-bottom: 2px solid;
}
body > div.page-container > main > section.history-section > div > table > tbody > tr:nth-child(even) {
    background: #e9ecef;
}

.active-tournament-card {
    margin-bottom: 3%;
}
.tournament-badge.daily{
	position: unset !important;
}
.tournament-badge.weekly{
	position: unset !important;
}
.tournament-badge.monthly{
	position: unset !important;
}
/* RESPONSIVE */

@media screen and (max-width: 768px) {

.history-table-container {
    overflow-x: auto;
}
.stat-card {
    padding: 10px 15px;
    width: 20%;
}
.tournament-type-badge {
    padding: 25px 25px;
    border-radius: 20px 20px 200px 200px;
    height: 75px;
    width: 100px;
    margin-right: 0%;
}
.current-rank {
    margin-left: 40%;
}
}



