/* ===== CONTROL PANEL ===== */

.control-panel {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 40px;
    max-width: 1400px;
    mx-auto: true;
    overflow-y: auto;
    background: radial-gradient(ellipse at 0% 0%, 
        rgba(255, 0, 110, 0.05) 0%, 
        rgba(0, 212, 255, 0.05) 50%,
        transparent 100%);
}

/* ===== LEFT PANEL ===== */

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Profile Section */
.profile-section {
    animation: slideInLeft var(--transition-slow) ease-out;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 700;
}

.profile-link-btn {
    background: none;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.profile-link-btn:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

/* Energy Core Display */
.energy-core-display {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, 
        rgba(255, 0, 110, 0.05) 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    border: 2px solid var(--neon-pink);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 110, 0.1),
        0 0 40px rgba(255, 0, 110, 0.2);
    animation: corePulse 3s ease-in-out infinite;
}

.energy-core-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
}

/* Core Name */
.core-name {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--neon-pink);
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    animation: slideInLeft calc(var(--transition-slow) + 0.2s) ease-out;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.stat-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px currentColor);
}

/* ===== RIGHT PANEL ===== */

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: slideInRight var(--transition-slow) ease-out;
}

.panel-title {
    text-align: center;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
}

/* Trainers Grid */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trainer-module {
    position: relative;
    padding: 25px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.trainer-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(currentColor, 0.1) 50%, 
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.trainer-module:hover::before {
    opacity: 1;
}

/* FUSE REPAIR */
.fuse-repair {
    border-color: var(--color-fuse);
    color: var(--color-fuse);
    box-shadow: 
        inset 0 0 20px rgba(255, 0, 110, 0.1),
        0 0 25px rgba(255, 0, 110, 0.2);
}

.fuse-repair:hover {
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 110, 0.2),
        0 0 40px rgba(255, 0, 110, 0.5),
        0 0 60px rgba(255, 0, 110, 0.3);
    transform: translateY(-5px);
}

/* VOLTAGE ROUTING */
.voltage-routing {
    border-color: var(--color-voltage);
    color: var(--color-voltage);
    box-shadow: 
        inset 0 0 20px rgba(255, 215, 0, 0.1),
        0 0 25px rgba(255, 215, 0, 0.2);
}

.voltage-routing:hover {
    box-shadow: 
        inset 0 0 30px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

/* CIRCUIT SORT */
.circuit-sort {
    border-color: var(--color-circuit);
    color: var(--color-circuit);
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 136, 0.1),
        0 0 25px rgba(0, 255, 136, 0.2);
}

.circuit-sort:hover {
    box-shadow: 
        inset 0 0 30px rgba(0, 255, 136, 0.2),
        0 0 40px rgba(0, 255, 136, 0.5),
        0 0 60px rgba(0, 255, 136, 0.3);
    transform: translateY(-5px);
}

/* Module Icon */
.module-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 10px currentColor);
    transition: all var(--transition-normal);
}

.trainer-module:hover .module-icon {
    filter: drop-shadow(0 0 20px currentColor);
    transform: scale(1.1);
}

/* Module Title & Description */
.trainer-module h3 {
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 0 10px currentColor;
    position: relative;
    z-index: 1;
}

.module-desc {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Trainer Button */
.trainer-btn {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid currentColor;
    color: inherit;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    box-shadow: 0 0 10px rgba(currentColor, 0.3);
}

.trainer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px currentColor;
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .control-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .trainers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .control-panel {
        padding: 20px;
        gap: 20px;
    }
    
    .trainers-grid {
        grid-template-columns: 1fr;
    }
    
    .trainer-module {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .control-panel {
        padding: 15px;
    }
    
    .panel-title {
        font-size: 1.3rem;
    }
}
