/* ============================================================
   قطة لين — Virtual Pet
   ============================================================ */

.pet-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.pet-stage {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.pet-cat {
    width: 190px;
    height: 190px;
    animation: pet-breathe 3.2s ease-in-out infinite;
}

@keyframes pet-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* إظهار مجموعة التعابير المطابقة للمود الحالي بس */
.pet-cat .mood-happy,
.pet-cat .mood-idle,
.pet-cat .mood-sleepy,
.pet-cat .mood-sad,
.pet-cat .mood-hungry {
    display: none;
}

.pet-cat[data-mood="happy"] .mood-happy,
.pet-cat[data-mood="idle"] .mood-idle,
.pet-cat[data-mood="sleepy"] .mood-sleepy,
.pet-cat[data-mood="sad"] .mood-sad,
.pet-cat[data-mood="hungry"] .mood-hungry {
    display: block;
}

.pet-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 20px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 16px;
    width: 22px;
    flex-shrink: 0;
}

.stat-bar {
    flex: 1;
    height: 10px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.stat-fill.hunger { background: linear-gradient(90deg, #dd8f3f, #f0b578); }
.stat-fill.energy { background: linear-gradient(90deg, #6d8fe0, #a0b4f2); }
.stat-fill.happiness { background: linear-gradient(90deg, #e0357f, #ff8fab); }

.stat-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    width: 36px;
    text-align: left;
}

.pet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pet-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 4px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.8;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
}

.pet-btn:active {
    transform: scale(0.94);
    background: var(--accent-soft);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
