/* Combo Simulator UI - Premium Styles */
:root {
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(0, 242, 255, 0.2);
    --accent-cyan: #00f2ff;
    --accent-purple: #bc13fe;
    --mp-color: #00d2ff;
    --dmg-color: #ff4d4d;
    --save-color: #00ff88;
}

/* Base Layout */
.combo-builder {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

/* Skill Selection Grid */
.skill-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.skill-item:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.skill-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
}

.skill-mp-label {
    font-size: 0.7rem;
    color: var(--mp-color);
}

/* Combo String (The result area) */
.combo-string {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.combo-card {
    width: 180px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.combo-card .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4d4d;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
}

/* Tag Selection */
.tag-selector {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-btn.active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    font-weight: 900;
}

.tag-btn.active.smite { background: #ff4d4d; color: #fff; border-color: #ff4d4d; }
.tag-btn.active.save { background: #00ff88; color: #000; border-color: #00ff88; }
.tag-btn.active.consecutive { background: #00d2ff; color: #000; border-color: #00d2ff; }

/* Visualization Gauges inside card */
.card-stats {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.stat-label { color: #abb2bf; }
.stat-value { font-weight: 800; }

.mini-gauge {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.gauge-fill-mp { height: 100%; background: var(--mp-color); transition: width 0.3s; }
.gauge-fill-dmg { height: 100%; background: var(--dmg-color); transition: width 0.3s; }

/* Summary Panel */
.summary-panel {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.summary-item {
    text-align: left;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--nav-text-muted);
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
}

/* Bubble (Tutorial) System */
.bubble-alert {
    position: absolute;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid var(--accent-cyan);
    color: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 0.85rem;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    max-width: 200px;
    text-align: left;
}

.bubble-alert.active {
    opacity: 1;
    transform: translateY(0);
}

.bubble-alert::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--accent-cyan);
}

/* 320px support */
@media (max-width: 320px) {
    .combo-string { padding: 1rem; }
    .combo-card { width: 140px; padding: 0.8rem; }
    .summary-panel { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
    .summary-value { font-size: 1.5rem; }
}
