/* TikiStats Component Styles */
/* Reusable UI components consolidated from multiple templates */

/* Add Button - Previously duplicated in 5+ templates */
.btn-add {
    background: linear-gradient(135deg, var(--brand-lime) 0%, var(--brand-emerald) 100%);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--surface-dark-2);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 218, 71, 0.3);
    color: var(--surface-dark-2);
}

.table_img{
    max-width: 80px;
}

/* Enhanced Table Hover - Previously duplicated in 10+ templates */
.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(128, 218, 71, 0.05);
}

/* Badge Standardization - Previously duplicated across 35+ templates */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Teal Badge - Replaces inline style="background-color: var(--brand-forest);" */
.badge-teal {
    background-color: var(--brand-forest);
}

/* Image Standardization - Replaces inline image styles */
/* For team/entity logos - object-fit: contain preserves aspect ratio with padding */
.img-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* For player avatars and profile pictures - object-fit: cover fills space */
.img-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* ============================================
   SHORTCUT BUTTONS DESIGN
   Clickable shortcut buttons with modal
   ============================================ */

/* Horizontal grid for shortcut buttons */
.shortcuts-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Shortcut Button - Clickable square */
.shortcut-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 80px;
    background: linear-gradient(145deg, var(--surface-dark-2), #1a1a1a);
    border: 2px solid rgba(128, 218, 71, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    gap: 6px;
}

.shortcut-btn:hover {
    border-color: var(--brand-lime);
    background: linear-gradient(145deg, #333, #222);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 218, 71, 0.2);
}

.shortcut-btn:active {
    transform: translateY(0);
}

.shortcut-btn .shortcut-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-lime);
    line-height: 1;
}

.shortcut-btn .shortcut-label {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortcut-btn .shortcut-label.assigned {
    color: #fff;
    font-weight: 500;
}

.shortcut-btn .shortcut-label.unassigned {
    color: #666;
    font-style: italic;
}

/* Success flash animation for feedback */
.shortcut-btn.success-flash {
    animation: successFlash 1s ease;
}

/* ============================================
   SHORTCUT ASSIGNMENT MODAL
   ============================================ */

.shortcut-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.shortcut-modal-overlay.visible {
    display: flex;
    opacity: 1;
}

.shortcut-modal {
    background: linear-gradient(145deg, var(--surface-dark-2), #1f1f1f);
    border: 2px solid rgba(128, 218, 71, 0.5);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.15s ease;
}

.shortcut-modal-overlay.visible .shortcut-modal {
    transform: scale(1);
}

.shortcut-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(128, 218, 71, 0.2);
}

.shortcut-modal-header h5 {
    margin: 0;
    color: var(--brand-lime);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shortcut-modal-header h5 .key-badge {
    background: var(--brand-lime);
    color: #1a1a1a;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.shortcut-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.shortcut-modal-close:hover {
    color: #fff;
}

.shortcut-modal-body {
    padding: 16px 20px;
    max-height: 50vh;
    overflow-y: auto;
}

/* Event List in Modal */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-option {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(128, 218, 71, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #ddd;
    font-size: 14px;
}

.event-option:hover {
    background: rgba(128, 218, 71, 0.15);
    border-color: rgba(128, 218, 71, 0.4);
    color: #fff;
}

.event-option.selected {
    background: rgba(128, 218, 71, 0.2);
    border-color: var(--brand-lime);
    color: var(--brand-lime);
}

.event-option-clear {
    color: #888;
    font-style: italic;
    border-style: dashed;
}

.event-option-clear:hover {
    color: #f44;
    border-color: rgba(244, 68, 68, 0.4);
    background: rgba(244, 68, 68, 0.1);
}

/* Parent event badge in modal */
.event-parent-badge {
    display: inline-block;
    background: rgba(128, 218, 71, 0.2);
    color: var(--brand-lime);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.event-option .badge {
    font-size: 10px;
    padding: 3px 6px;
    vertical-align: middle;
}

