/* ========================================== */
/* PROJECTS PAGE PORTAL CORE LAYOUT           */
/* ========================================== */

.proj-grid {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.proj-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 5px 5px 0 var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proj-banner {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #eee;
  aspect-ratio: 16/9;
}

.proj-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-card h3 {
  margin: 0 0 8px 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
}

.proj-card p {
  font-size: 15px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

/* ========================================== */
/* PILL TAGS                                  */
/* ========================================== */

.proj-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.proj-pill {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.proj-pill {
  text-decoration: none;
  color: var(--ink);
}

button.proj-pill {
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
}

.pill-action-dl:hover {
  background-color: var(--blue) !important;
  color: white !important;
}

.pill-action-popup:hover {
  background-color: var(--yellow) !important;
  color: var(--ink) !important;
}

/* ========================================== */
/* STATUS PILLS                               */
/* ========================================== */

/* all four inactive by default — grey */
.status-pill {
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--ink);
  background: #ccc;
  color: #888;
  font-family: "Baloo 2", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* active variants — assign one of these to the pill you want lit */
.status-pill.active-hiatus  { background: var(--yellow); color: var(--ink); }
.status-pill.active-wip     { background: var(--blue);   color: #fff; }
.status-pill.active-canned  { background: var(--red);    color: #fff; }
.status-pill.active-done    { background: var(--green);  color: #fff; }

/* ========================================== */
/* PROJECT LIGHTBOX                           */
/* ========================================== */

@keyframes proj-stripe-crawl {
  from { background-position: 0 0; }
  to   { background-position: 57px 0; }
}

@keyframes proj-pop-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.project-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.project-modal.active { display: flex; }

/* Yellow stripe box — same vibe as downloads but distinct */
.proj-modal-content {
  background: repeating-linear-gradient(
    -45deg,
    #FFD21D, #FFD21D 20px,
    #FFDA49 20px, #FFDA49 40px
  );
  background-size: 57px 57px;
  border: 4px solid var(--ink);
  border-radius: 24px;
  width: 90%;
  max-width: 820px;
  padding: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  box-sizing: border-box;
  animation: proj-stripe-crawl 1.4s linear infinite,
             proj-pop-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  will-change: background-position, transform;
}

/* Two-column inner layout */
.proj-modal-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Left: tall book-cover style image */
.proj-modal-cover {
  width: 200px;
  min-width: 200px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #aaa;
  font-size: 14px;
  box-sizing: border-box;
  aspect-ratio: 2/3;
}

.proj-modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right: all the text */
.proj-modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Title badge */
.proj-modal-title {
  font-family: "Baloo 2", sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 6px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  display: inline-block;
  margin: 0 0 14px 0;
}

/* Scrollable description box */
.proj-modal-scroll {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.proj-modal-scroll::-webkit-scrollbar { width: 4px; }
.proj-modal-scroll::-webkit-scrollbar-track { background: transparent; }
.proj-modal-scroll::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

/* Status pill row */
.proj-modal-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Footer bar: project type label + read here + close */
.proj-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}

.proj-footer-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.proj-type-label {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* "read here" bubble */
.proj-read-label {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.proj-read-label a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: 0.1s;
}

.proj-read-label a:hover { color: var(--red); text-decoration: none; }

.proj-read-label img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.proj-close-btn {
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 24px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Baloo 2", sans-serif;
}

.proj-close-btn:hover {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

/* ========================================== */
/* RESPONSIVE                                 */
/* ========================================== */

@media (max-width: 650px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-modal-layout { flex-direction: column; }
  .proj-modal-cover { width: 100%; aspect-ratio: 16/9; min-width: unset; }
}