/* Pet Care Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
    min-height: 100vh;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(168, 237, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(254, 214, 227, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 182, 193, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f, #4d96ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header p {
    font-size: 1.2em;
    opacity: 0.8;
}

.game-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
}

.pet-display {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.pet {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.pet-body {
    position: relative;
    width: 150px;
    height: 120px;
    background: linear-gradient(135deg, #ffb6c1, #ffa07a);
    border-radius: 75px 75px 50px 50px;
    margin: 0 auto;
    border: 3px solid #ff69b4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pet-face {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.eyes {
    display: flex;
    justify-content: space-between;
    width: 40px;
    margin: 0 auto 10px;
}

.eye {
    font-size: 1.5em;
    color: #2c3e50;
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0; }
}

.mouth {
    font-size: 1.2em;
    color: #ff1493;
}

.pet-ears {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 80px;
}

.ear {
    font-size: 1.5em;
    color: #ffb6c1;
}

.pet-effects {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.effect {
    position: absolute;
    font-size: 1.5em;
    animation: fadeUp 2s ease-out forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

.pet-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff69b4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.pet-mood {
    font-size: 1.1em;
    color: #666;
    margin-top: 5px;
}

.pet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat label {
    font-weight: bold;
    font-size: 0.9em;
    color: #2c3e50;
}

.stat-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease, background-color 0.3s ease;
}

.hunger-fill { background: linear-gradient(90deg, #ff6b6b, #ff4757); }
.happiness-fill { background: linear-gradient(90deg, #ffd93d, #ffa502); }
.health-fill { background: linear-gradient(90deg, #6bcf7f, #2ed573); }
.energy-fill { background: linear-gradient(90deg, #4d96ff, #3742fa); }

.stat-value {
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
}

.actions-panel, .minigames-panel {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.actions-panel h3, .minigames-panel h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    text-align: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn:active:not(:disabled) {
    transform: translateY(0px);
}

.cooldown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.pet-info {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
}

.pet-info h4 {
    color: #4d96ff;
    margin-bottom: 10px;
    text-align: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: bold;
    color: #2c3e50;
}

.value {
    color: #ff69b4;
    font-weight: bold;
}

.minigame-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.minigame-btn {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.minigame-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-area-display {
    min-height: 150px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-placeholder {
    text-align: center;
    color: #666;
}

.pet-game-icon {
    font-size: 3em;
    margin-top: 10px;
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #4d96ff;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success { border-left-color: #6bcf7f; }
.notification.warning { border-left-color: #ffd93d; }
.notification.error { border-left-color: #ff6b6b; }

.instructions {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instructions h3 {
    color: #ff69b4;
    margin-bottom: 15px;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.instructions li:before {
    content: "🐾";
    position: absolute;
    left: 0;
    color: #ffd93d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-area {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pet-display {
        padding: 20px;
    }

    .pet {
        width: 150px;
        height: 150px;
    }

    .pet-body {
        width: 120px;
        height: 100px;
    }

    .pet-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    header h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .minigame-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .pet {
        width: 120px;
        height: 120px;
    }

    .pet-body {
        width: 100px;
        height: 80px;
    }
}