/* ============================================
   DUELO ULTIMATE STYLES
   ============================================ */

.duelo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.duelo-modal-overlay.active {
    display: flex;
}

.duelo-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #d4af37;
    border-radius: 24px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.duelo-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    border-bottom: 2px solid #d4af37;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duelo-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.duelo-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.duelo-modal-close:hover {
    background: #e94560;
    transform: rotate(90deg);
}

.duelo-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.duelo-loading {
    text-align: center;
    padding: 60px;
}

.duelo-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.duelo-fight-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid #d4af37;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.duelo-fighters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.duelo-fighter {
    flex: 1;
    text-align: center;
}

.duelo-fighter-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.duelo-fighter-name.p1 { color: #ff6b6b; }
.duelo-fighter-name.p2 { color: #6b9fff; }

.duelo-fighter-rating {
    font-size: 42px;
    font-weight: 800;
    font-family: monospace;
}

.duelo-fighter-rating.p1 { color: #ff6b6b; }
.duelo-fighter-rating.p2 { color: #6b9fff; }

.duelo-vs {
    font-size: 28px;
    font-weight: 800;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    padding: 12px 20px;
    border-radius: 50px;
}

.duelo-record-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}

.duelo-record-number {
    font-size: 48px;
    font-weight: 800;
    color: #d4af37;
}

.duelo-form-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.duelo-form-dot {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.duelo-form-dot.win { background: rgba(76, 175, 80, 0.3); color: #4CAF50; border: 2px solid #4CAF50; }
.duelo-form-dot.loss { background: rgba(244, 67, 54, 0.3); color: #f44336; border: 2px solid #f44336; }

.duelo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.duelo-stat-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 15px;
}

.duelo-stat-title {
    font-size: 16px;
    color: #d4af37;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duelo-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.duelo-stat-label { color: #888; }

.duelo-stat-value.p1 { color: #ff6b6b; font-weight: 700; }
.duelo-stat-value.p2 { color: #6b9fff; font-weight: 700; }
.duelo-stat-value.gold { color: #d4af37; font-weight: 700; }

.duelo-progress-bar {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

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

.duelo-progress-fill.p1 { background: linear-gradient(90deg, #ff6b6b, #ff4444); }
.duelo-progress-fill.p2 { background: linear-gradient(90deg, #6b9fff, #4444ff); }

.duelo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.duelo-table th {
    text-align: left;
    color: #888;
    padding: 5px;
    border-bottom: 1px solid #333;
}

.duelo-table td {
    padding: 6px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.duelo-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.duelo-status.online { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.duelo-status.offline { background: rgba(108, 117, 125, 0.2); color: #6c757d; }
.duelo-status.lobby { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.duelo-status.playing { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.duelo-error, .duelo-no-data {
    text-align: center;
    padding: 60px;
    color: #888;
}

.duelo-error i, .duelo-no-data i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.duelo-btn {
    padding: 6px 10px;
    background: linear-gradient(135deg, #2c2c3e, #1a1a2e);
    border: 1px solid #d4af37;
    border-radius: 5px;
    color: #d4af37;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 5px;
    transition: all 0.2s;
}

.duelo-btn:hover {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #000;
    transform: scale(1.05);
}