/* PassingScoreCalculator.css */
/* Calculator-specific styles ONLY - Global classes defined in layout.css */

/* ===================================
   成績項目卡片 (Score Item Cards)
   =================================== */
.score-item {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border: 2px solid #48bb78;
    transition: all 0.3s ease;
}

.score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(72, 187, 120, 0.15);
}

/* ===================================
   主要結果顯示 (Main Result Display)
   =================================== */
.main-result {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 30px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.result-score-text {
    font-size: 1.2rem;
    color: #718096;
    font-weight: 600;
}

/* ===================================
   結果項目 (Result Items)
   =================================== */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

.result-label i {
    margin-right: 8px;
    color: #667eea;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    color: #667eea;
}

/* ===================================
   難度評估標籤 (Difficulty Badges)
   =================================== */
.difficulty-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    margin: 10px 0;
}

.difficulty-already-passed {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.difficulty-easy {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
}

.difficulty-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    color: #78350f;
}

.difficulty-hard {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    color: #742a2a;
}

.difficulty-impossible {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #2d3748;
}

/* ===================================
   模板選擇按鈕 (Template Buttons)
   =================================== */
.template-btn {
    padding: 14px 24px;
    border: 2px solid #667eea;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.template-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.template-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===================================
   多目標預覽 (Multi-Target Preview)
   =================================== */
.multi-target-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.multi-target-item:last-child {
    border-bottom: none;
}

.multi-target-item:hover {
    background: #f7fafc;
}

.multi-target-item span:first-child {
    font-weight: 600;
    color: #4a5568;
}

.multi-target-item span:last-child {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    color: #667eea;
}

/* ===================================
   圖表容器 (Chart Container)
   =================================== */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* ===================================
   剩餘權重顯示 (Remaining Weight Display)
   =================================== */
.remaining-weight-display {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
}

.remaining-weight-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    font-family: 'Roboto Mono', monospace;
}

.remaining-weight-label {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 5px;
}

/* ===================================
   輸入欄位標籤 (Input Labels)
   =================================== */
.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.input-label i {
    margin-right: 5px;
    color: #667eea;
}

/* ===================================
   移除按鈕特殊樣式 (Remove Button)
   =================================== */
.btn-remove-item {
    padding: 10px;
    min-width: auto;
    width: 100%;
}

.btn-remove-item i {
    margin: 0;
}

/* ===================================
   響應式設計 (Responsive Design)
   =================================== */
@media (max-width: 767px) {
    .main-result {
        font-size: 2.5rem;
    }

    .result-score-text {
        font-size: 1rem;
    }

    .template-btn {
        width: 100%;
        margin: 5px 0;
    }

    .chart-container {
        height: 250px;
    }

    .remaining-weight-value {
        font-size: 2rem;
    }

    .btn-remove-item {
        margin-top: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .main-result {
        font-size: 3rem;
    }

    .template-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}
