/* ==========================================================================
   1. GLOBAL STYLES & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
    
    /* These three lines keep the footer pinned to the bottom of the screen */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. TYPOGRAPHY & LINKS
   ========================================================================== */
h1, h2, h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004499;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: top;
    flex-wrap: wrap;
    gap: 1rem;
}

header h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-weight: 500;
    color: #555555;
}

nav a:hover {
    color: #0066cc;
}

/* ==========================================================================
   4. MAIN CONTENT AREA
   ========================================================================== */
main {
    flex: 1; /* Pushes the footer down by taking up all remaining vertical space */
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ==========================================================================
   USER PROFILE MENU & AVATAR STYLES
   ========================================================================== */

/* 1. The outer wrapper container */
.user-profile-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes the menu to the right side of the header */
}

/* 2. The interactive button that holds the name and image */
.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;          /* Puts clean spacing between the text and the photo */
    padding: 0.5rem 1rem;
    border-radius: 50px;   /* Creates a pill-shaped background hover effect */
    transition: background-color 0.2s ease;
}

.profile-btn-logo {
    background: none;
    border: none;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;          /* Puts clean spacing between the text and the photo */
    padding: 0.5rem 1rem;
    border-radius: 50px;   /* Creates a pill-shaped background hover effect */
    transition: background-color 0.2s ease;
}

/* Subtle background tint when you hover over the profile area */
.profile-btn:hover {
    background-color: #f1f3f5;
}

/* 3. The username text next to the image */
.user-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #495057;
}

/* 4. The strict image constraints */
.profile-pic {
    width: 250px !important;
    height: 250px !important;
    /* border-radius: 50%; */
    object-fit: cover;
    display: block;        /* Prevents random inline alignment gaps */
}

.profile-logo {
    width: 50px !important;
    height: 50px !important;object-fit: cover;
    display: block;        /* Prevents random inline alignment gaps */
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
  gap: 10px; /* Space between the pictures */
}

.image-grid img {
  width: 100%; /* Makes the image fit the grid cell */
  height: auto; /* Keeps the correct aspect ratio */
  display: block;
}