/* Fighter Hover Card - Compact Design */

.fighter-hover-card {
    position: fixed;
    z-index: 10000;
    width: 340px;
    max-height: 85vh;
    overflow-y: auto;
    background: #0a0a0a;
    border: 1px solid #d20a0a;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95),
                0 0 20px rgba(210, 10, 10, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(8px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fighter-hover-card.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Scrollbar */
.fighter-hover-card::-webkit-scrollbar {
    width: 4px;
}

.fighter-hover-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.fighter-hover-card::-webkit-scrollbar-thumb {
    background: #d20a0a;
    border-radius: 2px;
}

/* Header - Side by Side */
.fighter-card-header {
    position: relative;
    padding: 12px;
    background: linear-gradient(135deg, #d20a0a 0%, #8a0000 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fighter-card-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.fighter-card-placeholder {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #333 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.fighter-card-header-info {
    flex: 1;
    min-width: 0;
    color: white;
}

.fighter-card-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fighter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    align-items: center;
}

.record-badge {
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.record-badge.wins {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.record-badge.losses {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.meta-item {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 3px;
}

.age-badge {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

/* Prominent Record Row */
.fighter-record-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fighter-record-row .record-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fighter-record-row .record-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.fighter-record-row .record-number.wins {
    color: #4ade80;
}

.fighter-record-row .record-number.losses {
    color: #f87171;
}

.fighter-record-row .record-number.draws {
    color: #fbbf24;
}

.fighter-record-row .record-label {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

.fighter-record-row .record-divider {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 -4px;
}

/* Body - Compact Grid */
.fighter-card-body {
    padding: 10px;
    color: white;
    background: #0a0a0a;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px;
}

.section-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d20a0a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.compact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.compact-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    font-size: 11px;
}

.compact-stat .label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.compact-stat .value {
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
}

.compact-stat .value.success {
    color: #4ade80;
}

.compact-stat .value.danger {
    color: #f87171;
}

.compact-stat .value.warning {
    color: #fbbf24;
}

/* No Stats Message */
.no-stats {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Loading State */
.fighter-hover-card.loading {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(210, 10, 10, 0.2);
    border-top-color: #d20a0a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error State */
.error-message {
    padding: 20px;
    text-align: center;
    color: #f87171;
    font-size: 12px;
}

/* Old Structure Compatibility - Make it Compact */
.stance-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.8);
}

.dob-display {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}
.stat-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.fighter-card-section {
    margin-bottom: 8px;
}

.section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d20a0a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.physical-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 8px 6px;
    text-align: center;
}

.stat-icon {
    font-size: 16px;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

.combat-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.combat-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.combat-stat-icon {
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.combat-stat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.combat-stat-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.combat-stat-value {
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.combat-stat-value .unit {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.stat-progress {
    display: none; /* Hide progress bars in compact mode */
}

.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    transition: width 0.3s ease;
}

.no-stats-message {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .fighter-hover-card {
        width: 320px;
    }
    
    .compact-stats {
        grid-template-columns: 1fr;
    }
}
