/* ========================================
   监督模式样式 - Supervisor Interface
   ======================================== */

.supervisor-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-md);
    height: calc(100vh - 140px);
    /* 减去头部和底部 */
    overflow-y: auto;
    padding: 0 var(--space-xs);
}

.supervisor-left,
.supervisor-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* 通用卡片样式 */
.radar-section,
.history-section,
.attributes-section,
.game-info-section,
.supervisor-actions {
    background: rgba(13, 16, 28, 0.75);
    /* 深空色背景 */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(102, 126, 234, 0.25);
    /* 弱蓝色边框 */
    border-top: 1px solid rgba(102, 126, 234, 0.4);
    /* 顶部高亮 */
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(102, 126, 234, 0.05);
    /* 内发光 */
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* 装饰性光角 */
.radar-section::after,
.history-section::after,
.attributes-section::after,
.game-info-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(225deg, rgba(102, 126, 234, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.radar-section:hover,
.attributes-section:hover,
.history-section:hover,
.game-info-section:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(102, 126, 234, 0.1),
        0 0 15px rgba(102, 126, 234, 0.2);
    /* 外发光增强 */
}

.supervisor-container h3 {
    color: #a5b4fc;
    /* 浅蓝紫色 */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 var(--space-md) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.supervisor-container h3 i {
    width: 18px;
    height: 18px;
    color: var(--color-primary-start);
    filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.6));
}

.supervisor-container h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--color-primary-start);
    box-shadow: 0 0 8px var(--color-primary-start);
    border-radius: 2px;
}

/* 雷达图容器 */
/* 雷达图容器 */
.radar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 10px;
    aspect-ratio: 1/1;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#radar-chart {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.2));
}

/* 历史记录列表 */
.history-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.history-item.skill-use {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.history-item.card-choice {
    border-left-color: var(--color-primary-start);
}

.history-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.history-content {
    color: rgba(255, 255, 255, 0.9);
}

.history-changes {
    font-size: 0.8rem;
    color: #4ade80;
    /* 绿色 */
    margin-top: 4px;
}

/* 属性控制面板 */
.attributes-controls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.attribute-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.2s;
}

.attribute-control:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.attribute-control label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    min-width: 80px;
}

.control-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 2px;
}

.attr-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
}

.attr-btn:hover {
    transform: scale(1.1);
}

.attr-btn.minus {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.attr-btn.minus:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.attr-btn.plus {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.attr-btn.plus:hover {
    background: rgba(40, 167, 69, 0.2);
    color: #51cf66;
}

.attr-input {
    width: 40px;
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.attr-input:focus {
    outline: none;
}

.attr-value {
    display: none;
    /* 隐藏静态值，使用input显示 */
}

/* 游戏信息面板 */
.game-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.info-item span:first-child {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-item span:last-child {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* 操作按钮 */
.supervisor-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.supervisor-actions .action-btn {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.supervisor-actions .action-btn:hover {
    background: var(--color-primary-start);
    border-color: var(--color-primary-start);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#reset-attributes:hover {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 滚动条美化 */
.history-list::-webkit-scrollbar,
.supervisor-container::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track,
.supervisor-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.history-list::-webkit-scrollbar-thumb,
.supervisor-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover,
.supervisor-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 900px) {
    .supervisor-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: visible;
    }

    .radar-section {
        order: -1;
    }
}