/* Shared refresh styles preserving the Mobirise Philjo palette & typography */

/* Navbar dropdown polish for expanded Projects list */
.navbar-dropdown .dropdown-menu {
  max-height: 75vh;
  overflow-y: auto;
}

/* Section containers */
.pj-section {
  background-color: #efefef;
  padding: 56px 0;
  color: #232323;
}

.pj-section--light {
  background-color: #f7f7f7;
}

.pj-section--alt {
  background-color: #e6e6e6;
}

.pj-section--dark {
  background-color: #2e2e2e;
  color: #ffffff;
}

.pj-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.pj-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  color: inherit;
}

.pj-section-subtitle {
  display: block;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #666666;
  margin: 0 auto 14px;
}

.pj-section--dark .pj-section-subtitle {
  color: #cccccc;
}

.pj-subhead {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555555;
  margin: 34px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c0a375;
  display: inline-block;
}

.pj-divider {
  width: 56px;
  height: 3px;
  background-color: #c0a375;
  margin: 0 auto;
}

/* Responsive grids */
.pj-projects-grid,
.pj-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pj-news-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pj-news-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1199px) {
  .pj-news-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .pj-projects-grid,
  .pj-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pj-projects-grid,
  .pj-news-grid,
  .pj-news-grid--4,
  .pj-news-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.pj-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.pj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
}

.pj-card-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #1f1f1f;
  text-decoration: none;
}

.pj-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pj-card:hover .pj-card-thumb img {
  transform: scale(1.03);
}

.pj-card-thumb--contain img {
  object-fit: contain;
  padding: 16px;
  background: radial-gradient(circle at center, #0e1d3d 0%, #050a18 100%);
}

/* Styled visual fallback banners for web apps / tools without screenshots */
.pj-card-thumb--styled {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #2e2e2e 0%, #1b1b1b 100%);
}

.pj-card-thumb--ava {
  background: radial-gradient(circle at 25% 25%, #2b3440 0%, #101419 100%);
}

.pj-card-thumb--space {
  background: radial-gradient(circle at center, #0c2654 0%, #030714 100%);
}

.pj-card-thumb--editor {
  background: linear-gradient(135deg, #1f2937 0%, #312518 100%);
}

.pj-card-thumb--chat {
  background: linear-gradient(135deg, #1b2838 0%, #243b55 100%);
}

.pj-card-thumb--truth {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a4f 100%);
}

.pj-card-thumb--rpg {
  background: linear-gradient(135deg, #2d232e 0%, #473335 100%);
}

.pj-card-thumb--logo {
  background: radial-gradient(circle at center, #333b44 0%, #14171a 100%);
}

.pj-thumb-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c0a375;
  margin-bottom: 6px;
}

.pj-thumb-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;
}

.pj-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.pj-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pj-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: #ececec;
  color: #444444;
}

.pj-badge--new {
  background-color: #c0a375;
  color: #ffffff;
}

.pj-badge--game {
  background-color: #2e3b4e;
  color: #ffffff;
}

.pj-badge--app {
  background-color: #5c7c80;
  color: #ffffff;
}

.pj-badge--music {
  background-color: #6b8456;
  color: #ffffff;
}

.pj-badge--art {
  background-color: #7c5c6e;
  color: #ffffff;
}

.pj-badge--archive {
  background-color: #d8d8d8;
  color: #333333;
}

.pj-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #232323;
}

.pj-card-title a {
  color: inherit;
  text-decoration: none;
}

.pj-card-title a:hover {
  color: #a07e49;
}

.pj-card-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #6f6f6f;
  margin: 0 0 10px;
}

.pj-card-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0 0 16px;
  flex: 1 1 auto;
}

.pj-card-text a {
  color: #8e7041;
  font-weight: 600;
}

.pj-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.pj-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 3px;
  text-decoration: none !important;
  background-color: #c0a375;
  color: #ffffff !important;
  border: 1px solid #c0a375;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pj-btn:hover {
  background-color: #a07e49;
  border-color: #a07e49;
  color: #ffffff !important;
}

.pj-btn--outline {
  background-color: transparent;
  color: #555555 !important;
  border-color: #cccccc;
}

.pj-btn--outline:hover {
  background-color: #2e2e2e;
  border-color: #2e2e2e;
  color: #ffffff !important;
}

/* Archive & Experiments compact strip */
.pj-archive-strip {
  margin-top: 34px;
  padding: 20px 24px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #c0a375;
  border-radius: 4px;
}

.pj-archive-strip h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #2e2e2e;
}

.pj-archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pj-archive-pill {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
  background-color: #f3f3f3;
  border: 1px solid #dddddd;
  color: #333333 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.pj-archive-pill:hover {
  background-color: #c0a375;
  border-color: #c0a375;
  color: #ffffff !important;
}

/* Featured Artist page updates block */
.pj-artist-updates {
  padding: 50px 0;
  background-color: #efefef;
  color: #232323;
}

.pj-artist-updates--tinted {
  background-color: rgba(255, 255, 255, 0.92);
}

.pj-artist-updates .pj-section-header {
  margin-bottom: 26px;
}

.pj-artist-updates .pj-section-title {
  font-size: 1.9rem;
}

.pj-update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pj-update-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
}

.pj-update-list li:last-child {
  border-bottom: none;
}

.pj-update-date {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8e7041;
  text-transform: uppercase;
  margin-right: 8px;
}

/* Clean hero button spacing */
.pj-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pj-hero-actions .btn {
  margin: 0 !important;
}
