/* ==========================================================================
   WORK & CASE STUDIES — DEDICATED STYLESHEET
   Brand Font & Color: Cormorant Garamond + Montserrat + Primary Red (#D62828) + Burnt Orange (#E86F30)
   ========================================================================== */

@import url('style.css');

/* Filter Navigation */
.filter-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 11px 24px;
  min-height: 48px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-family: var(--font-functional);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

@media (hover: hover) and (pointer: fine) {
  .filter-btn:hover {
    background: var(--bg-subtle-red);
    color: var(--red-dark);
    border-color: rgba(214, 40, 40, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.1);
  }
}

.filter-btn.active {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.32);
}

/* Portfolio Grid — 1 row of 4 equal cards on desktop */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Card Container with Rounded Edges & Equal Size (Short & Compact) */
.work-card {
  background: #FFFFFF;
  border: 1px solid rgba(229, 229, 229, 0.9);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-smooth, 0.3s ease), box-shadow var(--transition-smooth, 0.3s ease), border-color var(--transition-smooth, 0.3s ease);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 40, 40, 0.35);
    box-shadow: 0 12px 32px rgba(214, 40, 40, 0.08);
  }
}

/* Card Body */
.work-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Card Brand Header Row */
.card-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-circle-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFFFFF;
  border: 1.5px solid rgba(214, 40, 40, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.brand-circle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-circle-icon img.img-contain {
  object-fit: contain;
  padding: 3px;
}

.card-brand-row .brand-name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #1A1A1A);
  margin: 0;
  line-height: 1.2;
}

.card-brand-row .brand-subtext {
  display: block;
  font-family: var(--font-functional, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #737373);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Card Content Blocks (About the Brand / Channel / Our Work) */
.card-content-block {
  margin-bottom: 12px;
}

.card-content-block:last-child {
  margin-bottom: 0;
}

/* Compact Metrics & Stats Row */
.card-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-secondary, #F9F9F9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: 10px;
  margin-bottom: 2px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-functional, 'Montserrat', sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-red, #D62828);
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-functional, 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted, #737373);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 22px;
  background: rgba(0, 0, 0, 0.08);
}

.card-section-label {
  display: block;
  font-family: var(--font-functional, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-red, #D62828);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-content-block p {
  font-family: var(--font-functional, 'Montserrat', sans-serif);
  font-size: 0.86rem;
  color: var(--text-secondary, #555555);
  line-height: 1.55;
  margin: 0;
}

.work-client-tag {
  font-family: var(--font-functional);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-orange, #E86F30);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.work-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
}

.work-body p {
  font-family: var(--font-functional);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Highlight Section */
.work-highlight-section {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 4px;
}

.work-highlight-label {
  display: block;
  font-family: var(--font-functional, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary, #737373);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Card Centered Action Button */
.card-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--primary-red, #D62828);
  color: #FFFFFF;
  border: 1px solid var(--primary-red, #D62828);
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-functional, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--transition-smooth, 0.3s ease);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(214, 40, 40, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .btn-card-action:hover {
    background: var(--red-hover, #B91F24);
    border-color: var(--red-hover, #B91F24);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(214, 40, 40, 0.35);
    color: #FFFFFF;
  }
}

.btn-card-action:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .btn-card-action {
    width: 100%;
    padding: 11px 16px;
  }
}

/* Empty State */
.work-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 24px;
  background: #FFFFFF;
  border: 1px dashed rgba(214, 40, 40, 0.3);
  border-radius: 20px;
  max-width: 600px;
  margin: 20px auto;
  box-sizing: border-box;
}

.empty-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-subtle-red, #FDECEC);
  color: var(--primary-red, #D62828);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.work-empty-state h3 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.work-empty-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.work-empty-state a.empty-filter-link {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Metric Tag (Capsule Shape) */
.work-metrics-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-subtle-red);
  border: 1px solid rgba(214, 40, 40, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.work-metrics-tag strong {
  font-size: 1.05rem;
  color: var(--accent-orange);
  font-family: var(--font-display);
  font-weight: 800;
}

.work-metrics-tag span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-functional);
  font-weight: 600;
}

.work-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* Tech Pill (Capsule Shape) */
.tech-pill {
  font-family: var(--font-functional);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Filter Transition Animation */
@keyframes workCardReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-card.animating {
  animation: workCardReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
  .filter-nav {
    gap: 8px;
    margin-bottom: 36px;
  }

  .filter-btn {
    padding: 9px 16px;
    min-height: 42px;
    font-size: 0.82rem;
  }
}
