/* player_app.css */
/* Styles for the EA Player App, designed to work with Bootstrap */

/* --- General Body and Container Overrides (if needed) --- */
body {
    border-radius: 8px; /* Keep border-radius for main app container if desired */
}

/* --- Specific App Sections (Custom Layouts) --- */
/* These classes will primarily add custom spacing/visuals beyond Bootstrap's defaults */
.dashboard-grid .card-title,
.card .card-title {
    font-size: 1.25rem; /* Bootstrap's h3 might be larger */
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.dashboard-info p {
    margin-bottom: 0.5rem; /* Tighter spacing for info lines */
    font-size: 0.95em;
}

.waiver-warning,
.priority-message {
    background-color: #fff3cd; /* Bootstrap's alert-warning background */
    border: 1px solid #ffc107; /* Bootstrap's alert-warning border */
    padding: 1rem; /* Bootstrap's alert padding */
    border-radius: 0.25rem; /* Bootstrap's alert border-radius */
    color: #856404; /* Bootstrap's alert-warning text color */
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Specific styling for custom alert-like boxes */
.session-status {
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-weight: bold; /* Make the status stand out */
}

.session-status.active {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.session-status.inactive {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* Admin Games Page (admin_games.php) Custom Styles */
.admin-games-form-container label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}
/* Bootstrap's .form-control typically handles width and padding for inputs/textareas */
/* If you need specific widths beyond Bootstrap's default 100%, you'd add them here. */

/* Specific styling for image preview in admin games */
.game-poster-preview {
    max-width: 100px;
    height: auto;
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem; /* Add spacing below preview */
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Game Cards on Select Game page */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px; /* Bootstrap's .gap-3 might be similar */
    margin-top: 20px;
    margin-bottom: 20px;
}

.game-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease-in-out;
}

.game-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.game-card.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.game-card img {
    max-width: 100%;
    height: 120px; /* Fixed height for consistent card size */
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.game-card h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.game-card p {
    font-size: 0.85em;
    color: #555;
    line-height: 1.3;
}

.game-details {
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    display: none; /* Hidden by default */
    background-color: white;
}

.game-details.active {
    display: block; /* Shown when a game is selected */
}

/* Specific styling for forms within game details */
.game-details .form-group {
    margin-bottom: 0.75rem; /* Adjust spacing in nested forms */
}

.friend-list label {
    display: inline-block; /* Keep checkboxes and labels on same line */
    margin-right: 15px;
    margin-bottom: 5px;
    font-weight: normal;
}
.friend-list input[type="checkbox"] {
    margin-right: 5px;
}

.disabled-friend {
    color: #aaa;
    /* text-decoration: line-through; */ /* Optional, if you want to strike through */
}

.game-variant-radio {
    margin-right: 5px;
}
.game-variant-radio + label { /* Style label next to radio */
    margin-right: 15px;
}

/* Trailer Player */
.trailer-player {
    display: none; /* Hidden by default */
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #000; /* Black background for video player */
    padding: 10px;
    border-radius: 5px;
}

.trailer-player video {
    display: block;
    width: 100%;
    max-height: 400px; /* Limit height */
    margin-bottom: 10px;
}
/* The close button inside the trailer player can use Bootstrap's .btn .btn-secondary */