/* tournament_detail.css */

.page-grid {
    display: grid;
    grid-template-rows: auto auto auto; /* Three rows: title, details, back link */
    gap: 1.5rem;
    align-items: start;
}

.tournament-details {
    background: #F6F0F0;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tournament-details p {
    margin: 0 0 0.75rem 0; /* Spacing between detail lines */
    color: #555;
}

.match-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    text-align: center;
}

.match-block {
    background-color: #EFE9D5; 
    border: 2px solid #ddd;
    padding: 5px;
    margin-bottom: 10px;
    min-width: 140px;
    box-sizing: border-box;
}

.match-block a {
    display: block;
    margin-bottom: 5px;
}

.description {
  margin-top: 1rem;
    font-size: 1.1em;
    line-height: 1.5;
}

.matches-link-wrapper {
    margin-top: 1.5rem; /* Space above the link */
    text-align: center; /* Center the link within its wrapper*/
}

.matches-link {
    display: inline-block; /* Allows padding and margins */
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out;
}

.matches-link:hover {
    background-color: #0056b3;
}
.back-link {
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out;
    text-align: center;
}

.back-link:hover {
    background-color: #0056b3;
}

.players-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 1px;
}

.players-section h3 {
    text-align: center;
    width: 100%;
}


.players-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    width: 100%;
}

.player-card {
    display: flex;
    flex-direction: column;
    background: #F2E2B1;
    align-items: center;
    text-align: center;
    width: auto;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.6rem;
    border-bottom: 2px solid #BDB395;
}

.player-card .profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5px;
}

.player-card p {
    margin: 1px 0;
    font-weight: bold;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.badge-icon {
    width: 30px;
    height: 30px;
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-image {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
    margin-bottom: 1px;
  }

.tournament-links-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}

.tournament-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    background-color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    flex-grow: 1;
    margin: 0 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tournament-link:hover {
    background-color: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.tournament-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Responsive design */
@media (max-width: 768px) {
    .players-list {
        gap: 5px;
    }



    .player-card .profile-image {
        width: 120px;
        height: 120px;
    }
}