/**
 * Main Stylesheet for BGG Signup System
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector */
.language-selector select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #34495e;
    background: white;
    cursor: pointer;
}

/* User Menu */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-name {
    color: white;
    padding: 8px 15px;
    background: #34495e;
    border-radius: 4px;
    display: inline-block;
}

.user-name:after {
    content: ' ▼';
    font-size: 10px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 150px;
    margin-top: 5px;
    display: none;
    z-index: 1000;
}

.user-menu.active .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    text-decoration: none;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-login {
    background: #3498db;
}

.btn-login:hover {
    background: #2980b9;
}

.btn-register {
    background: #27ae60;
}

.btn-register:hover {
    background: #229954;
}

/* Main Content */
.site-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
}

.powered-by {
    font-size: 12px;
    opacity: 0.8;
}

.powered-by a {
    color: #3498db;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* ===== MODAL FORMS (Default/Light Theme) ===== */

/* Vote Form */
.modal-content .vote-form-container {
    padding: 20px;
}

.modal-content .vote-form-container h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 20px;
}

.modal-content .vote-info {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Comment Form */
.modal-content .add-comment-form {
    max-width: 600px;
}

.modal-content .add-comment-form h2 {
    color: #2c3e50;
}

.modal-content .game-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.modal-content .game-info h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.modal-content .game-info p {
    margin: 0;
    color: #7f8c8d;
}

.modal-content .existing-comments {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.modal-content .existing-comments h3 {
    margin-top: 0;
    font-size: 16px;
    color: #2c3e50;
}

.modal-content .comment-item {
    padding: 10px;
    border-left: 3px solid #ecf0f1;
    margin-bottom: 10px;
    background: white;
}

.modal-content .comment-author {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #333;
}

.modal-content .comment-date {
    font-size: 12px;
    color: #7f8c8d;
}

.modal-content .comment-text {
    color: #555;
    font-size: 14px;
}

/* Poll Form */
.modal-content .create-poll-form {
    max-width: 700px;
}

.modal-content .poll-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
    color: #2c3e50;
}

/* Generic Form Elements */
.modal-content .form-step {
    margin-bottom: 20px;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label,
.modal-content .modal-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.modal-content .required {
    color: #e74c3c;
}

.modal-content .form-control,
.modal-content .modal-form .form-control,
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="time"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.modal-content .form-control:focus,
.modal-content .modal-form .form-control:focus,
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-content .form-control[readonly],
.modal-content .modal-form .form-control[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.modal-content .modal-form small,
.modal-content small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.modal-content .form-actions,
.modal-content .modal-form .form-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-content .btn,
.modal-content .modal-form .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}

.modal-content .btn-primary,
.modal-content .modal-form .btn-primary {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content .btn-primary:hover,
.modal-content .modal-form .btn-primary:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-content .btn-primary:disabled,
.modal-content .modal-form .btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modal-content .btn-secondary,
.modal-content .modal-form .btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content .btn-secondary:hover,
.modal-content .modal-form .btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-content .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-content .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-content .form-col {
    flex: 1;
    margin-bottom: 0;
}

/* Game Item */
.gameitem {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.gameitem.inactive {
    opacity: 0.6;
    background: #f0f0f0;
}

.gameitem .table {
    display: grid;
    grid-template-columns: 80px 1fr 120px 80px 80px 150px 150px 150px;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

/* Game/Poll Number Badge */
.game-number-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.poll-container {
    position: relative;
}

.poll-container .game-number-badge {
    top: 10px;
    left: 10px;
}

/* Game Thumbnail */
.game_thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail {
    font-size: 40px;
    color: #bdc3c7;
}

/* Game Name */
.game_name {
    font-size: 20px;
    font-weight: bold;
}

.game_name a {
    color: #2c3e50;
}

/* Game Weight/Difficulty */
.game_weight {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.weight-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.weight-fill {
    height: 100%;
    transition: width 0.3s;
}

.weight-value {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
}

/* Game Info Fields */
.game_players, .game_start, .game_who, .game_language, .game_rules {
    font-size: 13px;
    color: #555;
}

.game_start {
    font-weight: bold;
    font-size: 16px;
}

/* Initial Comment */
.game_initial_comment {
    grid-column: 1 / -1;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    margin-top: 10px;
    font-style: italic;
}

/* Comment Section */
.game_comment {
    grid-column: 1 / -1;
}

.add_comment a {
    color: #3498db;
    font-size: 13px;
}

/* Players List */
.players {
    list-style: none;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.player-slot {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.player-slot:last-child {
    border-bottom: none;
}

.player-slot.empty {
    color: #7f8c8d;
}

.player-slot.reserve {
    background: #fff3cd;
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
}

.reserve-header {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ecf0f1;
}

.numer {
    font-weight: bold;
    color: #7f8c8d;
}

.name {
    color: #2c3e50;
    font-weight: bold;
}

.rules {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

.player_comment {
    font-size: 12px;
    color: #555;
}

/* Action Buttons */
.delete_player, .delete_game, .restore_game {
    margin-left: 10px;
}

.delete_player a, .delete_link, .edit_link, .resign-btn,
.join-game-btn, .join-reserve-btn, .add-comment-btn {
    color: #3498db;
    font-size: 12px;
    cursor: pointer;
}

.delete_link {
    color: #e74c3c;
    margin-right: 10px;
}

.delete_game, .restore_game {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    text-align: right;
}

.restore-game-btn, .fully-delete-btn {
    padding: 5px 15px;
    border-radius: 4px;
    color: white;
    display: inline-block;
    margin-left: 10px;
}

.restore-game-btn {
    background: #27ae60;
}

.fully-delete-btn {
    background: #e74c3c;
}

.add_reserve a {
    display: inline-block;
    padding: 8px 15px;
    background: #f39c12;
    color: white;
    border-radius: 4px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gameitem .table {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }
    
    .game_weight, .game_players, .game_start, .game_who,
    .game_language, .game_rules {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .gameitem .table {
        grid-template-columns: 1fr;
    }
    
    .game_thumbnail {
        width: 100%;
        height: 150px;
    }
}

/* Event Page Styles */
.event-container {
    max-width: 1200px;
    margin: 0 auto;
}

.no-event-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
}

.no-event-message h2 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Event Header */
.event-header {
    text-align: center;
    margin-bottom: 30px;
}

.event-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.homepage-message {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    margin: 20px 0;
}

/* Day Tabs */
.day-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 3px solid #ecf0f1;
}

.day-tab {
    padding: 18px 36px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}

.day-tab:hover {
    background: #e9ecef;
    text-decoration: none;
    transform: translateY(-2px);
}

.day-tab.active {
    background: #3498db;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.day-date {
    font-size: 15px;
    opacity: 0.85;
    margin-top: 5px;
    font-weight: normal;
}

.single-day-info {
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid #e9ecef;
}

.day-time {
    margin-left: 15px;
    color: #7f8c8d;
}

/* Tables Container */
.tables-container {
    margin-bottom: 40px;
}

.table-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table-header {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.games-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-games {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Add Game/Table Buttons */
.add-game-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.btn-add-game, .btn-add-table, .btn-create-poll {
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    margin: 0 5px;
}

/* Add Game is primary action - make it bigger and more prominent */
.btn-add-game {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
}

/* Create Poll is secondary - make it visually smaller */
.btn-create-poll {
    background: #f39c12;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
}

.btn-add-game:hover, .btn-add-table:hover {
    background: #229954;
}

.btn-create-poll:hover {
    background: #e67e22;
}

.add-table-section {
    text-align: center;
    padding: 30px;
}

/* Timeline */
.timeline-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.timeline {
    min-height: 200px;
}

.timeline-container-inner {
    position: relative;
}

.timeline-hours {
    display: flex;
    margin-bottom: 10px;
}

.timeline-table-label-spacer {
    width: 100px;
    flex-shrink: 0;
}

.timeline-hours-bar {
    flex: 1;
    position: relative;
    height: 30px;
    background: #ecf0f1;
    border-radius: 4px;
}

.timeline-hour-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-left: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    border-left: 2px solid #95a5a6;
}

.timeline-hour-marker.timeline-final-marker {
    /* Final vertical line at the end - minimal visible content */
    font-size: 0;
    color: transparent;
    padding: 0;
}

.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.timeline-hour-stripes {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100px;
    right: 0;
    pointer-events: none;
    z-index: 0;
}

.timeline-hour-stripe-even,
.timeline-hour-stripe-odd {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid #d0d0d0;
}

.timeline-hour-stripe-even {
    background: rgba(255, 255, 255, 0.5);
}

.timeline-hour-stripe-odd {
    background: rgba(230, 230, 230, 0.5);
}

.timeline-row {
    display: flex;
    align-items: stretch;
    min-height: 70px; /* Base height for single game */
    position: relative;
    z-index: 1;
}

.timeline-table-label {
    width: 100px;
    padding: 10px;
    background: #34495e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 0 0 4px;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-games {
    flex: 1;
    position: relative;
    background: transparent;
    border: 1px solid #ecf0f1;
    border-radius: 0 4px 4px 0;
    /* Height grows dynamically based on game positions */
}

.timeline-game {
    position: absolute;
    /* top is set inline by PHP for stacking */
    height: 50px; /* Fixed height */
    background: #3498db;
    color: white;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 12px;
    line-height: 1.3;
}

.timeline-game:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Timeline game status colors */
.timeline-game-open {
    background: #3498db; /* Blue for open games */
}

.timeline-game-open:hover {
    background: #2980b9;
}

.timeline-game-full {
    background: #95a5a6; /* Grey for full games */
}

.timeline-game-full:hover {
    background: #7f8c8d;
}

/* Timeline poll styling - distinct color */
.timeline-poll {
    background: #9b59b6; /* Purple for polls */
}

.timeline-poll:hover {
    background: #8e44ad;
}

.timeline-game-name {
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-game-players {
    font-size: 11px;
    opacity: 0.9;
    white-space: nowrap;
}

.timeline-game-time {
    font-size: 10px;
    opacity: 0.85;
    white-space: nowrap;
}
/* Comments Section */
.game-comments-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.comments-header {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-count {
    font-size: 12px;
    color: #95a5a6;
    font-weight: normal;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.comment-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border-left: 2px solid #bdc3c7;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
    font-size: 12px;
}

.comment-time {
    font-size: 11px;
    color: #95a5a6;
}

.comment-text {
    color: #34495e;
    font-size: 12px;
    line-height: 1.5;
}

.add-comment-btn-container {
    margin-top: 6px;
}

.btn-add-comment {
    background: #bdc3c7;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: normal;
    transition: background 0.3s;
}

.btn-add-comment:hover {
    background: #95a5a6;
}

/* Mail Icons */
.mail-icon {
    cursor: pointer !important;
    font-size: 14px;
    margin-left: 6px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mail-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    cursor: pointer !important;
}

.game_name .mail-icon {
    margin-left: 10px;
    font-size: 16px;
}


/*poll css dump*/

.poll-container {
    background: #fff;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.poll-container.poll-closed {
    opacity: 0.6;
    background: #f5f5f5;
}

.poll-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.poll-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.poll-title-section {
    flex: 1;
}

.poll-title {
    margin: 0 0 5px 0;
    color: #f39c12;
    font-size: 20px;
}

.poll-status-closed {
    color: #95a5a6;
    font-size: 16px;
}

.poll-creator {
    color: #7f8c8d;
    font-size: 14px;
}

.poll-comment {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
}

.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poll-option {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    position: relative;
    display: flex;
    gap: 15px;
}

.poll-option.poll-winner {
    background: #d5f4e6;
    border-left-color: #27ae60;
}

.poll-option-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.poll-option-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poll-option-content {
    flex: 1;
}

.poll-option-details {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.poll-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.poll-option-name {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
}

.poll-option-name a {
    color: #2c3e50;
}

.poll-option-votes {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: bold;
}

.poll-progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.poll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

.btn-vote {
    background: #f39c12;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-vote:hover {
    background: #e67e22;
}

.winner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

.poll-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-edit-poll,
.btn-delete-poll {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-edit-poll {
    background: #3498db;
    color: white;
}

.btn-edit-poll:hover {
    background: #2980b9;
}

.btn-delete-poll {
    background: #e74c3c;
    color: white;
}

.btn-delete-poll:hover {
    background: #c0392b;
}

/* ============================================
   BGG Search Results Styling
   ============================================ */

/* Individual search result item - each game from BGG search */
.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;  /* Show hand cursor to indicate clickability */
    transition: background 0.2s;
    display: flex;  /* Put game name and year on same line */
    align-items: center;  /* Vertically center the content */
    gap: 10px;  /* Space between name and year */
}

/* Hover effect to show interactivity */
.search-result-item:hover {
    background: #e9ecef;
}

/* Game name styling */
.result-name {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
}

/* Year styling - lighter color to differentiate from name */
.result-year {
    color: #6c757d;
    font-size: 14px;
}
/* ============================================
   Button Loading Spinner
   ============================================ */

/* Apply loading state to any button */
.btn-loading {
    position: relative;
    pointer-events: none;  /* Prevent double-clicks */
    opacity: 0.7;
}

/* CSS-only spinner - no images needed! */
.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Thumbnail Selection (Manual Game Entry)
   ============================================ */

.thumbnail-option {
    border: 3px solid #ddd !important;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    background: white !important;
    position: relative;
    display: inline-block;
}

.thumbnail-option img {
    height: 100px;  /* Normalized height for all thumbnails */
    width: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.thumbnail-option:hover {
    border-color: #3498db !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.thumbnail-option.selected {
    border-color: #27ae60 !important;
    background: #d5f4e6 !important;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.4);
}

.thumbnail-option.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #27ae60;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* ============================================
   Poll Voters Display
   ============================================ */

.poll-voters-list {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.poll-voter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.poll-voter-item:last-child {
    border-bottom: none;
}

.voter-name {
    font-weight: 500;
}

.btn-cancel-vote {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.btn-cancel-vote:hover {
    background: #c0392b;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}
