/* Game Components - Ability Panel, Movement Controls, Timers, and Game Phase Indicators */

/* Game Phase Indicator */
.game-phase-indicator {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.phase-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phase-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.phase-content {
    flex: 1;
}

.phase-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.phase-description {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.phase-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* Timer Display */
.timer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.timer-section {
    flex: 1;
    text-align: center;
}

.timer-label {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.timer-value.normal {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.timer-value.warning {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
    animation: pulse 1s infinite;
}

.timer-value.critical {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
    animation: pulse 0.5s infinite;
}

/* Ability Panel */
/* Ability panel is merged into movement controls as mini chips */

.ability-panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.ability-panel-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.ability-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ability-button {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.ability-button:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.ability-button.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.ability-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

.ability-content {
    flex: 1;
}

.ability-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.ability-description {
    font-size: 0.85rem;
    color: #a0a0a0;
    line-height: 1.3;
}

.ability-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ability-info-header {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.ability-info-description {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.4;
}

/* Movement Controls */
.movement-controls {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem; /* slightly smaller overall */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 280px; /* slightly smaller overall */
}

/* Player Info card styling */
.player-info-component .player-info {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    width: 280px; /* match movement-controls width on wide screens */
    display: flex;                /* ensure vertical stack */
    flex-direction: column;       /* label above value */
    align-items: center;          /* center horizontally */
    justify-content: center;      /* center vertically */
    text-align: center;           /* center text */
}
.player-info .label { font-size: 0.75rem; color: #a0a0a0; text-transform: uppercase; letter-spacing: 0.06em; }
.player-info .value { font-size: 1.1rem; font-weight: 800; margin-top: 0.25rem; }

.ability-mini {
    display: flex;
    flex-direction: column; /* stack vertically */
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.4rem;
    margin: 0 0 0 0.8rem; /* space from arrows when placed to the right */
}

.ability-chip {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
}
.ability-chip.selected {
    background: rgba(245,158,11,0.2);
    border-color: rgba(245,158,11,0.35);
    color: #FDE68A;
    font-weight: 700;
}
.ability-chip.disabled { opacity: 0.5; cursor: not-allowed; }

.movement-header {
    text-align: center;
    margin-bottom: 1rem;
}

.movement-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.movement-instructions {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.movement-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

/* New layout: arrows left, abilities stacked vertically on the right */
.movement-layout {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ability-chip {
    width: 108px; /* slightly less wide */
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
}

@media (max-width: 720px) {
    .movement-layout { gap: 0.6rem; }
    .ability-chip { width: 96px; }
    .movement-btn { width: 42px; height: 42px; font-size: 1.05rem; }
}

.movement-row {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.movement-spacer {
    width: 50px;
    height: 50px;
}

.movement-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movement-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.movement-status {
    text-align: center;
}

.pending-move {
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    text-align: center;
}

.pending-move-text {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.8rem;
    display: block;
}

.confirm-move-btn, .cancel-move-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.3rem;
    font-size: 0.9rem;
}

.confirm-move-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.confirm-move-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cancel-move-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-move-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.no-move {
    color: #a0a0a0;
    font-style: italic;
}

.move-submitted {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #667eea;
    font-weight: 600;
}

.move-preview {
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.move-step {
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.move-step:last-child {
    margin-bottom: 0;
}

.move-step .pending {
    color: #a0a0a0;
    font-weight: normal;
}

.move-combination {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
} 