/* style.css */

:root {
    /* THE COLOR PALETTE 🎨 */
    --bg-color: #fff0f5;       /* Lavender Blush (Very light pink) */
    --card-bg: #ffffff;        /* White */
    --text-color: #6d4c41;     /* Warm Brown (Softer than black) */
    --accent-pink: #ff8da1;    /* The button/link color */
    --nav-bg: #ffe4e1;         /* Misty Rose */
}

body {
    /* REPLACE 'background.jpg' with your actual file name inside the images folder */
    background-image: url('https://t3.ftcdn.net/jpg/06/77/24/70/360_F_677247012_VWBB4KS1TFzU8HVeciBGYLm96CvmtsrV.jpg');
    
    /* Ensures the image covers the whole screen without stretching weirdly */
    background-size: cover;
    
    /* Centers the image */
    background-position: center;
    
    /* OPTIONAL: Makes the background stay still while you scroll (Parallax effect) */
    background-attachment: fixed; 
    
    /* Keep these from before */
    color: var(--text-color);
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
}
/* NAVIGATION BAR */
nav {
    background-color: var(--nav-bg);
    padding: 15px;
    position: sticky; /* Keeps menu at top while scrolling */
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom: 3px solid white;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    margin: 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--accent-pink);
    border-bottom: 2px dashed var(--accent-pink);
}

/* CONTAINER */
.container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative; /* Needed for positioning cats */
}

/* HEADINGS */
h1 {
    color: var(--accent-pink);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px white;
}

/* CARDS (Sections) */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 8px 15px rgba(255, 182, 193, 0.3); /* Pink shadow */
    position: relative;
    border: 2px solid white;
}

/* BUTTONS */
.btn {
    background-color: var(--accent-pink);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05); /* Grows slightly when hovered */
    background-color: #ff6b8b;
}

/* CAT DECORATIONS (The Fun Part) */
.cat-img {
    border-radius: 15px;
    margin: 10px;
}

.floating-cat {
    max-width: 100px;
    border-radius: 50%; /* Circle shape */
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Specific Cat Placements */
.cat-divider {
    margin: 30px 0;
    opacity: 0.8;
}

/* FOOTER */
footer {
    padding: 40px;
    font-size: 0.8rem;
    color: #999;
}
/* --- NEW FLOATING SIDE IMAGES --- */

/* Generic style for all floating side images */
.float-side {
    position: fixed; /* Stays in place while scrolling */
    z-index: -1;     /* Puts them BEHIND the main content */
    opacity: 0.7;    /* Makes them slightly see-through so they aren't distracting */
    max-width: 120px; /* Size limit */
    pointer-events: none; /* Ensures you can click 'through' them if they overlap buttons */
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(219, 39, 119, 0.2); /* Soft pink shadow */
}

/* Top Left Image */
.float-left-top {
    top: 80px;    /* Distance from top */
    left: -20px;  /* Peeking in from the left side */
    transform: rotate(15deg); /* Angled clockwise */
}

/* Bottom Left Image */
.float-left-bottom {
    bottom: 100px;
    left: 10px;
    transform: rotate(-10deg); /* Angled counter-clockwise */
}

/* Top Right Image */
.float-right-top {
    top: 120px;
    right: -15px; /* Peeking in from the right side */
    transform: rotate(-20deg);
}

/* Bottom Right Image */
.float-right-bottom {
    bottom: 50px;
    right: 20px;
    transform: rotate(25deg);
}

/* MOBILE TWEAK: On small screens, hide them or make them smaller so they don't crowd the text */
@media (max-width: 768px) {
    .float-side {
        max-width: 80px; /* Smaller on phone */
        opacity: 0.5;    /* More faded */
    }
    /* Optional: uncomment the line below to completely hide them on phones */
    /* .float-side { display: none; } */
}
/* KEYFRAMES FOR SHAKING ANIMATION */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    15% { transform: translate(-1px, -2px) rotate(-1deg); }
    30% { transform: translate(-3px, 0px) rotate(1deg); }
    45% { transform: translate(3px, 2px) rotate(0deg); }
    60% { transform: translate(1px, -1px) rotate(1deg); }
    75% { transform: translate(-1px, 2px) rotate(-1deg); }
    90% { transform: translate(-3px, 1px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Apply shake to all major cat images on hover */
.floating-cat:hover,
.float-side:hover {
    /* Apply the animation */
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    /* This ensures the image resets its position after the shake */
    transform: translate3d(0, 0, 0); 
    /* Make the hover effect a bit more pronounced */
    box-shadow: 0 0 20px 5px var(--accent-pink); 
}
.floating-cat:hover,
.float-side:hover,
.cat-img:hover { /* <--- UPDATED: ADDED .cat-img:hover */
    /* Apply the animation */
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    /* This ensures the image resets its position after the shake */
    transform: translate3d(0, 0, 0); 
    /* Make the hover effect a bit more pronounced */
    box-shadow: 0 0 20px 5px var(--accent-pink); 
}
/* Style for the new Logout button in the nav */
#logout-btn {
    border: 2px solid white; /* Adds a nice border */
    border-radius: 5px;      /* Slightly rounded corners */
    padding: 8px 12px;       /* Adds some space */
    transition: background-color 0.3s;
}

#logout-btn:hover {
    background-color: #f06292 !important; /* Darker pink on hover */
}