/* ===== Participants Database Search Form Styling ===== */
.pdb-search-form {
    max-width: 600px;           /* width of the single search box */
    margin: 0 auto 20px;        /* centered horizontally */
}

.pdb-search-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #1e73be;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.pdb-search-form input[type="text"]:focus {
    border-color: #155a8a;
    box-shadow: 0 0 8px rgba(21,90,138,0.3);
}

/* ===== Player List Table Styling ===== */
.pdb-list table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}

.pdb-list th {
    background: #e8f0fe;
    text-transform: uppercase;
    padding: 12px;
    text-align: center;
    cursor: pointer; /* shows sortable header */
}

.pdb-list td {
    padding: 14px;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    color: #333;
}

/* Portrait player photo */
.pdb-list img {
    display: inline-block;
    width: 90%;           /* portrait width */
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #d6e2ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.25s ease;
}

.pdb-list img:hover {
    transform: scale(1.05);
}

/* Bold player names */
.pdb-list td:nth-child(2) {
    font-weight: 700;
    color: #111;
}

/* Row hover highlight */
.pdb-list tr:hover {
    background-color: #f9f9ff;
    transition: 0.3s ease;
}

/* Alternate row background */
.pdb-list tr:nth-child(even) {
    background-color: #fafafa;
}

/* Responsive for mobile */
@media screen and (max-width: 768px) {
    .pdb-list table, .pdb-list td, .pdb-list th {
        display: block;
    }
    .pdb-list td img {
        width: 100%;
        height: auto;
    }
}
