/* Base styles: global, body, header, footer */
:root {
    --color-brand-primary: #00D9B6; /* Bright playful teal */
    --color-brand-primary-dark: #00B29A;
    --color-accent-orange: #FFA726;
    --color-accent-purple: #AB47BC;
    --color-accent-blue: #42A5F5;
    --color-gray-800: #37474F;
}

body {
    font-family: 'Inter', 'Quicksand', 'Nunito', sans-serif;
    margin: 0;
    background-color: #E0F7F4; /* Lighter teal for playful vibe */
    color: var(--color-gray-800);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
html, body {
    height: 100%;
    overflow-x: hidden; /* Keep horizontal scroll locked */
    overflow-y: auto;   /* Allow vertical scrolling for the page */
}
main {
    flex: 1 0 auto;
    padding-top: 70px; /* Added padding to push content below the fixed header */
    /* Consider adjusting this value if your header height is different */
}

/* --- Header Styles --- */
.mdc-top-app-bar {
    background: linear-gradient(135deg, var(--color-brand-primary-dark), var(--color-brand-primary));
    color: var(--mdc-theme-on-primary, #ffffff);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    padding: 0 16px;
    height: 64px; /* Standard height for Material top app bar */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures title and actions are spaced out */
    position: fixed; /* Make nav bar sticky */
    top: 0;
    width: 100%;
    z-index: 1050; /* Ensure it's above other content but allows logo to overflow */
    overflow: visible; /* Allows logo to overflow */
}
.mdc-top-app-bar__title {
    color: #FFFDE7;
    font-family: 'Baloo 2', cursive;
}
.site-brand-link {
    text-decoration: none;
    color: inherit; /* Inherit color from parent, usually white or dark depending on theme */
    display: flex; /* Align logo and title nicely */
    align-items: center;
}
.site-logo {
    height: 78px; /* Increased by 25% from 62px */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Good practice, though flex alignment might override */
    margin-top: 5px; /* Added padding from the top */
}
.site-brand-link:hover,
.site-brand-link:focus {
    text-decoration: none; /* Ensure no underline on hover/focus */
}
.nav-links-section {
    display: flex; /* Default for larger screens */
    align-items: center; /* Align buttons vertically */
}
.mobile-menu-section {
    display: none; /* Hidden by default */
}

/* User Profile Section */
.user-profile-section {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.user-avatar {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* Remove underline for link */
    border-radius: 50%; /* Match the image border radius */
}

.user-avatar:hover,
.user-avatar:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none; /* Ensure no underline on hover/focus */
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 253, 231, 0.8);
    object-fit: cover;
    background-color: #FFB74D;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover .user-avatar-img,
.user-avatar:focus .user-avatar-img {
    border-color: #FFFDE7;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Add a subtle pulse animation for the user avatar */
@keyframes avatar-pulse {
    0% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 12px rgba(255, 183, 77, 0.3); }
    100% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
}

.user-avatar:hover .user-avatar-img {
    animation: avatar-pulse 1.5s ease-in-out infinite;
}

/* Ensure proper alignment and spacing in the left section */
.mdc-top-app-bar__section--align-start {
    display: flex;
    align-items: center;
    gap: 0;
}

/* --- Footer Styles --- */
.footer-content {
    padding: 20px; 
    text-align: center; 
}
.footer-link {
    color: #37474F; 
    text-decoration: none;
    font-size: 0.9em;
}
.footer-link:hover {
    color: var(--color-brand-primary-dark);
}

/* Headings use friendly display font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Baloo 2', cursive;
}

/* Navigation icon spacing */
.nav-icon {
    font-size: 18px;
    margin-right: 4px;
    vertical-align: middle;
}
