/* ==========================================================================
   Use Cases - Overview Page
   ========================================================================== */

/* Hero */
.usecases-hero { background: linear-gradient(135deg, #0d1b3e 0%, #1a237e 100%); color: white; padding: 120px 0 80px; margin-top: -80px; padding-top: calc(80px + 80px); }
.usecases-hero .tvg-container { max-width: 1140px; margin: 0 auto; text-align: center; padding: 0 24px; }
.usecases-hero h1 { color: white; margin-bottom: 16px; }
.usecases-hero p { opacity: 0.9; max-width: 700px; margin: 0 auto; }

/* Cases grid */
.cases-grid-section { padding: 80px 0; background: #f8f9fa; }
.cases-grid-section .tvg-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 1023px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .cases-grid { grid-template-columns: 1fr; } }

/* Case card */
.case-card { display: block; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.case-card__image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e5e7eb; }
.case-card__image img { width: 100%; height: 100%; object-fit: cover; }
.case-card__tag { position: absolute; top: 12px; left: 12px; background: #c2185b; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.case-card__content { padding: 24px; }
.case-card__content h3 { margin-bottom: 8px; color: var(--tvg-headings-color); }
.case-card__content p { color: var(--tvg-color-text); margin: 0; }
.case-card__metric { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 20px; background: var(--hcl-logo-paars-9, #c2185b); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; }

/* Inspiration grid */
.cases-inspiration { padding: 80px 0; background: #f0f4f8; }
.cases-inspiration .tvg-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.cases-inspiration__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cases-inspiration__card { background: #fff; border-radius: 12px; padding: 32px 24px; }
.cases-inspiration__card h3 { color: var(--tvg-headings-color); margin-bottom: 8px; }
.cases-inspiration__card p { color: var(--tvg-color-text); margin: 0; }
@media (max-width: 1023px) { .cases-inspiration__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .cases-inspiration__grid { grid-template-columns: 1fr; } }

/* Filters */
.cases-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.cases-filter { padding: 8px 22px; border: 2px solid #ddd; border-radius: 30px; background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--tvg-color-text); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.cases-filter:hover { border-color: var(--hcl-logo-paars-9, #c2185b); color: var(--hcl-logo-paars-9, #c2185b); }
.cases-filter.active { background: var(--hcl-logo-paars-9, #c2185b); border-color: var(--hcl-logo-paars-9, #c2185b); color: #fff; }

/* ==========================================================================
   Use Cases - Detail Page
   ========================================================================== */

/* Detail hero */
.case-hero { background: linear-gradient(135deg, #0d1b3e 0%, #1a237e 100%); color: white; padding: 120px 0 0; margin-top: -80px; padding-top: calc(80px + 60px); }
.case-hero .tvg-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.case-hero__text { text-align: center; margin-bottom: 40px; }
.case-hero__text h1 { color: white; margin-bottom: 8px; }
.case-hero__text p { opacity: 0.85; }
.case-hero__image { max-width: 900px; margin: 0 auto; border-radius: 12px 12px 0 0; overflow: hidden; }
.case-hero__image img { width: 100%; display: block; }

/* Content sections */
.case-section { padding: 48px 0; }
.case-section:nth-child(odd) { background: #fff; }
.case-section:nth-child(even) { background: #f8f9fa; }
.case-section .tvg-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.case-section h2 { color: var(--tvg-headings-color); margin-bottom: 16px; }
.case-section p { color: var(--tvg-color-text); margin-bottom: 16px; }
.case-section a { color: #1a237e; }
.case-section .client-link { display: inline-block; margin-top: 8px; color: #c2185b; font-weight: 600; text-decoration: none; }
.case-section .client-link:hover { text-decoration: underline; }

/* Variables & tech - 2 column layout */
.case-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
@media (max-width: 767px) { .case-columns { grid-template-columns: 1fr; } }
.case-columns h3 { color: var(--tvg-headings-color); margin-bottom: 12px; }
.case-columns ul { list-style: none; padding: 0; margin: 0; }
.case-columns ul li { padding: 8px 0; border-bottom: 1px solid #e5e7eb; color: var(--tvg-color-text); display: flex; align-items: flex-start; gap: 8px; }
.case-columns ul li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #c2185b; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }

/* Results section */
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 767px) { .case-results { grid-template-columns: 1fr; } }
.case-result-card { background: white; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.case-section:nth-child(odd) .case-result-card { background: #f8f9fa; }
.case-result-card .result-number { font-size: 2rem; font-weight: 700; color: #c2185b; margin-bottom: 4px; }
.case-result-card .result-label { color: var(--tvg-color-text); }

/* Video player */
.video-player { position: relative; width: 100%; max-width: 800px; margin: 32px auto; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.video-player video { width: 100%; display: block; background: #000; }
.video-placeholder-card { width: 100%; max-width: 800px; margin: 32px auto; aspect-ratio: 16/9; background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 100%); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.video-placeholder-card svg { margin-bottom: 12px; }
.video-placeholder-card span { color: #999; }
.case-visual { width: 100%; max-width: 800px; margin: 32px auto; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); display: block; }
.case-video { width: 100%; max-width: 900px; margin: 40px auto; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); position: relative; }
.case-video iframe { width: 100%; height: 100%; border: none; }
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 32px auto; padding: 0 24px; }
.case-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.3s ease; cursor: pointer; }
.case-gallery img:hover { transform: scale(1.03); }
@media (max-width: 767px) { .case-gallery { grid-template-columns: repeat(2, 1fr); } }
.case-gallery-single {
  display: block;
  max-width: 700px;
  margin: 0 auto;
}
.case-gallery-single img {
  width: 100%;
  border-radius: var(--tvg-radius-card, 12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.case-card__tag[data-type="onboarding"] { background: #e3f2fd; color: #1565c0; }
.case-card__tag[data-type="conversion"] { background: #fce4ec; color: #c2185b; }
.case-card__tag[data-type="engagement"] { background: #e8f5e9; color: #2e7d32; }

/* Case navigation */
.case-nav { padding: 40px 0; background: #fff; border-top: 1px solid #e5e7eb; }
.case-nav .tvg-container { max-width: 800px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; }
.case-nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #1a237e; font-weight: 600; transition: color 0.2s; }
.case-nav a:hover { color: #c2185b; }
.case-nav .nav-prev::before { content: "\2190"; }
.case-nav .nav-next::after { content: "\2192"; }
