

/* TOURNAMENT SECTION */
.tournament {
    max-width: 1100px;
    margin: 10px auto;
    padding: 20px;
}

.tournament h1 {
    background-color: #00b3ff00;
    font-size: 35px;
    margin: 10px;
    color: #ffffff;
    padding-left: 10px;
}

/* DETAILS GRID */
.details-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.image-box img{
    background: #00000000;
    height: 200px;
    width: 300px;
    border-radius: 10px 10px 0px 0px;
}


.detail {
    background: #181B21;
    padding: 20px;
    border-radius: 0px 0px 10px 10px;
}

.detail span {
    font-size: 13px;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
}

.detail p {
    font-size: 18px;
    font-weight: bold;
}

.description{
    height: 45px;
}

#bar {
    display: flex;
    flex-direction: row;
        justify-content: space-between;
    color: #6c6e73;
    font-size: 10px;
    margin: 10px 0px 10px 0px;
    padding: 5px;
    border-top: 2px #3b3f46 solid;
    border-bottom: 2px #3b3f46 solid;

}

#time {
    font-size: 13px;
}

#status{
    margin-left: 40px;
    font-size: 13px;
    color:#59E476
}

.upper-card {
    display: flex;
    justify-content: space-between;
    align-items: center;   
    gap: 10px;             
}

.bottom-card {
    display: flex;
    justify-content: space-between;
    align-items: center;   
    gap: 10px;            
}

.idp {
    border: 1px solid rgb(59, 59, 59);
    border-radius: 10px;
    width: 160px;
    height: 50px;

    display: flex;    
    flex-direction: column;     
    align-items: center;
    justify-content: center;

    padding: 5px;
    box-sizing: border-box;

    overflow: hidden;         
    text-align: center;
    font-size: clamp(10px, 2vw, 14px);

}


/* JOIN BUTTON */
.join-btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    background: #EFEFEF;
    color: #131313;
    text-decoration: none;
    transition: 0.3s;
}

.detail button {
  margin-top: 10px;
  width: 100%;
}


/* RULES */
.rules {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.rules h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #38bdf8;
}

.rules ul {
    padding-left: 20px;
}

.rules ul li {
    margin-bottom: 12px;
    color: #e5e7eb;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .tournament h1 {
        font-size: 30px;
    }
}

/* MULTI TOURNAMENT LIST */
.tournament-list {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* TOURNAMENT CARD */
.tournament-card {
    background: #181B21;
    height: 500px;
    width: 300px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tournament-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}

.tournament h2 {
    background-color: #ffffff00;
    font-size: 22px;
    height: 50px;
    width: 240px;
    color: #EDF0F2;
}

/* CARD DETAILS */
.tournament-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.tournament-info div {
    font-size: 14px;
    color: #cbd5f5;
}

.tournament-info span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

/* JOIN BUTTON STATES */
.join-btn.disabled {
    background: #1e293b;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.join-btn.login-required {
    background: #EFEFEF;
    color: #131313;
}

/* ===== PAST SECTION CONTAINER ===== */
#pastTournamentSection {
    padding: 20px;
    
   
    display: flex;
    flex-direction: column;
}

/* ===== HEADING ===== */
#pastTournamenth2 {
    margin-left: 40px;
    color: #fff;
    font-size: 30px;
    margin-bottom: 20px;
    position: relative;
}

/* Optional underline accent */
#pastTournamenth2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60px;
    height: 3px;
    background: #00ffcc;
    border-radius: 10px;
}

/* ===== TOURNAMENT LIST ===== */
#pastTournamentList {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    background: #0d0d0d;
    border-radius: 16px;
    border: 1px solid #222;
    padding-bottom: 50px;
}

#pastTournamentSection .bottom-card,
#pastTournamentSection .join-btn {
    display: none !important;
}

#pastTournamentSection .tournament-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}