/* Pink theme colors */
:root {
  --pink-color: #e83e8c;
  --pink-dark: #b32969;
  --pink-light: #f7bbd1;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
  background: #fff;
  color: #333;
  font-size: 16px; /* default desktop font */
}

.nav-link {
  color: black !important;
}

.nav-link:hover {
  color: var(--pink-dark) !important;
}

/* Sidebar styles (desktop default) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: var(--pink-dark);
  color: white;
  padding-top: 30px;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--pink-light);
}

.sidebar-nav {
  margin-top: 40px;
  width: 100%;
}

.sidebar-nav .nav-link {
  color: var(--pink-light);
  font-weight: 600;
  padding: 10px 15px;
  transition: background-color 0.3s, color 0.3s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background-color: var(--pink-light);
  color: var(--pink-dark);
  border-radius: 4px;
  text-decoration: none;
}

/* Main content area */
.main-content {
  margin-left: 220px;
}

/* Section styling */
.section {
  padding: 80px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-about {
  background-color: var(--pink-dark);
  color: white;
  text-align: center;
}

h1, h2 {
  font-weight: 700;
}

h2 {
  color: var(--pink-dark);
}

h3 {
  line-height: 1.2;
}

p {
  line-height: 1.2;
}

.section-resume ul {
  list-style-type: disc;
  margin-left: 20px;
}

.section-interests,
.section-photography,
.section-volunteering,
.section-music,
.section-contact,
.section-reading {
  background-color: var(--pink-dark);
  color: white;
}

.section-contact a {
  color: white;
  text-decoration: underline; /* optional */
}

.footer {
  flex-shrink: 0;
  background-color: #f8f9fa;
}

.resume-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff69b4; /* pink theme */
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
}

.resume-button:hover {
  background-color: #ff85c1;
}

/* Gallery styling */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--pink-dark);
  text-align: center;
  max-width: 300px;
  word-wrap: break-word;
}

.spotify-playlist {
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Book list styling */
.book-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.book-list li {
  padding: 1rem;
  border: 1px solid var(--pink-dark);
  border-radius: 8px;
  color: black;
  margin-bottom: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.book-list li:hover {
  transform: translateY(-3px);
}

.book-list strong {
  font-size: 1.1rem;
  color: var(--pink-dark);
}

.book-list .status {
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.2rem;
}

/* ------------------- */
/* Mobile Responsive   */
/* ------------------- */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: 20px;
    flex-direction: column;
  }

  .container {
    width: 100%;
    margin: 0 auto;
  }

  /* Sidebar becomes a horizontal top bar with photo */
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    box-shadow: none;
  }

  /* Keep photo visible on mobile */
  .sidebar-photo {
    display: block !important;
    margin-bottom: 10px;
  }

  .sidebar-photo img {
    width: 80px;
    height: 80px;
    border: 3px solid var(--pink-light);
    object-fit: cover;
  }

  /* Navigation links horizontal */
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }

  .sidebar-nav .nav-link {
    padding: 8px 12px;
    font-size: 14px;
    flex: 1 1 auto; /* stretch evenly */
    text-align: center;
  }

  .main-content {
    margin-left: 0; /* no left margin on mobile */
  }

  /* Gallery responsive */
  .gallery img {
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
  }

  /* Embeds responsive */
  .embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }

  .embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}
