/* --- VARIABLES --- */
:root {
    --clr-panel: rgba(12, 26, 43, 0.7);
    --clr-panel-border: rgba(60, 100, 130, 0.4);
    --clr-text-light: #e2e8f0;
    --clr-text-medium: #94a3b8;
    --clr-cyan: #67e8f9;
    --clr-cyan-border: rgba(103, 232, 249, 0.2);
    --clr-pink: #f30dffed;
    --clr-blue: #00d8fac2;
    --font-heading: 'Roboto Condensed', sans-serif;
}

/* --- SHORTCODE STYLES --- */
.panel {
    background-color: var(--clr-panel);
    border: 1px solid var(--clr-panel-border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    font-family: var(--font-heading);
    color: var(--clr-text-light);
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}
.panel-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--clr-cyan-border);
    margin-bottom: 1.5rem;
}
.panel-header .font-heading {
    margin: 0;
    font-size: 1.5rem;
    color: var(--clr-text-light);
}

/* Item inside the list */
.special-event-item {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--clr-cyan-border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.event-item-title {
    font-family: var(--font-heading);
    color: var(--clr-cyan);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.event-item-details p {
    font-size: 1rem;
    color: var(--clr-text-light);
    line-height: 1.6;
    margin: 0.25rem 0;
}
.event-item-details p strong {
    color: var(--clr-text-medium);
    font-weight: 700;
}

/* Buttons and Forms */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    font-family: var(--font-heading);
}
.btn-primary {
    background: linear-gradient(90deg, var(--clr-pink), var(--clr-blue));
    color: white;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.btn-primary.disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.t2-confirmed-text {
    color: var(--clr-cyan);
    font-size: 1.1rem;
    padding: 1rem 0;
}

/* --- *** NEW: GRID CLASSES *** --- */
.t2-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.t2-grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* --- *** NEW: TEAM ROSTER SHORTCODE STYLES *** --- */
.t2-roster-container .panel-header {
    border-bottom: 1px solid var(--clr-pink);
    margin-bottom: 0; /* Reset margin */
}
.t2-roster-title {
    color: var(--clr-pink);
    text-shadow: 0 0 10px var(--clr-pink);
    margin-bottom: 0.25rem !important;
}
.t2-roster-subtitle {
    color: var(--clr-text-medium);
    margin: 0;
    font-size: 1.1rem;
}

/* --- NEW: Team Logistics Details --- */
.t2-team-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--clr-panel-border);
    margin-bottom: 1.5rem;
}
.t2-team-detail-item {
    background: rgba(0,0,0,0.15);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}
.t2-team-detail-item small {
    display: block;
    color: var(--clr-text-medium);
    font-size: 0.9em;
    margin-bottom: 0.25rem;
}
.t2-team-detail-item strong {
    color: var(--clr-text-light);
    font-size: 1.1em;
    line-height: 1.4;
}
.t2-detail-full-width {
    grid-column: 1 / -1; /* Span full width */
}
/* --- End Team Logistics --- */

.t2-full-roster {
    margin-bottom: 2rem;
}
.t2-full-roster h4,
.t2-lineup-column h4 {
    font-size: 1.25rem;
    color: var(--clr-cyan);
    margin-top: 0;
    border-bottom: 1px solid var(--clr-cyan-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.t2-roster-table {
    width: 100%;
    border-collapse: collapse;
}
.t2-roster-table th,
.t2-roster-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--clr-panel-border);
}
.t2-roster-table th {
    color: var(--clr-text-medium);
    font-size: 0.9em;
}
.t2-roster-table td strong {
    color: white;
}
.t2-player-positions {
    font-size: 0.9em;
    color: var(--clr-text-light);
}
.t2-status-label {
    font-weight: 700;
    font-size: 0.9em;
}
.t2-status-label.t2-status-paid {
    color: #4ade80; /* Green */
}
.t2-status-label.t2-status-pending,
.t2-status-label.t2-status-failed {
    color: #f87171; /* Red */
}
.t2-status-label.t2-status-refunded {
    color: var(--clr-text-medium);
}
.t2-pay-button {
    padding: 0.5rem 1rem;
    font-size: 0.9em;
}

.t2-lineup-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.t2-lineup-list,
.t2-not-in-lineup {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
.t2-lineup-list li,
.t2-not-in-lineup li {
    background: rgba(0,0,0,0.2);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    color: var(--clr-text-light);
}
.t2-lineup-list li strong,
.t2-not-in-lineup li strong {
    color: white;
    display: inline-block;
    margin-right: 0.5rem;
}
.t2-lineup-list li small,
.t2-not-in-lineup li small {
    display: block;
    color: var(--clr-text-medium);
    font-size: 0.9em;
    margin-top: 0.25rem;
}
.t2-not-in-lineup {
    opacity: 0.7;
    margin-top: 1rem;
}


/* --- *** NEW: MOBILE STYLES *** --- */
@media (max-width: 600px) {
    /* Stack the 2-column grid */
    .t2-grid-2-col {
        grid-template-columns: 1fr;
    }
    
    /* Stack the roster lineup grid */
    .t2-lineup-wrapper {
        grid-template-columns: 1fr;
    }

    /* Stack the 3-column grid */
    .t2-grid-3-col {
        grid-template-columns: 1fr;
    }

    /* NEW: Stack team details grid */
    .t2-team-details-grid {
        grid-template-columns: 1fr; /* Stack details */
    }

    /* Make buttons full-width */
    .t2-save-selections-button,
    .t2-share-button {
        width: 100%;
        box-sizing: border-box; /* Ensures padding doesn't break layout */
        text-align: center;
    }

    /* Adjust padding on the main panel */
    .panel {
        padding: 1rem;
    }
    
    .t2-tournament-selector {
        padding: 0 1rem 1.5rem !important;
    }
    
    .t2-select-prompt {
        padding: 1.5rem 1rem;
    }

    /* Adjust padding on the items */
    .special-event-item {
        padding: 1rem;
    }

    /* Tweak heading sizes */
    .event-item-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    /* Mobile styles for roster table */
    .t2-roster-table {
        display: block;
    }
    .t2-roster-table thead {
        display: none; /* Hide headers */
    }
    .t2-roster-table tbody,
    .t2-roster-table tr,
    .t2-roster-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .t2-roster-table tr {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--clr-panel-border);
    }
    .t2-roster-table td {
        border-bottom: none;
        padding: 0.25rem 0;
    }
    .t2-roster-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--clr-text-medium);
        font-size: 0.9em;
        margin-bottom: 0.25rem;
    }
    .t2-payment-status {
        padding-top: 0.75rem !important;
    }
    .t2-pay-button {
        width: 100%;
        text-align: center;
    }
}