/* =====================================================
   PRACTICE CONFIG PAGE STYLES
   Configuration page for public practice battles
   ===================================================== */

/* Page Layout */
.practice-config-page {
    min-height: 100vh;
    padding-bottom: 120px;
}

/* Header */
.practice-config-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.back-link {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

.practice-config-title {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
}

/* Configuration Container */
.config-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* VS Divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    flex-shrink: 0;
}

.vs-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    font-family: "VT323", monospace;
}

/* Configuration Panels */
.config-panel {
    flex: 1;
    background: #18191c;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ally-panel {
    border-color: rgba(96, 165, 250, 0.3);
}

.enemy-panel {
    border-color: rgba(248, 113, 113, 0.3);
}

/* Panel Header */
.panel-header {
    text-align: center;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 1.4rem;
    margin: 0 0 16px 0;
    color: #fff;
}

.ally-panel .panel-title {
    color: #60A5FA;
}

.enemy-panel .panel-title {
    color: #F87171;
}

/* Spirit Preview */
.spirit-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.preview-spirit-img {
    width: 100px;
    height: 100px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    object-fit: contain;
}

/* Config Sections */
.config-section {
    margin-bottom: 20px;
}

.config-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

/* Select Dropdown */
.config-select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: "VT323", monospace;
    background: #222;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.config-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.config-select:focus {
    outline: none;
    border-color: #60A5FA;
}

/* Sliders */
.config-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #D0BCFF;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.config-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #D0BCFF;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Improvements Section */
.improvements-section .config-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.improvement-total {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.improvement-grid,
.condition-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.improvement-row,
.condition-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 12px;
    align-items: center;
}

.imp-label,
.cond-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.imp-value,
.cond-value {
    font-size: 0.9rem;
    color: #fff;
    text-align: right;
    font-family: "VT323", monospace;
}

.imp-slider,
.cond-slider {
    height: 6px;
}

/* Stats Preview */
.stats-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.stats-preview-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    font-family: "VT323", monospace;
}

/* Start Battle Container */
.start-battle-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 20px 24px 32px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.start-battle-btn {
    width: 100%;
    max-width: 400px;
    min-width: 200px;
    padding: 16px 32px !important;
}

.practice-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 12px 0 0 0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .config-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .vs-divider {
        padding: 16px 0;
    }
    
    .vs-text {
        font-size: 2rem;
    }
    
    .config-panel {
        width: 100%;
    }
    
    .back-link {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
        transform: none;
    }
    
    .practice-config-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .practice-config-title {
        font-size: 1.4rem;
    }
    
    .config-panel {
        padding: 16px;
    }
    
    .spirit-preview {
        width: 100px;
        height: 100px;
    }
    
    .preview-spirit-img {
        width: 80px;
        height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .improvement-row,
    .condition-row {
        grid-template-columns: 35px 1fr 35px;
        gap: 8px;
    }
}
