/* ===================================================
   NEAPOLITAN WHIMSY - CORE THEME & RESPONSIVE LAYOUT
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  /* Softened Neapolitan Palette (Gentle & Cohesive) */
  --strawberry: #f48ca7;
  --strawberry-light: #fce8ef;
  --strawberry-hover: #e87190;
  
  --vanilla: #fffbf7;
  --vanilla-tint: #fef7f2;
  --vanilla-dark: #f6eee5;
  
  /* Softened Milk Chocolate & Rosy Taupe (No harsh dark brown) */
  --cocoa: #5c4542;
  --cocoa-medium: #7d5f5a;
  --cocoa-light: #b0918b;
  --cocoa-soft: #fbf5f2;

  /* Pastel Wood / Cubby Palette */
  --cubby-wood: #eddcd2;
  --cubby-border: #d8baa9;
  --cubby-shelf: #caa491;
  --cubby-molding: #bd927d;

  /* Accent Pastels */
  --matcha: #b7d5b8;
  --butter: #fdf0cd;
  --lavender: #e5d4ed;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-handwritten: 'Gaegu', cursive;
  --font-body: 'Nunito', sans-serif;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-cozy: 0 8px 24px rgba(92, 69, 66, 0.07);
  --shadow-polaroid: 0 8px 20px rgba(92, 69, 66, 0.1);
  --border-cocoa: 2px dashed rgba(176, 145, 139, 0.35);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--cocoa);
  background-color: var(--vanilla);
  line-height: 1.65;
  font-size: 16px;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Links */
a {
  color: var(--cocoa);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--strawberry-hover);
}

/* ===================================================
   TOP ACCENT STRIP & HEADER
   =================================================== */

.top-bar {
  background: linear-gradient(90deg, var(--strawberry-light), var(--vanilla-tint), var(--cocoa-soft));
  border-bottom: 2px solid rgba(244, 140, 167, 0.3);
  text-align: center;
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  padding: 6px 12px;
  color: var(--cocoa-medium);
  letter-spacing: 0.5px;
  white-space: normal;
  line-height: 1.4;
}

.site-header {
  padding: 36px 16px 18px;
  text-align: center;
  position: relative;
  max-width: 100%;
}

.site-title-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-sparkle-left,
.header-sparkle-right {
  font-size: 1.4rem;
  color: var(--strawberry);
  user-select: none;
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 700;
  color: var(--cocoa);
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

.site-title .title-accent {
  color: var(--strawberry);
  font-style: italic;
}

.site-subtitle {
  font-family: var(--font-handwritten);
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  color: var(--cocoa-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px auto 0;
  max-width: 92vw;
  text-align: center;
}

.site-subtitle .sub-sep {
  opacity: 0.5;
}

/* Responsive Navigation Pills */
.site-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  padding: 0 10px;
}

.nav-pill-box {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--strawberry-light);
  box-shadow: 0 4px 14px rgba(92, 69, 66, 0.05);
  justify-content: center;
}

.nav-item {
  padding: 7px 18px;
  font-family: var(--font-handwritten);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--cocoa-medium);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  background: var(--strawberry);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ===================================================
   LAYOUT CONTAINER
   =================================================== */

.main-container {
  max-width: 1140px;
  margin: 24px auto 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ===================================================
   MAIN CONTENT COLUMN
   =================================================== */

.content-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0; /* Prevent flex blowout */
}

/* Post Cards */
.post-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(244, 140, 167, 0.3);
  box-shadow: var(--shadow-cozy);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(92, 69, 66, 0.09);
}

.post-header {
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(176, 145, 139, 0.25);
  padding-bottom: 14px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--cocoa-light);
  flex-wrap: wrap;
  gap: 6px;
}

.post-date {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: var(--strawberry);
  font-weight: 700;
}

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--vanilla-tint);
  color: var(--cocoa);
  border: 1px solid rgba(176, 145, 139, 0.25);
  display: inline-block;
}

.tag-dae {
  background: var(--strawberry-light);
  color: var(--strawberry-hover);
  border-color: rgba(244, 140, 167, 0.35);
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.95rem);
  color: var(--cocoa);
  line-height: 1.3;
  margin-top: 4px;
}

.post-title a:hover {
  color: var(--strawberry);
}

.post-body {
  font-size: 1.05rem;
  color: var(--cocoa);
  line-height: 1.75;
  word-break: break-word;
}

.post-body p {
  margin-bottom: 16px;
}

/* Post Sign-off */
.post-signoff {
  font-family: var(--font-handwritten);
  font-size: 1.35rem;
  color: var(--strawberry-hover);
  margin-top: 20px;
  display: inline-block;
}

/* ===================================================
   SIDEBAR COLUMN
   =================================================== */

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid rgba(244, 140, 167, 0.28);
  box-shadow: var(--shadow-cozy);
  position: relative;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--cocoa);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed rgba(176, 145, 139, 0.2);
  padding-bottom: 8px;
}

.widget-title .icon {
  color: var(--strawberry);
}

/* Profile Widget */
.profile-card {
  text-align: center;
}

.profile-avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 14px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--vanilla-tint);
  box-shadow: 0 4px 14px rgba(92, 69, 66, 0.1);
  background-color: var(--strawberry-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cocoa);
}

.profile-tagline {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  color: var(--strawberry-hover);
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--cocoa-medium);
  margin-bottom: 16px;
  line-height: 1.55;
}

/* Sticky Note Widget */
.sticky-note {
  background-color: #fff9d6;
  border-radius: 4px;
  padding: 18px;
  box-shadow: 3px 5px 12px rgba(92, 69, 66, 0.1);
  transform: rotate(-1deg);
  border: 1px solid #f2e3a8;
  position: relative;
}

.sticky-note-pin {
  width: 14px;
  height: 14px;
  background: var(--strawberry);
  border-radius: 50%;
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.sticky-text {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  color: var(--cocoa);
  line-height: 1.5;
}

/* ===================================================
   FOOTER
   =================================================== */

.site-footer {
  text-align: center;
  padding: 36px 16px;
  background: var(--vanilla-tint);
  border-top: 2px dashed rgba(244, 140, 167, 0.35);
  color: var(--cocoa-medium);
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
}

.footer-bow {
  font-size: 1.5rem;
  color: var(--strawberry);
  margin-bottom: 6px;
}

/* ===================================================
   RESPONSIVE MEDIA QUERIES (Small & Big Screens)
   =================================================== */

/* Tablets and Laptops */
@media (max-width: 950px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 20px auto 45px;
  }
}

/* Mobile Screens */
@media (max-width: 600px) {
  .site-header {
    padding: 22px 10px 14px;
  }

  .top-bar {
    font-size: 0.92rem;
    padding: 5px 8px;
    line-height: 1.35;
  }

  .site-title {
    font-size: 2.1rem;
  }

  .site-subtitle {
    font-size: 1.15rem;
    gap: 4px;
    line-height: 1.35;
  }

  .site-subtitle .sub-sep {
    display: none; /* Hide bullet dots on mobile for natural centered wrap */
  }

  .site-nav {
    margin-top: 16px;
    padding: 0 4px;
  }

  .nav-pill-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-radius: 16px;
    padding: 6px;
    width: 100%;
    max-width: 310px;
    margin: 0 auto;
  }

  .nav-item {
    padding: 6px 8px;
    font-size: 1.1rem;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .post-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }

  .post-title {
    font-size: 1.4rem;
  }

  .profile-avatar-wrapper {
    width: 105px;
    height: 105px;
  }
}
