/* Golf Tournament Signup – Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.gts-tournament-card,
.gts-tournament-list {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 640px;
}

/* ── Card ── */
.gts-tournament-card {
    background: #fff;
    border: 1.5px solid #cde3d5;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(30,90,60,.08);
}

/* ── Header ── */
.gts-tournament-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.gts-tournament-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a2a;
    margin: 0;
}
.gts-status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.gts-status-open   { background: #d5f0df; color: #1a5535; }
.gts-status-closed { background: #fde8e8; color: #7a1a1a; }

/* ── Meta ── */
.gts-tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: #f4fbf6;
    border-radius: 10px;
    font-size: 14px;
    color: #2d5040;
}
.gts-meta-item { display: flex; align-items: center; gap: 6px; }
.gts-meta-icon { font-size: 16px; }

/* ── Description ── */
.gts-tournament-description {
    font-size: 15px;
    color: #4a6a5a;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ── Action area ── */
.gts-action-area { margin-top: 20px; border-top: 1px solid #e5ede8; padding-top: 20px; }

/* ── Signup form ── */
.gts-signup-form { display: flex; flex-direction: column; gap: 14px; }
.gts-field { display: flex; flex-direction: column; gap: 5px; }
.gts-field label { font-weight: 600; font-size: 13px; color: #2d5040; }
.gts-field .optional { font-weight: 400; color: #888; }
.gts-field input {
    border: 1.5px solid #cde3d5;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 14px;
    font-family: inherit;
}
.gts-field input:focus { border-color: #2d7a4f; outline: none; box-shadow: 0 0 0 3px rgba(45,122,79,.12); }
.gts-input-wide { width: 100%; max-width: 400px; }

/* ── Buttons ── */
.gts-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    text-decoration: none;
}
.gts-btn-primary { background: #2d7a4f; color: #fff; border-color: #2d7a4f; }
.gts-btn-primary:hover { background: #1e5e3a; border-color: #1e5e3a; color: #fff; }
.gts-btn-outline { background: #fff; color: #c0392b; border-color: #e8a0a0; }
.gts-btn-outline:hover { background: #ffeaea; }
.gts-btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }

/* ── Status messages ── */
.gts-notice {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
}
.gts-notice-success { background: #d5f0df; color: #1a5535; border: 1px solid #a8d8b4; }
.gts-notice-info    { background: #e8f0ff; color: #1a3a7a; border: 1px solid #b0c8f0; }
.gts-registered-msg { color: #1a5535; font-weight: 600; margin-bottom: 10px; }
.gts-closed-msg, .gts-full-msg { color: #888; font-style: italic; }
.gts-login-prompt { text-align: center; color: #4a6a5a; }
.gts-login-prompt a { color: #2d7a4f; font-weight: 600; }

/* ── List view ── */
.gts-tournament-list { display: flex; flex-direction: column; gap: 12px; }
.gts-list-item {
    background: #fff;
    border: 1.5px solid #cde3d5;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(30,90,60,.06);
    transition: box-shadow .2s;
}
.gts-list-item:hover { box-shadow: 0 4px 16px rgba(30,90,60,.12); }
.gts-list-item--registered { border-color: #a8d8b4; background: #f7fdf9; }
.gts-list-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #1a3a2a; }
.gts-list-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #4a6a5a; }
.gts-list-action { flex-shrink: 0; }
.gts-badge-registered { background: #d5f0df; color: #1a5535; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.gts-badge-full       { background: #ffe0cc; color: #8b3000; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.gts-empty { color: #888; font-style: italic; }

/* ── Deadline meta ── */
.gts-meta-deadline       { color: #2d5040; }
.gts-meta-deadline-passed { color: #c0392b; font-weight: 600; }
.gts-deadline-msg {
    color: #c0392b;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    background: #fdecea;
    border-radius: 8px;
    border: 1px solid #f5c0bb;
}

/* ── Deelnemerslijst ── */
.gts-players-section {
    margin-top: 28px;
    border-top: 1.5px solid #e5ede8;
    padding-top: 22px;
}
.gts-players-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a2a;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gts-players-count {
    background: #d5f0df;
    color: #1a5535;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.gts-players-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gts-player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f9fdfb;
    border: 1px solid #e5ede8;
    border-radius: 8px;
    font-size: 14px;
    transition: background .15s;
}
.gts-player-item:hover { background: #f0faf4; }
.gts-player-me {
    background: #edfaf2;
    border-color: #a8d8b4;
    font-weight: 600;
}
.gts-player-nr {
    width: 24px;
    height: 24px;
    background: #2d7a4f;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gts-player-me .gts-player-nr { background: #1a5535; }
.gts-player-name { flex: 1; color: #1a3a2a; }
.gts-you-tag {
    display: inline-block;
    margin-left: 6px;
    background: #2d7a4f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    vertical-align: middle;
}
.gts-player-handicap {
    font-size: 12px;
    color: #6a8a7a;
    background: #f0f7f3;
    padding: 2px 8px;
    border-radius: 6px;
}

/* ── 70/30 Layout ── */
.gts-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 0 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 960px;
}
.gts-layout .gts-notice {
    grid-column: 1 / -1;
}

/* ── Linkerkolom (70%) ── */
.gts-col-main {
    background: #fff;
    border: 1.5px solid #cde3d5;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 4px 20px rgba(30,90,60,.07);
}

/* ── Rechterkolom (30%) ── */
.gts-col-side {
    background: #fff;
    border: 1.5px solid #cde3d5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30,90,60,.07);
    align-self: start;
}
.gts-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #1a3a2a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.gts-side-header .gts-players-count {
    background: rgba(255,255,255,.2);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.gts-side-empty {
    padding: 16px 18px;
    color: #999;
    font-style: italic;
    font-size: 13px;
    margin: 0;
}

/* ── Deelnemerstabel ── */
.gts-side-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.gts-side-table thead th {
    background: #f0faf4;
    color: #2d5040;
    font-weight: 700;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1.5px solid #cde3d5;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.gts-side-table tbody tr {
    border-bottom: 1px solid #edf5f0;
    transition: background .15s;
}
.gts-side-table tbody tr:last-child { border-bottom: none; }
.gts-side-table tbody tr:hover { background: #f7fdf9; }
.gts-row-me {
    background: #edfaf2 !important;
    font-weight: 600;
}
.gts-td-nr {
    padding: 9px 8px 9px 14px;
    color: #2d7a4f;
    font-weight: 700;
    font-size: 12px;
    width: 28px;
}
.gts-td-name {
    padding: 9px 8px;
    color: #1a3a2a;
}
.gts-td-hcp {
    padding: 9px 14px 9px 4px;
    color: #888;
    font-size: 12px;
    white-space: nowrap;
}

/* ── Mobiel: onder elkaar ── */
@media (max-width: 680px) {
    .gts-layout {
        grid-template-columns: 1fr;
    }
    .gts-col-side {
        margin-top: 0;
    }
}
