/* DogAgeCalculator.css - 狗狗真實年齡換算計算器專屬樣式 */
/* ⚠️ 僅定義計算器專屬樣式，全域類別請參考 GLOBAL_CSS_CLASSES.md */

/* === 結果展示區 === */
.dog-age-result-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.dog-age-result-main {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.dog-age-result-unit {
    font-size: 1.5rem;
    color: #64748b;
    margin-left: 8px;
}

.dog-age-result-label {
    font-size: 1rem;
    color: #64748b;
    margin-top: 8px;
}

/* === 傳統公式對照 === */
.dog-age-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 12px;
    margin-top: 16px;
}

.dog-age-comparison-label {
    font-size: 0.9rem;
    color: #64748b;
}

.dog-age-comparison-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #48bb78;
}

/* === 年齡差異說明 === */
.dog-age-difference {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    margin-top: 12px;
    font-size: 0.95rem;
    color: #92400e;
}

.dog-age-difference i {
    color: #f59e0b;
}

/* === 生命階段標籤 === */
.dog-life-stage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 16px;
}

.dog-life-stage.puppy {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.dog-life-stage.young-adult {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    color: #065f46;
}

.dog-life-stage.adult {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1e40af;
}

.dog-life-stage.senior {
    background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 100%);
    color: #6b21a8;
}

.dog-life-stage.geriatric {
    background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
    color: #9d174d;
}

/* === 圖表容器 === */
.dog-age-chart-container {
    position: relative;
    height: 300px;
    margin-top: 16px;
}

/* === 輸入說明區 === */
.dog-input-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    margin-top: 16px;
}

.dog-input-info i {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-top: 2px;
}

.dog-input-info-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* === 體型說明列表 === */
.dog-size-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dog-size-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dog-size-list li:last-child {
    border-bottom: none;
}

.dog-size-list .size-icon {
    font-size: 1.5rem;
    min-width: 32px;
}

.dog-size-list .size-name {
    font-weight: 600;
    color: #334155;
    display: block;
}

.dog-size-list .size-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* === 公式說明區 === */
.dog-formula-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 16px 0;
}

.dog-formula-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
}

/* === 年齡無效提示 === */
.dog-age-invalid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}

.dog-age-invalid i {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 16px;
}

.dog-age-invalid-text {
    font-size: 1rem;
    color: #64748b;
}

/* === 響應式設計 === */
@media (max-width: 768px) {
    .dog-age-result-main {
        font-size: 3rem;
    }

    .dog-age-result-unit {
        font-size: 1.2rem;
    }

    .dog-age-chart-container {
        height: 250px;
    }

    .dog-age-comparison {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
