/* Virtual Pet - Premium Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-0: #050814;
    --accent: #fb923c;
    --accent-glow: rgba(251, 146, 60, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: radial-gradient(circle at 50% 0%, rgba(251, 146, 60, 0.12), transparent 50%), var(--bg-0);
    color: #fff;
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Navigation */
.game-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(10, 15, 37, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-home:hover {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.4);
}

.nav-icon {
    font-size: 18px;
}

.nav-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pet-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-weight: 600;
}

.rename-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

/* Pet Info */
.pet-info-bar {
    display: flex;
    justify-content: center;
    padding: 16px 20px 8px;
}

.info-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(145deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.05));
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 14px;
}

.chip-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.chip-value {
    font-size: 24px;
    font-weight: 800;
    color: #fb923c;
}

/* Status Bars */
.status-bars {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 180px;
}

.status-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    min-width: 100px;
}

.status-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.status-fill.happiness {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.status-fill.hunger {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.status-fill.clean {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.status-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 30px;
    text-align: right;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-feed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-play {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-clean {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-sleep {
    background: rgba(168, 85, 247, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-xl {
    padding: 14px 28px;
    font-size: 16px;
}

/* Game Main */
.game-main {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
}

.pet-container {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 25, 50, 0.95), rgba(10, 15, 35, 0.98));
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#pet-canvas {
    background: radial-gradient(ellipse at center, rgba(251, 146, 60, 0.05), transparent), #0a0f1f;
    border-radius: 14px;
    display: block;
    max-width: 100%;
    height: auto;
}

.interaction-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 10px;
}

.speech-bubble {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.mood-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(251, 146, 60, 0.15);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fb923c;
}

#mood-emoji {
    font-size: 20px;
}

/* Overlay */
.overlay-panel {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 25, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    z-index: 50;
}

.overlay-panel.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 32px;
}

.overlay-emoji {
    font-size: 56px;
    margin-bottom: 14px;
}

.overlay-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 12px;
}

.overlay-tip {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px;
}

/* Help Section */
.help-section {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
}

.help-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.hi {
    font-size: 18px;
}

/* Recommendations */
.recommendations-section {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.game-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-card-mini:hover {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.4);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 28px;
}

.card-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .status-bars {
        gap: 10px;
    }

    .status-item {
        min-width: 100%;
    }

    #pet-canvas {
        width: 100%;
        height: auto;
    }
}

/* Legacy */
.header,
.status-panel,
.care-panel {
    display: none;
}

.container {
    display: contents;
}