/* AutoVibe Initial CSS for project 1757499837359 - Iteration 1 */

/* CSS Variables for Theming */
:root {
    --color-background-start: #a8dadc; /* Light Blue */
    --color-background-end: #457b9d;   /* Medium Blue */
    --color-text-light: #f1faee;       /* Off-White */
    --color-primary-dark: #1d3557;     /* Dark Blue (derived from rgba(29, 53, 87, 0.9)) */
    --color-accent-red: #e63946;       /* Red */
    --color-accent-red-hover: #d62d3c; /* Darker Red */
    --color-accent-red-active: #c61d2c;/* Even Darker Red */
    --color-secondary-light: #a8dadc;  /* Same as background start, used for score/h2 */
    --color-disabled-button: #a8dadc;  /* Same as secondary light, for disabled buttons */

    --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --border-radius-main: 15px;
    --border-radius-secondary: 10px;
    --border-radius-button: 5px;

    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.4);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Basic Reset & Body Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-primary);
    background: linear-gradient(135deg, var(--color-background-start) 0%, var(--color-background-end) 100%);
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden; /* Prevent scroll if elements go off screen */
}

/* Game Container */
#game-container {
    background-color: rgba(29, 53, 87, 0.9); /* Using rgba for transparency */
    border-radius: var(--border-radius-main);
    padding: 30px;
    box-shadow: var(--shadow-dark);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden; /* For point pop-ups if they were appended here */
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--color-text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Score Display */
#score-wrapper {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--color-secondary-light); /* Label color */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

#score-display {
    color: var(--color-accent-red); /* Actual score number color */
}

/* Hamster Click Area */
#hamster-clicker { /* Renamed from #hamster-click-area to match script.js */
    width: 200px;
    height: 200px;
    background-color: var(--color-accent-red); /* Placeholder for hamster */
    border-radius: 50%;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium), inset 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    position: relative; /* Important for containing future elements/effects if needed */
    overflow: hidden;
}

#hamster-clicker:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

#hamster-clicker:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Placeholder for Hamster Image */
#hamster-clicker::before {
    content: '🐹'; /* Using an emoji as a placeholder */
    font-size: 100px;
    line-height: 1;
    display: block;
    animation: bounce 2s infinite ease-in-out;
}

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

/* Point Pop-up Animation */
@keyframes fade-up {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.2);
    }
}

.point-popup {
    position: absolute;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-text-light);
    pointer-events: none;
    white-space: nowrap;
    animation: fade-up 1s forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Upgrade Shop */
#upgrade-shop {
    background-color: rgba(241, 250, 238, 0.1);
    border-radius: var(--border-radius-secondary);
    padding: 20px;
    margin-top: 30px;
}

#upgrade-shop h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--color-secondary-light);
}

#upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Spacing between upgrade items */
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(29, 53, 87, 0.7); /* Using rgba for transparency */
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow-light);
    transition: background-color 0.2s ease;
}

.upgrade-item:hover {
    background-color: rgba(29, 53, 87, 0.9);
}

.upgrade-info {
    text-align: left;
    flex-grow: 1; /* Allows info to take available space */
    margin-right: 10px; /* Spacing between info and button */
}

.upgrade-info h3 {
    font-size: 1.3em;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.upgrade-info p {
    font-size: 0.9em;
    color: var(--color-secondary-light);
}

.upgrade-button {
    background-color: var(--color-accent-red);
    color: var(--color-text-light);
    border: none;
    border-radius: var(--border-radius-button);
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 90px;
    white-space: nowrap;
}

.upgrade-button:hover {
    background-color: var(--color-accent-red-hover);
    transform: translateY(-2px);
}

.upgrade-button:active {
    transform: translateY(0);
    background-color: var(--color-accent-red-active);
}

.upgrade-button:disabled {
    background-color: var(--color-disabled-button);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    #game-container {
        padding: 20px;
        max-width: 90%;
    }

    h1 {
        font-size: 2em;
    }

    #score-wrapper {
        font-size: 1.8em;
    }

    #hamster-clicker {
        width: 180px;
        height: 180px;
        margin-bottom: 25px;
    }

    #hamster-clicker::before {
        font-size: 80px;
    }

    #upgrade-shop {
        padding: 15px;
        margin-top: 25px;
    }

    #upgrade-shop h2 {
        font-size: 1.6em;
    }

    .upgrade-item {
        padding: 12px;
    }

    .upgrade-info h3 {
        font-size: 1.2em;
    }

    .upgrade-info p {
        font-size: 0.85em;
    }

    .upgrade-button {
        padding: 8px 12px;
        font-size: 0.9em;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    #game-container {
        padding: 15px;
        border-radius: var(--border-radius-secondary);
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    #score-wrapper {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    #hamster-clicker {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    #hamster-clicker::before {
        font-size: 70px;
    }

    #upgrade-shop {
        padding: 10px;
        margin-top: 20px;
    }

    #upgrade-shop h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .upgrade-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .upgrade-info {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .upgrade-button {
        width: 100%;
        padding: 10px;
        font-size: 1em;
        min-width: unset;
    }
}