/* ==========================================================================
   강화 성공률 조회 페이지 전용 스타일 (success_rate.css)
   ========================================================================== */

.calculate-content-area {
	background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    min-height: 400px;
}
#stoneCalcWrapper .form-label { 
    color: var(--accent); 
    font-weight: 700; 
    margin-bottom: 12px; 
    display: block; 
    font-size: 0.95rem; 
}

#stoneCalcWrapper .chip-group { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}

#stoneCalcWrapper .type-chip { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #aaa; 
    padding: 5px 0px; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: 0.3s; 
    flex: 1; 
    font-size: 0.9rem; 
}

#stoneCalcWrapper .type-chip.active { 
    background: rgba(138, 180, 248, 0.15); 
    border-color: var(--accent); 
    color: var(--accent); 
    font-weight: 700; 
}

/* 1강~10강 단계 선택 그리드 */
#stoneCalcWrapper .rate-step-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
}

/* 리포트 카드 디자인 */
#stoneCalcWrapper .stone-result-container { 
    background: linear-gradient(145deg, rgba(32, 33, 36, 0.9), rgba(22, 23, 26, 0.9)); 
    border: 1px solid rgba(138, 180, 248, 0.2); 
    border-radius: 20px;
    padding: 24px;
}

#stoneCalcWrapper .result-header { 
    font-size: 0.85rem; 
    color: #888; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

#stoneCalcWrapper .result-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 12px; 
    margin-bottom: 20px; 
}

#stoneCalcWrapper .result-item { 
    background: rgba(255, 255, 255, 0.03); 
    padding: 15px; 
    border-radius: 15px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

#stoneCalcWrapper .item-label { 
    font-size: 0.8rem; 
    color: #999; 
    margin-bottom: 8px; 
}

#stoneCalcWrapper .item-value-group { 
    display: flex; 
    align-items: baseline; 
    gap: 4px; 
}

#stoneCalcWrapper .item-value { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #eee; 
}

#stoneCalcWrapper .stone-cost-item .item-value { 
    color: #81d4fa; 
}

#stoneCalcWrapper .break-item .item-value { 
    color: #ffab91; 
}

#stoneCalcWrapper .result-divider { 
    height: 1px; 
    background: linear-gradient(to right, rgba(138, 180, 248, 0), rgba(138, 180, 248, 0.3), rgba(138, 180, 248, 0)); 
    margin: 20px 0; 
}

#stoneCalcWrapper .result-total-section { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

#stoneCalcWrapper .total-label { 
    color: var(--accent); 
    font-weight: 700; 
    font-size: 1.1rem; 
}

#stoneCalcWrapper .total-amount { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--accent); 
}

/* [추가] 목표 단계 아래 소모 재료/금전 리스트 보드 */
#stoneCalcWrapper .material-board-container {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.02);
}

#stoneCalcWrapper .material-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

#stoneCalcWrapper .material-row:last-child {
    border-bottom: none;
}

#stoneCalcWrapper .mat-name {
    color: #ccc;
    font-size: 0.9rem;
}

#stoneCalcWrapper .mat-count {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

#stoneCalcWrapper .mat-count span {
    color: var(--accent);
    margin-left: 2px;
}

/* 반응형 모바일 대응 */
@media (max-width: 768px) {
    #stoneCalcWrapper .result-total-section { 
        flex-direction: column !important; 
        gap: 10px; 
        text-align: center; 
    }
    #stoneCalcWrapper .rate-step-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}