@import url("../leather-seam-asset-path.css");

/* Sky Background */
.background-clouds {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100%;
  z-index: 0;
  background: url('../Sky.png') center center / cover no-repeat;
  pointer-events: none;
}

/* Layout */
.layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
  max-width: min(1800px, calc(100vw - 24px));
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  margin: 20px;
  flex-grow: 1;
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 100%;
  overflow-x: hidden;
  /* Main panel: seam leather + stitch frame */
  background-color: #d0b589;
  background-image:
    linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size:
    100% 100%,
    var(--leather-tile-size) var(--leather-tile-size),
    var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: multiply, normal, normal;
  border: 3px solid #958062;
  border-radius: 22px;
  box-shadow:
    0 14px 34px rgba(42, 24, 12, 0.32),
    0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 248, 235, 0.35),
    inset 0 -4px 14px rgba(80, 50, 30, 0.14),
    inset 2px 0 0 rgba(255, 255, 255, 0.12),
    inset -2px 0 0 rgba(0, 0, 0, 0.06);
  position: relative;
  padding: 16px 12px;
}

.layout-wrapper .container::before {
  content: '';
  position: absolute;
  inset: 11px;
  border: 2px dashed rgba(218, 165, 32, 0.48);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(58, 40, 28, 0.12);
}

.layout-wrapper .container > * {
  position: relative;
  z-index: 1;
}

/* Legacy theme override */
body.legacy-theme-active .container {
  background: url('../Page.png') center center / 100% 100% no-repeat !important;
  background-image: url('../Page.png') !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.legacy-theme-active .layout-wrapper .container::before {
  display: none !important;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.logo-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}
.logo-text-img {
  height: 50px;
  width: auto;
}

.nav-buttons {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-auth-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nav-auth-buttons .nav-btn {
  width: 100%;
  padding: 8px 45px;
  font-size: 1rem;
}

.nav-btn {
  width: 100%;
  padding: 12px 0; /* Homepage-style compact padding */
  font-size: 1rem; /* Homepage-style font size */
  font-family: 'Baloo 2', cursive;
  border: none !important;
  border-radius: 10px;
  background: url('../GreyButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  cursor: none !important;
  outline: none !important;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
  -webkit-text-stroke: 0 !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease;
}

.nav-btn.active, 
.nav-btn:hover,
.nav-btn.active:focus,
.nav-btn:hover:focus,
.nav-btn.active:focus-visible,
.nav-btn:hover:focus-visible {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
  transform: translateY(-1px);
  outline: none !important;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.5) !important;
  -webkit-text-stroke: 0 !important;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
}

.nav-auth-buttons .nav-btn:hover {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
}

.greeting-avatar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.greeting {
  font-size: 2.5rem;
  color: #000;
  margin: 0;
}
.username {
  color: #000;
}

/* Main page title */
.main-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 30px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Baloo 2', cursive;
}

.avatar-edit-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
}
.avatar-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-text {
  position: absolute;
  bottom: 5px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 4px;
}


.featured-projects h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 25px;
}
/* Projects Section */
.projects-section {
  width: 100%;
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Enhanced Projects Section Header – bright leather */
.projects-section-header {
  background-color: #744832;
  background-image:
    linear-gradient(145deg, rgba(118, 74, 56, 0.62) 0%, rgba(154, 108, 82, 0.52) 50%, rgba(118, 74, 56, 0.62) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border-radius: 20px;
  padding: 25px 30px;
  margin-bottom: 25px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);
  border: 3px solid #523020;
  position: relative;
  max-width: 100%;
}

.projects-section-header::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(255, 200, 150, 0.2);
  border-radius: 12px;
  pointer-events: none;
}

.projects-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Baloo 2', cursive;
}

.projects-section-subtitle {
  font-size: 1rem;
  color: #3a2515;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 248, 235, 0.35);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  transition: grid-template-columns 0.2s ease;
}

/* Projects per row classes */
.projects-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.projects-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.projects-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.projects-grid.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.projects-grid.columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Default to 3 columns - responsive adjustments */
@media (max-width: 1399px) {
  .projects-grid:not([class*="columns-"]) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 10px;
  }
}
.project-card {
  background-color: transparent;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: visible;
  text-decoration: none;
  color: #1e293b;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  cursor: pointer;
}


.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 85% 55% at 30% 18%, rgba(255, 255, 255, 0.16) 0%, transparent 58%);
  pointer-events: none;
  z-index: 1;
}

.project-card > * {
  position: relative;
  z-index: 2;
}

/* Age-based content blurring - only blur thumbnail, not whole card */
.project-card.age-restricted {
  position: relative;
  cursor: not-allowed;
}

/* Only block clicks if the card is actually restricted (user is under 13) */
.project-card.age-restricted:not(.allow-view) {
  pointer-events: none;
}

/* Blur only the thumbnail image inside age-restricted cards */
.project-card.age-restricted .project-thumb img,
.project-card.age-restricted .project-thumbnail,
.project-card.age-restricted img {
  filter: blur(8px);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 38px rgba(42, 24, 12, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 248, 235, 0.45),
    inset 0 -4px 12px rgba(80, 50, 30, 0.14),
    inset 2px 0 0 rgba(255, 255, 255, 0.18),
    inset -2px 0 0 rgba(0, 0, 0, 0.06);
  border-color: #a08055;
}

.project-card:active {
  transform: translateY(-2px);
  box-shadow:
    0 8px 18px rgba(42, 24, 12, 0.26),
    inset 0 3px 8px rgba(0, 0, 0, 0.12),
    inset 0 -2px 0 rgba(255, 248, 235, 0.25);
}

.project-thumb {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(60, 42, 28, 0.35), rgba(40, 28, 18, 0.45));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid #5a3a24;
  border-bottom: 3px solid #6b4a30;
  flex-shrink: 0;
}

.project-thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-thumb-overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: white;
  padding: 3px 6px;
  display: inline-block;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000 !important;
}

.project-thumb-overlay p {
  font-size: 0.6rem;
  margin: 0;
  color: white;
  opacity: 0.95;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    -2px 0 0 #000,
    2px 0 0 #000,
    0 -2px 0 #000,
    0 2px 0 #000;
}

.project-thumb .category-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.5rem;
  color: white;
  padding: 3px 6px;
  border-radius: 2px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 3;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.project-thumb .category-badge.art {
  background: #dc2626;
}

.project-thumb .category-badge.music {
  background: #eab308;
}

.project-thumb .category-badge.game {
  background: #2563eb;
}

.project-thumb .category-badge.gallery {
  background: linear-gradient(90deg, #dc2626 0%, #eab308 100%);
}

.project-thumb .category-badge.jam {
  background: #87ceeb;
}

.project-thumb .category-badge.poll {
  display: none;
}

.project-thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: thumb-spin 0.8s linear infinite;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.project-thumb.image-visible::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes thumb-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.project-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.3s ease;
  opacity: 0;
}

.project-thumb img[src],
.project-thumb img[data-src] {
  opacity: 1;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-card-info {
  padding: 10px 14px 14px 14px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  min-width: 0;
}

.project-card-info-top {
  padding: 8px 12px;
  flex-grow: 0;
  gap: 3px;
}

.project-card-info h3 {
  font-size: 1.6rem !important;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  font-family: 'Baloo 2', cursive;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    -2px 0 0 #000,
    2px 0 0 #000,
    0 -2px 0 #000,
    0 2px 0 #000 !important;
}

.project-card-info-top h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(255, 248, 235, 0.4);
  -webkit-line-clamp: 1;
}

.project-card-info p {
  font-size: 0.65rem;
  color: #3a2515;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-weight: 500;
}

.project-card-info-top p {
  font-size: 0.55rem;
}

.project-card-info-top .project-type-badge {
  font-size: 0.5rem;
  padding: 2px 6px;
  border-radius: 6px;
  border-width: 1px;
}

.project-card-info-top .project-flair {
  font-size: 0.5rem;
  padding: 2px 6px;
  border-radius: 6px;
}

.project-card-info-top .ai-badge {
  font-size: 0.5rem;
  padding: 2px 5px;
  border-radius: 5px;
}

.project-date {
  font-size: 0.6rem;
  color: #5a3c1a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  font-weight: 400;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
    color: white;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    border: 1px solid #7d3c98;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Project Flairs - Genre and Subgenre */
.project-flair {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.genre-flair {
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: white;
}

.subgenre-flair {
  background: linear-gradient(145deg, #f093fb, #f5576c);
  color: white;
}

.project-card-info > div {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2px;
}

.project-type-badge {
  display: inline-block !important;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.9rem !important;
  font-weight: 700;
  text-transform: capitalize;
  color: #ffffff !important;
  background: linear-gradient(145deg, #eee3ca 0%, #dfc5aa 50%, #d0b589 100%);
  border: 1.5px solid #958062;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    -1px 0 0 #000,
    1px 0 0 #000,
    0 -1px 0 #000,
    0 1px 0 #000 !important;
  position: relative;
  align-self: flex-start;
}

.project-type-badge.art {
  background: linear-gradient(145deg, #eee3ca, #dfc5aa, #d0b589);
  color: #c0392b;
  border-color: #e74c3c;
}
.project-type-badge.game {
  background: linear-gradient(145deg, #eee3ca, #dfc5aa, #d0b589);
  color: #2980b9;
  border-color: #3498db;
}
.project-type-badge.music {
  background: linear-gradient(145deg, #eee3ca, #dfc5aa, #d0b589);
  color: #27ae60;
  border-color: #2ecc71;
}
.project-type-badge.article {
  background: linear-gradient(145deg, #eee3ca, #dfc5aa, #d0b589);
  color: #8e44ad;
  border-color: #9b59b6;
}
.project-type-badge.poll {
  background: linear-gradient(145deg, #eee3ca, #dfc5aa, #d0b589);
  color: #d68910;
  border-color: #f39c12;
}
.project-type-badge.gallery {
  background: linear-gradient(145deg, #eee3ca, #dfc5aa, #d0b589);
  color: #8e44ad;
  border-color: #9b59b6;
}
.project-type-badge.jam {
  background: linear-gradient(145deg, #eee3ca, #dfc5aa, #d0b589);
  color: #d68910;
  border-color: #f39c12;
}

.search-container {
  width: 100%;
  margin-bottom: 20px;
}

#search-bar {
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 2px solid #ccc;
}

@media (max-width: 1200px) {
  .main-content h1 {
    font-size: 2rem;
  }
  .projects-grid:not([class*="columns-"]) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 10px;
  }
}

/* Tablet and smaller - explore-specific content adjustments only */
@media (max-width: 768px) {
  .main-content h1 {
    font-size: 1.8rem;
  }
  .projects-section {
    margin-top: 15px;
  }
  .projects-grid:not([class*="columns-"]) {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
  .project-card-info h3 {
    font-size: 0.9rem;
    line-height: 1.2;
  }
  .project-card-info p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .main-content h1 {
    font-size: 1.5rem;
  }
  .projects-grid:not([class*="columns-"]) {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  .project-card-info h3 {
    font-size: 0.8rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .project-card-info p {
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 360px) {
  .main-content h1 {
    font-size: 1.3rem;
  }
  .project-card-info h3 {
    font-size: 0.75rem;
    line-height: 1.1;
  }
  .project-card-info p {
    font-size: 0.65rem;
  }
}

/* Tab Navigation — leather tray */
.explore-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  box-sizing: border-box;
  background-color: #c4a574;
  background-image:
    linear-gradient(145deg, rgba(196, 165, 116, 0.55) 0%, rgba(226, 206, 178, 0.42) 50%, rgba(196, 165, 116, 0.52) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size:
    100% 100%,
    var(--leather-tile-size) var(--leather-tile-size),
    var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: multiply, normal, normal;
  border: 2px solid #7a5a3a;
  border-radius: 16px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.14),
    inset 0 2px 0 rgba(255, 248, 235, 0.28),
    inset 0 -3px 8px rgba(60, 40, 25, 0.12);
  position: relative;
}

.explore-tabs::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(218, 165, 32, 0.42);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}

.explore-tabs > * {
  position: relative;
  z-index: 1;
}

/* Skeuomorphic button (from DESIGN_RULES.md) – bright leather */
.skeuomorphic-btn {
  background-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #523020;
  border-radius: 8px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.2s ease;
  color: #1e293b;
}

.skeuomorphic-btn:hover {
  border-color: #78634f;
  box-shadow:
    0 6px 12px rgba(0,0,0,0.25),
    inset 0 2px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.skeuomorphic-btn:active {
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.8);
  transform: translateY(2px);
}

.tab-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 8px; /* keep radius to match skeuomorphic */
  font-family: 'Baloo 2', cursive;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.tab-btn:hover {
  transform: translateY(-1px);
}

/* Apply skeuomorphic skin via class composition */
.tab-btn.skeuomorphic-btn:hover { transform: translateY(1px); }

.tab-btn.active {
  transform: translateY(0);
}

.tab-btn.active::before { opacity: 0.9; }

/* Tab Content */
.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: block;
}

/* Filter Container */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
  align-items: stretch;
}

/* Filter Toggle Section */
.filter-toggle-section {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  width: 100%;
}

.filter-toggle-section .filter-toggle-btn {
  width: auto;
  min-width: 80px;
  max-width: 120px;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(145deg, #4dd0e1 0%, #26c6da 35%, #00bcd4 50%, #26c6da 65%, #4dd0e1 100%);
  border: 2px solid #0097a7;
  border-radius: 12px;
  color: #0d3d42;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Baloo 2', cursive;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 150, 167, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
  min-width: auto;
  max-width: 140px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
}

.filter-toggle-btn::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7));
  border-radius: 10px 10px 0 0;
}

.filter-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 3px 6px rgba(0, 150, 167, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
  border-color: #0097a7;
}

.filter-toggle-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4);
}

.filter-toggle-btn.active {
  background: linear-gradient(145deg, #00acc1 0%, #0097a7 50%, #00838f 100%);
  color: #fff;
  border-color: #006064;
  box-shadow:
    0 6px 15px rgba(0, 150, 167, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Random Project Button - Skeuomorphic */
.filter-toggle-section {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.random-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(145deg, #4dd0e1 0%, #26c6da 35%, #00bcd4 50%, #26c6da 65%, #4dd0e1 100%);
  border: 2px solid #0097a7;
  border-radius: 12px;
  color: #0d3d42;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 150, 167, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
  font-family: 'Baloo 2', 'Fugaz One', sans-serif;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.random-project-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 3px 6px rgba(0, 150, 167, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
  color: #0d3d42;
}

.random-project-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4);
}

.random-project-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Filters Panel – bright leather */
.filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #744832;
  background-image:
    linear-gradient(145deg, rgba(118, 74, 56, 0.62) 0%, rgba(154, 108, 82, 0.52) 50%, rgba(118, 74, 56, 0.62) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border-radius: 18px;
  border: 3px solid #523020;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);
  position: relative;
}

.filters-panel::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(255, 200, 150, 0.18);
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

.filters-panel.open {
  max-height: 800px;
  padding: 15px;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-container {
  flex: 1;
  margin-bottom: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Tighter spacing between search bar and filters */
.filters-panel .search-container { margin-bottom: 15px; }

/* Tiny skeuomorphic button */
.tiny-skeu-btn {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-family: 'Baloo 2', cursive;
  border-radius: 8px;
  border: 1px solid #958062;
  background-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  cursor: pointer;
  color: #1e293b;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

.tiny-skeu-btn:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.12);
}

/* Update search bar selectors */
#projects-search, #users-search {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Baloo 2', cursive;
  border-radius: 14px;
  border: 1px solid #9aa8bc;
  background-color: #f3f6fb;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  background-blend-mode: normal, normal;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.18s ease;
  display: block;
  margin: 0 auto;
  flex: 1;
  color: #1a1a1a;
}

#projects-search::placeholder, #users-search::placeholder {
  color: #8a93a0;
}

#projects-search:hover, #users-search:hover {
  border-color: #7b8da3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 4px 14px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 2px 6px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

#projects-search:focus, #users-search:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Type Filter */
.type-filter-container {
  min-width: 150px;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.type-filter {
  width: 220px;
  max-width: 220px;
  flex: 0 0 220px;
  padding: 12px;
  padding-right: 2.5rem;
  font-size: 0.95rem;
  border-radius: 14px;
  border: 1px solid #9aa8bc;
  -webkit-appearance: none;
  appearance: none;
  background-color: #f3f6fb;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6a82' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 16px 16px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
  background-blend-mode: normal, normal, normal;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.18s ease;
  cursor: pointer;
  font-family: 'Baloo 2', cursive;
  display: block;
  margin: 0;
  color: #1a1a1a;
}

.type-filter:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%234a90d9' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 16px 16px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.type-filter:hover {
  border-color: #7b8da3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 4px 14px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 2px 6px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Tab Navigation – bright leather */
.tab-navigation {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #744832;
  background-image:
    linear-gradient(145deg, rgba(118, 74, 56, 0.62) 0%, rgba(138, 88, 70, 0.55) 50%, rgba(154, 108, 82, 0.52) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border-radius: 12px;
  border: 2px solid #523020;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Users Grid */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.user-card {
  background-color: #d0b589;
  background-image:
    linear-gradient(145deg, rgba(208, 181, 137, 0.55) 0%, rgba(242, 232, 212, 0.46) 50%, rgba(208, 181, 137, 0.52) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size:
    100% 100%,
    var(--leather-tile-size) var(--leather-tile-size),
    var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: multiply, normal, normal;
  border: 3px solid #8b6f4a;
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow:
    0 12px 28px rgba(42, 24, 12, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 248, 235, 0.35),
    inset 0 -3px 10px rgba(80, 50, 30, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.user-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(218, 165, 32, 0.5);
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(58, 40, 28, 0.1);
}

.user-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 40% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.user-card > * {
  position: relative;
  z-index: 2;
}

.user-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 18px 36px rgba(42, 24, 12, 0.32),
    0 8px 16px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 248, 235, 0.4),
    inset 0 -3px 10px rgba(80, 50, 30, 0.1);
  border-color: #2e7d32;
}

.user-avatar-container {
  position: relative;
  margin-bottom: 8px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #4CAF50;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
}

.user-card:hover .user-avatar {
  transform: scale(1.1);
  border-color: #2e7d32;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(76, 175, 80, 0.2);
}

.user-card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-username {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  text-shadow: 0 1px 0 rgba(255, 248, 235, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
  position: relative;
  flex-shrink: 0;
  animation: verifiedPulse 2s ease-in-out infinite;
}

.verified-badge::before {
  content: '✓';
  font-size: 12px;
  line-height: 1;
}

@keyframes verifiedPulse {
  0%, 100% {
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
  }
}

.verified-badge:hover {
  animation: none;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.6);
}

.user-quote {
  margin: 0;
  font-size: 0.9rem;
  color: #3a2515;
  font-style: italic;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.user-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.user-stat {
  font-size: 0.8rem;
  color: #2d3748;
  background: rgba(76, 175, 80, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

/* Presence indicator dot */
.presence-dot { 
  position: absolute; 
  top: 4px; 
  right: 4px; 
  width: 16px; 
  height: 16px; 
  border-radius: 50%; 
  border: 3px solid #fff; 
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  z-index: 2;
}
.presence-online { 
  background: #2ecc71; 
  animation: pulse 2s infinite;
}
.presence-offline { 
  background: #bdc3c7; 
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Loading Placeholders */
.loading-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.placeholder-card {
  background-color: #fafafa;
  background-image: linear-gradient(165deg, #ffffff 0%, #f0efec 100%);
  border: 2px solid #d4cfc4;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(0, 0, 0, 0.04);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Skeuomorphic Project Card Skeleton Loaders */
.project-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  transition: grid-template-columns 0.2s ease;
}

.project-skeleton-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.project-skeleton-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.project-skeleton-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.project-skeleton-grid.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.project-skeleton-grid.columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1399px) {
  .project-skeleton-grid:not([class*="columns-"]) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .project-skeleton-grid:not([class*="columns-"]) {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .project-skeleton-grid:not([class*="columns-"]) {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.project-skeleton-card {
  background-color: #fafafa;
  background-image: linear-gradient(165deg, #ffffff 0%, #f0efec 100%);
  border: 2px solid #d4cfc4;
  border-radius: 16px;
  padding: 0;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.project-skeleton-card::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
  border-radius: 13px 13px 0 0;
  z-index: 1;
}

.project-skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: 0;
  margin-bottom: 0;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.04);
  border: none;
  border-bottom: 2px solid #c8c6c0;
  background: linear-gradient(145deg, #ececea, #e0e0dd);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.project-skeleton-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: skeletonShimmer 1.5s infinite;
}

.project-skeleton-info {
  padding: 10px 14px 14px 14px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.project-skeleton-title {
  height: 14px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.5s infinite;
  width: 85%;
}

.project-skeleton-badge {
  height: 18px;
  width: 50px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.5s infinite;
  margin-top: 2px;
}

.project-skeleton-description {
  height: 10px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeletonShimmer 1.5s infinite;
  width: 60%;
  margin-top: 2px;
}

.project-skeleton-description:nth-child(4) {
  width: 45%;
}

.project-skeleton-date {
  height: 9px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeletonShimmer 1.5s infinite;
  width: 40%;
  margin-top: 4px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
}

.placeholder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.placeholder-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.placeholder-line {
  height: 16px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.5s infinite;
}

.placeholder-title {
  width: 60%;
  height: 20px;
}

.placeholder-quote {
  width: 80%;
  height: 14px;
}

.placeholder-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.placeholder-stat {
  flex: 1;
  height: 24px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  border-radius: 12px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Empty States – bright leather */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #eee3ca;
  background-color: #744832;
  background-image:
    linear-gradient(145deg, rgba(118, 74, 56, 0.62) 0%, rgba(154, 108, 82, 0.52) 50%, rgba(118, 74, 56, 0.62) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #523020;
  border-radius: 16px;
  margin: 20px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #1e293b;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Error state: full-width cell in project grid (see root style.css for shared glossy error UI) */
.error-state {
  grid-column: 1 / -1;
}

.retry-button {
  background: linear-gradient(145deg, #7ed97e 0%, #5cb85c 35%, #4cae4c 50%, #5cb85c 65%, #7ed97e 100%);
  color: #1a3d1a;
  border: 2px solid #3d8b3d;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(76, 174, 76, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(76, 174, 76, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
}

.retry-button:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments for tabs and users - portrait mobile */
@media (max-width: 768px) and (orientation: portrait) {
  .explore-tabs {
    flex-direction: column;
    gap: 8px;
  }
  
  .tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .filter-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-toggle-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .filters-panel.open {
    padding: 15px;
  }
  
  .primary-filters-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .advanced-filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .type-filter-container {
    min-width: 100%;
  }
  
  .users-grid {
    grid-template-columns: 1fr;
  }
  
  .user-card {
    padding: 15px;
  }
  
  .user-avatar {
    width: 50px;
    height: 50px;
  }
} 

/* Standardize sidebar to match homepage — seam leather + gradient (not Sidebar.png) */
.sidebar {
  background-color: #3d2817 !important;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size), var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat, repeat !important;
  background-blend-mode: multiply, normal, normal !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  outline: none !important;
  height: 85vh !important;
}
.nav-buttons { width: 80% !important; display: flex !important; flex-direction: column !important; gap: 15px !important; }

/* Enhanced Filter Container */
.filter-container {
  background-color: #744832;
  background-image:
    linear-gradient(145deg, rgba(118, 74, 56, 0.62) 0%, rgba(154, 108, 82, 0.52) 50%, rgba(118, 74, 56, 0.62) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(0, 0, 0, 0.08);
  border: 3px solid #523020;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.filter-container::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(255, 200, 150, 0.2);
  border-radius: 14px;
  pointer-events: none;
}

/* Search Container */
.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.clear-filters-btn {
  padding: 8px;
  background: linear-gradient(145deg, #ef4444, #dc2626);
  border: 2px solid #b91c1c;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 8px rgba(239, 68, 68, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.clear-filters-btn:hover {
  background: linear-gradient(145deg, #f87171, #ef4444);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(239, 68, 68, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Primary Filters Row */
.primary-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.filter-select {
  padding: 12px 16px;
  padding-right: 2.5rem;
  border: 1px solid #9aa8bc;
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  background-color: #f3f6fb;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6a82' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 16px 16px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
  background-blend-mode: normal, normal, normal;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.18s ease;
  cursor: pointer;
  color: #1a1a1a;
  position: relative;
}

.filter-select:hover {
  border-color: #7b8da3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 4px 14px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 2px 6px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.filter-select:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%234a90d9' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 16px 16px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.filter-select:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Advanced Filters Toggle */
.advanced-filters-toggle {
  text-align: center;
  margin-bottom: 12px;
}

.toggle-advanced-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  border: 2px solid #3730a3;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 8px rgba(99, 102, 241, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.toggle-advanced-btn:hover {
  background: linear-gradient(145deg, #7c3aed, #6366f1);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 12px rgba(99, 102, 241, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.toggle-arrow {
  transition: transform 0.3s ease;
}

/* Advanced Filters Panel – bright leather */
.advanced-filters-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #523020;
  border-radius: 12px;
  margin-top: 12px;
}

.advanced-filters-panel.open {
  max-height: 400px;
  padding: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.advanced-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
}

/* Tag Filter Container – bright leather */
.tag-filter-container {
  background-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #523020;
  border-radius: 12px;
  padding: 15px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(59, 130, 246, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.tag-btn:hover {
  background: linear-gradient(145deg, #bfdbfe, #93c5fd);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.tag-btn.active {
  background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
  color: white;
  border-color: #4d7c0f;
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.tag-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.4);
}

.no-tags {
  text-align: center;
  color: #374151;
  font-style: italic;
  padding: 20px;
}

/* View Mode Container */
.view-mode-container {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  flex: 1;
  padding: 10px;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
  border: 2px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.view-mode-btn:hover {
  background: linear-gradient(145deg, #e5e7eb, #d1d5db);
  transform: translateY(-1px);
}

.view-mode-btn.active {
  background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
  color: white;
  border-color: #4d7c0f;
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.view-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Active Filters Display */
.active-filters {
  background: linear-gradient(145deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  box-shadow: 
    0 4px 8px rgba(245, 158, 11, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.active-filters-label {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 1px solid #958062;
  border-radius: 6px;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.remove-filter-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-filter-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Projects Grid View Modes */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.projects-list .project-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: #d0b589;
  background-image:
    linear-gradient(145deg, rgba(208, 181, 137, 0.58) 0%, rgba(242, 232, 212, 0.48) 50%, rgba(208, 181, 137, 0.55) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size:
    100% 100%,
    var(--leather-tile-size) var(--leather-tile-size),
    var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: multiply, normal, normal;
  border: 3px solid #8b6f4a;
  border-radius: 14px;
  box-shadow:
    0 12px 26px rgba(42, 24, 12, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.16),
    inset 0 2px 0 rgba(255, 248, 235, 0.35),
    inset 0 -3px 8px rgba(80, 50, 30, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: #1e293b;
}

.projects-list .project-card::before {
  inset: 7px;
  border-radius: 10px;
}

.projects-list .project-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px rgba(42, 24, 12, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 248, 235, 0.4),
    inset 0 -3px 10px rgba(80, 50, 30, 0.12);
  border-color: #a08055;
}

.projects-list .project-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.projects-list .project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.projects-list .project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    -1px 0 0 #000,
    1px 0 0 #000,
    0 -1px 0 #000,
    0 1px 0 #000,
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.projects-list .project-meta {
  font-size: 0.9rem;
  color: #3a2515;
}

/* Infinite Scroll Loader */
.infinite-scroll-loader {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 15px;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.infinite-scroll-loader p {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ─── Pinned Paper Cards (Gallery & Jam) - Simplified to match normal cards ─── */
.pinned-card-wrap {
  position: relative;
  padding-top: 0;
}

/* Hide pin elements */
.pinned-card-wrap::before,
.pinned-card-wrap::after {
  display: none !important;
}

/* Match normal card styling */
.pinned-card {
  background-color: transparent !important;
  border: 2px solid #5a3a24 !important;
  border-bottom: 3px solid #6b4a30 !important;
  border-radius: 12px !important;
  box-shadow:
    0 8px 18px rgba(42, 24, 12, 0.26),
    inset 0 2px 0 rgba(255, 248, 235, 0.25),
    inset 0 -2px 0 rgba(80, 50, 30, 0.12) !important;
  transform: none !important;
  transition: all 0.2s ease !important;
}

.pinned-card:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 18px 38px rgba(42, 24, 12, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 248, 235, 0.45),
    inset 0 -4px 12px rgba(80, 50, 30, 0.14),
    inset 2px 0 0 rgba(255, 255, 255, 0.18),
    inset -2px 0 0 rgba(0, 0, 0, 0.06) !important;
  border-color: #a08055 !important;
}

.pinned-card .project-thumb {
  border-radius: 10px 10px 0 0 !important;
  border-bottom: none !important;
  background: linear-gradient(145deg, rgba(60, 42, 28, 0.35), rgba(40, 28, 18, 0.45)) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.pinned-card .project-card-info h3 {
  color: inherit !important;
  font-family: inherit !important;
}

.pinned-card .project-card-info p {
  color: inherit !important;
}

.pinned-card .project-type-badge {
  border-radius: 8px !important;
  font-size: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.pinned-card .project-date {
  color: inherit !important;
  font-size: inherit !important;
}

/* Defeat late-injected perf CSS: tan seam leather must paint on real tiles (not pinned paper) */
.layout-wrapper .main-content .projects-grid > a.project-card,
.layout-wrapper .main-content .projects-grid > .project-card:not(.pinned-card),
.layout-wrapper .main-content .projects-list .project-card:not(.pinned-card) {
  background-color: #d0b589 !important;
  background-image:
    linear-gradient(145deg, rgba(208, 181, 137, 0.58) 0%, rgba(242, 232, 212, 0.48) 45%, rgba(208, 181, 137, 0.55) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise) !important;
  background-size:
    100% 100%,
    var(--leather-tile-size) var(--leather-tile-size),
    var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat, repeat !important;
  background-blend-mode: multiply, normal, normal !important;
  box-shadow:
    0 12px 28px rgba(42, 24, 12, 0.3),
    0 5px 12px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 248, 235, 0.38),
    inset 0 -4px 10px rgba(80, 50, 30, 0.16),
    inset 2px 0 0 rgba(255, 255, 255, 0.14),
    inset -2px 0 0 rgba(0, 0, 0, 0.08) !important;
}