/* Import a round, cute font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* --- Global Resets & Theme Variables --- */
:root {
    --bg-color: #fff9f2;       /* Soft warm cream */
    --primary-pink: #ffb7b2;   /* Pastel flower pink */
    --primary-yellow: #ffe5b4; /* Warm cookie/daisy yellow */
    --cookie-brown: #7a5c43;   /* Soft chocolate brown for text */
    --cookie-dark: #523a28;    /* Darker brown for headings */
    --card-bg: #ffffff;
}
/* --- Cute Photo Gallery Section --- */
.gallery-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-section h2 {
    font-size: 2.5rem;
    color: var(--cookie-dark);
    margin-bottom: 40px;
    text-shadow: 2px 2px 0px var(--primary-pink);
}

/* The Grid Container */
.gallery-grid {
    display: grid;
    /* Automatically creates columns that fit the screen width */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 10px;
}

/* The Polaroid Frame Wrapper */
.gallery-item {
    perspective: 1000px; /* Gives a slight 3D feel when hovering */
}

.frame {
    background: white;
    border: 3px solid var(--cookie-dark);
    border-radius: 16px;
    padding: 15px 15px 25px 15px; /* Thicker bottom padding for the polaroid look */
    box-shadow: 0px 8px 0px var(--primary-yellow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.frame img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;   
    border-radius: 10px;
    border: 2px solid var(--cookie-dark);
}

/* Text Caption inside the Polaroid */
.caption {
    margin-top: 15px;
    font-weight: 600;
    color: var(--cookie-dark);
    font-size: 1.1rem;
}

/* --- Playful Hover Effects --- */

/* Alternate slight tilts for that scattered, cozy tabletop look */
.gallery-item:nth-child(odd) .frame {
    transform: rotate(-2deg);
}
.gallery-item:nth-child(even) .frame {
    transform: rotate(2deg);
}

/* When you hover, the photo straightens out, lifts up, and swaps shadow color */
.gallery-item:hover .frame {
    transform: translateY(-10px) scale(1.05) rotate(0deg);
    box-shadow: 0px 12px 0px var(--primary-pink);
    border-color: var(--cookie-dark);
    cursor: pointer;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--cookie-brown);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cookie-dark);
}

nav a {
    text-decoration: none;
    color: var(--cookie-brown);
    font-weight: 500;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-pink);
    color: white;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--cookie-dark);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px var(--primary-yellow);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* --- Cute Cookie & Flower Buttons --- */
.cute-btn {
    background-color: var(--primary-pink);
    color: white;
    border: 3px solid var(--cookie-dark);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0px 6px 0px var(--cookie-dark);
    transition: all 0.2s ease;
}

.cute-btn:hover {
    transform: translateY(3px);
    box-shadow: 0px 3px 0px var(--cookie-dark);
    background-color: #ff9aa2;
}

.cute-btn:active {
    transform: translateY(6px);
    box-shadow: 0px 0px 0px var(--cookie-dark);
}

/* --- Cards Section --- */
.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.card {
    background: var(--card-bg);
    border: 3px solid var(--cookie-dark);
    border-radius: 24px;
    padding: 30px;
    width: 280px;
    text-align: center;
    box-shadow: 0 8px 0px var(--primary-yellow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: floaty 4s ease-in-out infinite alternate;
}

/* Alternate animation delay for the second card icon */
.card:nth-child(2) .card-icon {
    animation-delay: 2s;
}

.card h3 {
    color: var(--cookie-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* --- Floating Background Elements --- */
.floating-decor {
    position: absolute;
    font-size: 2.5rem;
    z-index: -1;
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
}
/* --- Cute Button Link Item --- */
nav .nav-btn {
    background-color: var(--primary-yellow);
    color: var(--cookie-dark);
    border: 2px solid var(--cookie-dark);
    padding: 8px 18px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0px 4px 0px var(--cookie-dark);
    transition: all 0.2s ease;
   
}

/* Hover effect: lifts up slightly */
nav .nav-btn:hover {
    background-color: var(--primary-pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px var(--cookie-dark);
}

/* Active effect: squishes down when clicked */
nav .nav-btn:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px var(--cookie-dark);
}

/* Custom positioning and animations for background shapes */
.flower-1 { top: 15%; left: 10%; animation: floaty 6s ease-in-out infinite alternate; }
.cookie-1 { top: 25%; right: 12%; animation: floaty 5s ease-in-out infinite alternate-reverse; }
.flower-2 { bottom: 20%; right: 15%; animation: floaty 7s ease-in-out infinite alternate; }
.cookie-2 { bottom: 15%; left: 15%; animation: floaty 5.5s ease-in-out infinite alternate-reverse; }

/* --- Keyframe Animations --- */
@keyframes floaty {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-15px) rotate(10deg);
    }
}
/* --- Inline Menu Image --- */
.nav-menu {
    display: flex;
    align-items: center; /* Keeps text and the image perfectly centered on the same line */
    gap: 10px;           /* Adds cute, consistent spacing between items */
}

.menu-inline-img {
    width: 35px;
    height: 35px;
    aspect-ratio: 1 / 1;       /* Ensures it's a perfect square */
    object-fit: cover;         /* Centers the image content inside the circle */
    border-radius: 50%;        /* Makes it a perfect round circle */
    border: 2px solid var(--cookie-dark);
    box-shadow: 0px 3px 0px var(--primary-yellow);
    margin-left: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* Playful wiggle/lift when you hover over the menu image */
.menu-inline-img:hover {
    transform: translateY(-2px) scale(1.1) rotate(5deg);
    box-shadow: 0px 4px 0px var(--primary-pink);
}

/* --- Menu Button Stack Container --- */
.nav-button-stack {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    align-items: center;    /* Centers them relative to each other */
    gap: 8px;              /* Creates a cute little gap between button and photo */
    position: relative;
}

/* Make sure the main nav aligns everything nicely even with the taller stack */
header nav {
    display: flex;
    align-items: center;
}


/* --- Mini Polaroid Style --- */
.mini-frame {
    background: white;
    border: 2px solid var(--cookie-dark);
    border-radius: 8px;
    padding: 6px 6px 12px 6px; /* Polaroid padding scaled way down */
    box-shadow: 0px 4px 0px var(--primary-yellow);
    width: 60px;               /* Keeps it tiny and out of the way */
    transform: rotate(-3deg);  /* Playful menu tilt */
    transition: all 0.2s ease;
    pointer-events: none;      /* Makes clicks pass right through to elements below if needed */
}

.mini-frame img {
    width: 100%;
    aspect-ratio: 1 / 1;     
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid var(--cookie-dark);
    display: block;
}


.nav-button-stack:hover .mini-frame {
    transform: translateY(2px) rotate(0deg) scale(1.05);
    box-shadow: 0px 5px 0px var(--primary-pink);
}


.menu-playlist-container {
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.mini-player {
    background: white;
    border: 2px solid var(--cookie-dark);
    border-radius: 16px;
    padding: 8px 12px;
    box-shadow: 0px 4px 0px var(--primary-yellow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 180px; 
}

.track-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cookie-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-icon {
    animation: floaty 3s ease-in-out infinite alternate;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.player-controls button {
    background: var(--bg-color);
    border: 2px solid var(--cookie-dark);
    border-radius: 8px;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.9rem;
    box-shadow: 0px 2px 0px var(--cookie-dark);
    transition: all 0.1s ease;
}

.player-controls button:hover {
    background: var(--primary-pink);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0px 3px 0px var(--cookie-dark);
}

.player-controls button:active {
    transform: translateY(2px);
    box-shadow: 0px 0px 0px var(--cookie-dark);
}

.player-controls button.active-toggle {
    background: #ff9aa2;
    color: white;
    box-shadow: inset 0px 2px 4px rgba(0,0,0,0.15);
}

