/* ==========================================================
   1. GLOBAL PASTEL RAINBOW PALETTE & RESET
   ========================================================== */
:root {
  --pastel-pink: #ffd1dc;
  --pastel-blue: #c4e3ed;
  --pastel-green: #d2f5e3;
  --pastel-yellow: #fff3cd;
  --pastel-purple: #e3d7ff;
  
  --text-dark-blue: #1c3144;
  --border-blue: #a8d5e5;

  /* Font Variables */
  --main-font: 'Nunito', sans-serif;
  --header-font: 'Coiny', cursive;
}

html {
  scroll-behavior: smooth;
}

/* Universal Box-Sizing Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--pastel-blue); /* */
  font-family: var(--main-font); /* Applies Nunito everywhere */ /*[cite: 2] */
  color: var(--text-dark-blue); /*[cite: 2] */
  margin: 0;
  padding: 15px; /* Slightly tighter edge padding for mobile */
}

/* Applies Coiny to all Headings & Banner Titles */
h1, h2, h3, .site-header h1 {
  font-family: var(--header-font);
  letter-spacing: 0.5px;
}

/* 3-Column Site Container Layout */
.site-container {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}

/* ==========================================================
   1.5 CENTER ALIGNMENT & BANNER IMAGE RESPONSIVENESS
   ========================================================== */

/* Center alignment for the header block */
.site-header {
  text-align: center;
}

/* Banner Image Responsiveness & Formatting */
.site-banner {
  max-width: 100%;       /* Shrinks automatically on phone screens */
  height: auto;           /* Preserves original aspect ratio when scaling */
  display: block;         /* Allows auto-margins to center it */
  margin: 0 auto 10px;    /* Top/Bottom margins + horizontally centered */
  border-radius: 8px;     /* Optional: rounds banner corners to match cards */
}

/* ==========================================================
   2. LEFT NAVIGATION SIDEBAR & RAINBOW BUTTONS
   ========================================================== */
.sidebar {
  width: 200px;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 12px;
  height: fit-content;
}

.profile-box {
  text-align: center;
  margin-bottom: 20px;
}

.avatar {
  max-width: 100%;       /* Prevents image from expanding past the sidebar */
  height: auto;           /* Keeps original proportions */
  border-radius: 50%;     /* Keeps your cute circular crop */ /*[cite: 3] */
  border: 2px dashed var(--border-blue); /* Keeps your dashed outline */ /*[cite: 3] */
  display: block;
  margin: 0 auto;         /* Keeps it centered inside the profile box */
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Base Navigation Button Styles */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--text-dark-blue);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.nav-btn:hover {
  transform: translateX(6px);
  filter: brightness(0.95);
}

/* --- AUTOMATIC RAINBOW CYCLE FOR NAV BUTTONS --- */
.nav-btn:nth-child(5n+1) { background-color: var(--pastel-pink); }
.nav-btn:nth-child(5n+2) { background-color: var(--pastel-yellow); }
.nav-btn:nth-child(5n+3) { background-color: var(--pastel-green); }
.nav-btn:nth-child(5n+4) { background-color: var(--pastel-blue); }
.nav-btn:nth-child(5n+5) { background-color: var(--pastel-purple); }


/* ==========================================================
   3. MIDDLE CONTENT & RIGHT SIDEBAR
   ========================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-sidebar {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Gradient Rainbow Border Outline for Boxes */
.site-header, .card, .side-card, .sidebar {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  
  /* Rainbow Gradient Border Magic */
  border: 3px solid transparent;
  border-image: linear-gradient(
    135deg, 
    var(--pastel-pink), 
    var(--pastel-yellow), 
    var(--pastel-green), 
    var(--pastel-blue), 
    var(--pastel-purple)
  ) 1;
}

.side-card h3 {
  margin-top: 0;
}

.side-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

/* ==========================================================
   4. HUB PAGE GRID STYLES
   ========================================================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.hub-card {
  background-color: #ffffff;
  padding: 15px;
  text-decoration: none;
  color: var(--text-dark-blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  /* Rainbow Gradient Border Magic */
  border: 3px solid transparent;
  border-image: linear-gradient(
    135deg, 
    var(--pastel-pink), 
    var(--pastel-yellow), 
    var(--pastel-green), 
    var(--pastel-blue), 
    var(--pastel-purple)
  ) 1;
}

.hub-card img {
  width: 100%;
  height: 180px;         /* Uniform square-ish height */
  object-fit: cover;     /* Crops neatly instead of stretching */
  border-radius: 8px;
  margin-bottom: 10px;
}

.hub-card:hover:not(.under-construction) {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  filter: brightness(0.98); /* Replaces border-color change with a subtle hover glow */
}

.hub-card.under-construction {
  opacity: 0.7;
  background-color: #fafafa;
  border-image: none; /* Disables gradient on construction cards */
  border: 2px dashed var(--border-blue); /* Keeps the cute retro dashed look */
}

.hub-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
}

.hub-badge.ready { background-color: var(--pastel-green); }
.hub-badge.soon { background-color: var(--pastel-yellow); }

/* ==========================================================
   5. MOBILE RESPONSIVENESS (Does not affect desktop!)
   ========================================================== */
@media (max-width: 768px) {
  body {
    padding: 10px; /* Gives nice even margins on phone edges */
  }

  .site-container {
    flex-direction: column; /*[cite: 2] */
    gap: 15px;
  }

  /* Make left sidebar, middle content, and right sidebar 
     all match 100% width evenly */
  .sidebar, 
  .main-content, 
  .right-sidebar {
    width: 100%;
    padding: 0; /* Lets individual cards handle padding evenly */
  }

  .sidebar {
    padding: 15px; /* Keeps sidebar inner padding crisp */
  }
}

/* ==========================================================
   6. STICKER IMAGE SIZING & BORDER CONTAINMENT
   ========================================================== */

/* Main grid container */
#sticker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* 1. Target both <a> link wrappers AND standalone <img> tags */
#sticker-grid > a,
#sticker-grid > img {
  display: inline-block;
  max-width: 120px !important;  /* Constrain the outer flex box */
  max-height: 120px !important;
  transition: transform 0.2s ease;
  text-decoration: none;
}

/* 2. Constrain the images inside link wrappers */
#sticker-grid img {
  width: 100%;
  height: 100%;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: contain;          /* Preserves original sticker proportions */
  display: block;
}

/* 3. Apply the playful hover zoom to whichever element is being hovered */
#sticker-grid > a:hover,
#sticker-grid > img:hover {
  transform: scale(1.1);
}