/* ----------------------------------------
   Collections Layout & Base Typography
------------------------------------------- */

body {
  background-color: #FCF5DC;
  color: var(--text-color);
  font-family: "sofia-pro", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  max-width: 500px;
  margin: 0 auto;
  padding: 6rem 1rem 0rem 1rem;
  line-height: 1.6;
}


.collections-container {
  margin: 0 auto;
  padding: 3rem 0rem 2rem 0rem !important;
  line-height: 1.6;
}

/* ----------------------------------------
   Collections Hero Section
------------------------------------------- */
.hero-logo {
  text-align: center !important;
  align-items: center !important;
}

.hero-nav {
  width: 100%;
  overflow: hidden;
  margin-top: -50px;
  padding-bottom: 40px;
}

.back-link {
  text-decoration: none;
}

.hero-left {
  text-align: left !important;
  align-items: left !important;
  width: 50%;
  float: left;
}

.hero-right {
  text-align: right !important;
  align-items: right !important;
  width: 50%;
  float: right;
}

.collections-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.collections-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.collections-intro {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ----------------------------------------
   Collections Listing Cards
------------------------------------------- */
.collections-post {
  border-radius: 24px;
  padding: 0.5rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
  display: block !important;
  min-height: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

.collections-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.collections-post img {
  width: 100%;
  display: block;
  /* position: absolute; */
  border-radius: 16px;
  object-fit: cover;
  /* margin-bottom: 1rem; */
  max-height: 240px;
}

.collections-post h2 {
  font-size: 1.4rem;
  margin: 6px 0 0.4rem 10px;
  line-height: normal;
  color: black;
  
}

.collections-post p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ----------------------------------------
   Category Pills
------------------------------------------- */
.category-pill {
  display: inline-block;
  position: relative;
  margin: 1rem 0px 0.3rem 9px;
  background-color: #fff;
  color: var(--text-color);
  font-size: 0.67rem;
  padding: 2px 10px;
  border-radius: 12px;
  /* margin-bottom: 10px; */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.pill-container {
  margin: 10px 10px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ----------------------------------------
   Collections Post Detail Page
------------------------------------------- */
#collections-post h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.collections-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cover-image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 320px;
  margin-bottom: 2rem;
}

/* ----------------------------------------
   Markdown Content Styling
------------------------------------------- */
.collections-content {
  font-size: 1.05rem;
  color: var(--text-color);
}

.collections-content h2,
.collections-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.collections-content p {
  margin-bottom: 1.2rem;
}

.collections-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.collections-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--text-muted);
  font-style: italic;
  color: var(--text-muted);
}

.collections-content ul,
.collections-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.collections-content li {
  margin-bottom: 0.5rem;
}

/* ----------------------------------------
   Category Card Backgrounds
------------------------------------------- */
.card-fashion {
  background-color: #E3E062;
}

.card-beauty {
  background-color: #feadd2;
}

.card-jewelry {
  background: linear-gradient(to top right, #d19e1d, #ffd86e, #e3a812);
  background-size: 150%;
  animation: MoveBackgroundPosition 6s ease-in-out infinite;
  color: #333;
}

.card-learning {
  background-color: #70E2FF;
}

.card-default {
  background-color: var(--project-bg);
}

@keyframes MoveBackgroundPosition {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ----------------------------------------
   Arrow Link Style (matches home)
------------------------------------------- */
a:not(.header-logo) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s ease;
}

a:not(.header-logo,.back-link)::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666666' viewBox='0 0 256 256'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

a:not(.header-logo):hover {
  color: var(--text-color);
}

a:not(.header-logo):hover::after {
  transform: translate(2px, -2px);
}

/* ----------------------------------------
   Footer & Contact Section (uses main styles)
------------------------------------------- */
.contact {
  margin-bottom: 2rem;
}

.contact h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.contact address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.legal {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ----------------------------------------
   Responsive Design
------------------------------------------- */
@media (max-width: 600px) {
  .collections-container {
    padding: 4rem 1.5rem;
  }

  .collections-post img,
  .cover-image {
    max-height: 220px;
  }

  .collections-content {
    font-size: 1rem;
  }
}