/* =========================================================
   MOREA Studio — Projects Page (2025)
   ========================================================= */

html, body {
  background-color: #f0ece5 !important;
  color: #4c3926;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

body .site-content .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.projects-page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  position: relative;
  z-index: 2;
}

/* === INTRO === */
.projects-intro {
  margin-bottom: 3rem;
  text-align: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4c3926;
  text-decoration: none;
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.back-link::before {
  content: "←";
  margin-right: 6px;
}
.back-link:hover {
  color: #bfa17a;
  opacity: 1;
}

.projects-title {
  font-size: clamp(2.6rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 1.2rem 0;
}

.projects-desc {
  font-size: 1.05rem;
  color: rgba(76, 57, 38, 0.75);
  max-width: 760px;
  margin-bottom: 2.5rem;
}

/* === FILTER BAR === */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(76, 57, 38, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.filter-bar input[type="radio"] { display: none; }
.filter-bar label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(76, 57, 38, 0.55);
  transition: color 0.25s ease;
}
.filter-bar label span::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid rgba(76, 57, 38, 0.4);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  transition: all 0.25s ease;
}
.filter-bar input[type="radio"]:checked + span {
  color: #4c3926;
  font-weight: 600;
}
.filter-bar input[type="radio"]:checked + span::before {
  background: #4c3926;
  border-color: #4c3926;
}

/* === MOBILE FILTER === */
.filter-mobile {
  display: none;
  position: relative;
}
.filter-mobile select {
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 0.5rem;
  border: none;
  border-bottom: 1px solid rgba(76, 57, 38, 0.35);
  background: transparent;
  color: #4c3926;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4c3926 50%),
    linear-gradient(135deg, #4c3926 50%, transparent 50%);
  background-position: right 1rem center, right 0.6rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filter-mobile select:focus {
  outline: none;
  border-bottom-color: #bfa17a;
}

.post-count {
  color: rgba(76, 57, 38, 0.7);
  font-size: 0.9rem;
}

/* === GRID === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

/* === PROJECT CARD === */
.project-card {
  border-radius: 6px;
  overflow: hidden;
  background: rgba(240, 236, 229, 0.25);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.15);
  background: rgba(240, 236, 229, 0.5);
}

.project-card-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 6px 6px 0 0;
  transition: transform 1.1s ease, filter 0.6s ease;
}
.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* === CARD INFO (Title left, Meta right) === */
.project-card-info {
  padding: 1rem 1.2rem 1.5rem;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 1rem;
}

.project-card-title {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
  color: #4c3926;
  flex-shrink: 0;
}

.project-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
.project-card-title a:hover {
  color: #bfa17a;
}

.project-card-meta {
  font-size: 0.9rem;
  color: rgba(76, 57, 38, 0.6);
  white-space: nowrap;
  margin-left: auto;
}
.project-card-meta::before {
  content: "—";
  margin: 0 6px;
  color: #bfa17a;
  font-weight: 300;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .projects-page-wrap { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
  .filter-bar { display: none; }
  .filter-mobile { display: inline-block; width: 60%; margin-top: 1rem; }
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    border: none;
  }
  .projects-grid { gap: 1.8rem; }
  .project-card-img img { height: 240px; }
  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .project-card-meta::before { content: none; }
	.post-count {
    display:none;
}
}

@media (max-width: 480px) {
  .projects-page-wrap { padding: 1rem 1rem; }
  .projects-title { font-size: 2rem; }
  .project-card-info { padding: 0.8rem 1rem 1.2rem; }
}
