/**
 * @file
 * ITU Webcast Modern Design System (itu-webcast-modern.css)
 *
 * This file contains the ITU design system for the Webcast platform:
 * - CSS Variables (design tokens) - apply site-wide via :root
 * - Conference/Archive/Live view styling (.view-conferences)
 * - Video cards (Netflix-style)
 * - Video grid layout (responsive)
 * - Accessibility focus styles (WCAG 2.4.7)
 *
 * Uses ITU official brand colors (#009EDB) and follows WCAG guidelines.
 *
 * @see https://brand.itu.int/
 */

/* ═══════════════════════════════════════════════════════════════════════════
   ITU DESIGN TOKENS - CSS CUSTOM PROPERTIES
   These variables define the ITU brand. Do not modify without approval.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ─────────────────────────────────────────────────────────────────────────
     ITU BRAND COLORS
     ───────────────────────────────────────────────────────────────────────── */

  /* Primary Brand - ITU/UN Blue */
  --itu-blue: #009EDB;
  --itu-blue-hover: #007AB8;
  --itu-blue-active: #006699;
  --itu-blue-light: rgba(0, 158, 219, 0.02);
  --itu-blue-lighter: rgba(0, 158, 219, 0.008);
  --itu-blue-subtle: rgba(0, 158, 219, 0.004);

  /* Legacy variable names (for backward compatibility) */
  --itu-primary-blue: var(--itu-blue);
  --itu-link-color: var(--itu-blue-hover);

  /* Neutrals */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-900: #1a1a1a;
  --color-gray-800: #333333;
  --color-gray-700: #4d4d4d;
  --color-gray-600: #666666;
  --color-gray-500: #808080;
  --color-gray-400: #999999;
  --color-gray-300: #b3b3b3;
  --color-gray-200: #e0e0e0;
  --color-gray-100: #f0f0f0;
  --color-gray-50: #f5f5f5;

  /* Legacy variable names */
  --itu-text-primary: var(--color-gray-900);
  --itu-text-secondary: var(--color-gray-600);

  /* Semantic */
  --color-success: #2e844a;
  --color-warning: #b95c00;
  --color-error: #dc2626;
  --color-info: var(--itu-blue);

  /* ─────────────────────────────────────────────────────────────────────────
     VIDEO PLATFORM (Dark Theme)
     ───────────────────────────────────────────────────────────────────────── */

  --video-bg: #0E0F11;
  --video-bg-elevated: #1e2226;
  --video-bg-card: #252830;
  --video-bg-hover: #2d3139;
  --video-text: rgba(255, 255, 255, 0.9);
  --video-text-muted: rgba(255, 255, 255, 0.6);
  --video-border: rgba(255, 255, 255, 0.1);

  /* ─────────────────────────────────────────────────────────────────────────
     TYPOGRAPHY
     ───────────────────────────────────────────────────────────────────────── */

  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Legacy variable names */
  --itu-font-primary: var(--font-family);
  --itu-font-bold: var(--font-family);

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ─────────────────────────────────────────────────────────────────────────
     SPACING
     ───────────────────────────────────────────────────────────────────────── */

  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */

  /* ─────────────────────────────────────────────────────────────────────────
     BORDERS & RADIUS
     ───────────────────────────────────────────────────────────────────────── */

  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-full: 9999px;

  /* ─────────────────────────────────────────────────────────────────────────
     SHADOWS
     ───────────────────────────────────────────────────────────────────────── */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.2);

  /* ─────────────────────────────────────────────────────────────────────────
     TRANSITIONS
     ───────────────────────────────────────────────────────────────────────── */

  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 450ms ease;

  /* ─────────────────────────────────────────────────────────────────────────
     ACCESSIBILITY
     ───────────────────────────────────────────────────────────────────────── */

  --min-touch: 44px;
  --focus-ring: 2px solid var(--itu-blue);
  --focus-offset: 2px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END OF DESIGN TOKENS
   Original archive-modern.css content follows below
   ═══════════════════════════════════════════════════════════════════════════ */

/* ==========================================================================
   1. MODERN TABLE STYLING (Quick Win #1)
   ========================================================================== */

/* Container with subtle shadow and rounded corners */
.view-conferences {
  background: var(--color-white);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin: 0;
}

/* Remove default borders, add modern spacing */
.view-conferences table {
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

/* Modern header with ITU blue gradient */
.view-conferences table thead th {
  background: linear-gradient(135deg, var(--itu-blue), var(--itu-blue-hover));
  color: var(--color-white);
  font-family: var(--font-family);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--space-4) var(--space-5);
  border: none;
  text-decoration: none;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* First and last header cell rounded corners */
.view-conferences table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.view-conferences table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

/* Header links */
.view-conferences table thead th a {
  color: var(--color-white) !important;
  text-decoration: none;
}

.view-conferences table thead th a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2. ROW STYLING (Quick Win #2)
   ========================================================================== */

/* Base row styling with subtle alternating backgrounds */
.view-conferences table tbody tr {
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--color-gray-100);
  background: var(--color-white);
}

.view-conferences table tbody tr:last-child {
  border-bottom: none;
}

/* Zebra striping - PROD style light blue */
.view-conferences table tbody tr:nth-child(even) {
  background: var(--color-white);
}

.view-conferences table tbody tr:nth-child(odd) {
  background: #e5f5fb;  /* PROD light blue zebra */
}

/* Hover effect - subtle highlight (no transform to prevent overlap) */
.view-conferences table tbody tr:hover {
  background: linear-gradient(90deg, var(--itu-blue-lighter), transparent);
  /* transform: scale(1.005); - REMOVED: causes row overlap */
  /* box-shadow: var(--shadow-sm); - REMOVED: not needed without transform */
}

/* Cell styling - compact like PROD */
.view-conferences table tbody td {
  padding: 5px;  /* PROD compact padding */
  border: 1px solid #e9eaea;  /* PROD border style */
  vertical-align: middle;
  font-size: var(--text-base);
  color: var(--itu-text-primary);
  text-align: left;
}

/* Title cell - small extra padding so text doesn't touch border */
.view-conferences table tbody td.views-field-field-computed-title {
  padding: 5px 8px;  /* 5px top/bottom, 8px left/right */
}

/* Date column - narrower width on desktop only */
@media (min-width: 769px) {
  .view-conferences table td.views-field-field-start-date,
  .view-conferences table th.views-field-field-start-date {
    width: 140px;  /* Compact date column */
    white-space: nowrap;
    padding-right: 80px;  /* More space between date and title */
  }
}

/* ==========================================================================
   3. LINK STYLING (Quick Win #3)
   ========================================================================== */

.view-conferences table tbody td a {
  color: var(--itu-blue);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.view-conferences table tbody td a:hover {
  color: var(--itu-blue-hover);
  text-decoration: none;
}

/* Add play icon on hover for video links */
.view-conferences table tbody td a.video-link::before {
  content: '▶';
  font-size: var(--text-xs);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

.view-conferences table tbody td a.video-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   4. STATUS BADGES (Quick Win #4)
   ========================================================================== */

/* Live status indicator */
.view-conferences .views-field-field-status .field-content[data-status="live"]::before,
.view-conferences tr[data-status="live"] td:first-child::before {
  content: '● LIVE';
  display: inline-block;
  background: var(--color-error);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-bold);
  letter-spacing: 0.5px;
  margin-right: var(--space-3);
  animation: pulse 2s infinite;
}

/* Archive status */
.view-conferences .views-field-field-status .field-content[data-status="archive"]::before {
  content: '📹 Archive';
  display: inline-block;
  background: var(--itu-blue-light);
  color: var(--itu-blue);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-semibold);
  margin-right: var(--space-3);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ==========================================================================
   5. RESPONSIVE DESIGN (Quick Win #5)
   DISABLED: Card conversion removed to match PROD compact table behavior
   ========================================================================== */

/*
   REMOVED: Mobile card conversion - keeping table structure like PROD

@media (max-width: 768px) {
  .view-conferences {
    margin: 0;
    border-radius: 0;
  }

  .view-conferences table thead {
    display: none;
  }

  .view-conferences table tbody tr {
    display: block;
    padding: var(--space-4);
    margin-bottom: var(--space-2);
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
  }

  .view-conferences table tbody td {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-gray-50);
  }

  .view-conferences table tbody td:last-child {
    border-bottom: none;
  }

  .view-conferences table tbody td .link-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: flex-start;
  }

  .view-conferences table tbody td .link-wrapper .video-link {
    font-size: var(--text-sm);
  }
}
*/

/* ==========================================================================
   6. EMPTY STATE (Quick Win #6)
   ========================================================================== */

.view-conferences .view-empty {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  background: linear-gradient(135deg, var(--itu-blue-lighter), var(--color-gray-50));
  border-radius: 0;
  margin: 0;
}

.view-conferences .view-empty::before {
  content: '📹';
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* ==========================================================================
   7. PAGER STYLING (Quick Win #7)
   ========================================================================== */

.view-conferences .pager {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-100);
}

.view-conferences .pager__item {
  list-style: none;
}

.view-conferences .pager__item a,
.view-conferences .pager__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--min-touch);
  height: var(--min-touch);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--itu-text-primary);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.view-conferences .pager__item a:hover {
  background: var(--itu-blue);
  color: var(--color-white);
  border-color: var(--itu-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.view-conferences .pager__item--active span {
  background: var(--itu-blue);
  color: var(--color-white);
  border-color: var(--itu-blue);
}

/* Navigation arrows for First/Prev/Next/Last */
.view-conferences .pager__item--first a::before {
  content: "« ";
}

.view-conferences .pager__item--previous a::before {
  content: "‹ ";
}

.view-conferences .pager__item--next a::after {
  content: " ›";
}

.view-conferences .pager__item--last a::after {
  content: " »";
}

/* Ellipsis styling */
.view-conferences .pager__item--ellipsis span {
  border: none;
  background: transparent;
  color: var(--color-gray-500);
  min-width: auto;
  padding: 0 var(--space-2);
}

/* ==========================================================================
   8. EXPOSED FILTERS STYLING (Quick Win #8)
   ========================================================================== */

.view-conferences .views-exposed-form {
  background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--itu-blue-light);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
}

.view-conferences .views-exposed-form .form-item {
  margin: 0;
}

.view-conferences .views-exposed-form label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--itu-text-secondary);
  margin-bottom: var(--space-2);
}

.view-conferences .views-exposed-form input[type="text"],
.view-conferences .views-exposed-form select {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--itu-blue-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  min-width: 200px;
  transition: all var(--transition-fast);
}

.view-conferences .views-exposed-form input[type="text"]:focus,
.view-conferences .views-exposed-form select:focus {
  outline: none;
  border-color: var(--itu-blue);
  box-shadow: 0 0 0 3px var(--itu-blue-light);
}

.view-conferences .views-exposed-form .form-submit {
  background: var(--itu-blue);
  color: var(--color-white);
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-conferences .views-exposed-form .form-submit:hover {
  background: var(--itu-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   9. TITLE / HEADER STYLING (Quick Win #9)
   ========================================================================== */

.view-conferences .view-header {
  padding: 0;
  background: var(--color-gray-900);
  color: var(--color-white);
}

/* Video player area - flex layout for player + info side by side */
.view-conferences .view-header {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Video player - takes most of the width */
.view-conferences .view-header .view-video-player {
  flex: 1 1 70%;
  min-width: 300px;
  margin: 0;
  padding: 0;
}

/* Video title display - right side panel */
.video-now-playing {
  flex: 1 1 30%;
  min-width: 250px;
  max-width: 400px;
  background: var(--color-gray-800);
  color: var(--color-white);
  padding: var(--space-6);
  font-family: var(--font-family);
  display: none;
  flex-direction: column;
  justify-content: center;
}

.video-now-playing.active {
  display: flex;
}

.video-now-playing__label {
  font-size: var(--text-xs);
  color: var(--itu-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
  font-weight: var(--font-semibold);
}

.video-now-playing__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0;
  line-height: var(--leading-tight);
}

.video-now-playing__meta {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-top: var(--space-3);
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .view-conferences .view-header {
    flex-direction: column;
  }

  .view-conferences .view-header .view-video-player,
  .video-now-playing {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .video-now-playing {
    padding: var(--space-4);
  }
}

/* Page layout - remove side padding for full-width player */
.path-archive .layout-container,
.path-archive .page-content,
.path-archive .region-content {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.view-conferences .view-header h1,
.view-conferences .view-header h2 {
  font-family: var(--font-family);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2) 0;
  font-weight: var(--font-bold);
}

.view-conferences .view-header p {
  font-size: var(--text-base);
  opacity: 0.9;
  margin: 0;
}

/* ==========================================================================
   10. LOADING STATE (Quick Win #10)
   ========================================================================== */

.view-conferences.is-loading {
  position: relative;
  pointer-events: none;
}

.view-conferences.is-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.view-conferences.is-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--min-touch);
  height: var(--min-touch);
  border: 3px solid var(--color-gray-100);
  border-top-color: var(--itu-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 101;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. FOCUS STYLES (WCAG 2.4.7 Accessibility)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Visible focus indicators for keyboard navigation */
.view-conferences a:focus-visible,
.view-conferences button:focus-visible,
.view-conferences input:focus-visible,
.view-conferences select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Remove default outline (replaced with custom focus-visible) */
.view-conferences a:focus,
.view-conferences button:focus,
.view-conferences input:focus,
.view-conferences select:focus {
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. VIDEO CARDS (Netflix-style)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Video card container */
.video-card,
.views-row.video-item,
.webcast-item {
  position: relative;
  background: var(--video-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.video-card:hover,
.views-row.video-item:hover,
.webcast-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-card-hover);
  z-index: 10;
}

/* Video thumbnail */
.video-card__thumbnail,
.views-field-field-thumbnail,
.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--video-bg);
}

.video-card__thumbnail img,
.views-field-field-thumbnail img,
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-card:hover .video-card__thumbnail img,
.views-row.video-item:hover .views-field-field-thumbnail img {
  transform: scale(1.05);
}

/* Play button overlay */
.video-card__play,
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.video-card:hover .video-card__play,
.video-card:hover .video-play-overlay {
  opacity: 1;
}

.video-card__play::before,
.video-play-overlay::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--color-white);
  margin-left: 4px;
}

/* Duration badge */
.video-card__duration,
.video-duration {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.85);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

/* Live badge */
.video-card__live,
.video-live-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--color-error);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

/* Video info section */
.video-card__info,
.video-info {
  padding: var(--space-3) var(--space-4);
  background: var(--video-bg-card);
}

/* Video title */
.video-card__title,
.views-field-title a,
.video-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--video-text);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  line-height: var(--leading-normal);
  margin: 0;
}

.video-card__title:hover,
.views-field-title a:hover,
.video-title:hover {
  color: var(--itu-blue);
}

/* Video meta (date, views, etc.) */
.video-card__meta,
.video-meta {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--video-text-muted);
}

.video-card__meta span::after {
  content: '•';
  margin-left: var(--space-2);
}

.video-card__meta span:last-child::after {
  content: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. VIDEO GRID LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.video-grid,
.view-webcast-homepage .view-content {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6);
}

/* Responsive grid columns */
@media (max-width: 600px) {
  .video-grid,
  .view-webcast-homepage .view-content {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .video-grid,
  .view-webcast-homepage .view-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .video-grid,
  .view-webcast-homepage .view-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1201px) and (max-width: 1600px) {
  .video-grid,
  .view-webcast-homepage .view-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1601px) {
  .video-grid,
  .view-webcast-homepage .view-content {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. VIDEO SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════════════ */

.video-section-header,
.view-webcast-homepage .view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  background: var(--video-bg);
}

.video-section-title,
.view-webcast-homepage .view-header h2 {
  font-family: var(--font-family);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--video-text);
  margin: 0;
}

.video-section-link,
.view-webcast-homepage .view-header a {
  color: var(--itu-blue);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.video-section-link:hover,
.view-webcast-homepage .view-header a:hover {
  color: var(--itu-blue-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. VIDEO PLAYER CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */

.video-player-container {
  position: relative;
  width: 100%;
  background: var(--video-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-player-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-player-wrapper iframe,
.video-player-wrapper video,
.video-player-wrapper .jwplayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────
   15.1 JWPLAYER MOBILE RESPONSIVE FIX
   Force JWPlayer to be fluid/responsive on all screen sizes
   ───────────────────────────────────────────────────────────────────────── */

/* Make the player container responsive */
.view-video-player {
  width: 100% !important;
  max-width: 100%;
  position: relative;
}

/* Force JWPlayer element to be responsive */
.view-video-player .jwplayer,
.view-video-player > div[id^="jwplayer"] {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

/* Ensure the inner video element scales properly */
.view-video-player .jw-wrapper,
.view-video-player .jw-media {
  width: 100% !important;
  height: 100% !important;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .view-video-player {
    min-height: 180px; /* Minimum height on small screens */
  }

  .view-video-player .jwplayer,
  .view-video-player > div[id^="jwplayer"] {
    min-height: 180px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .view-video-player {
    min-height: 150px;
  }

  .view-video-player .jwplayer,
  .view-video-player > div[id^="jwplayer"] {
    min-height: 150px;
  }
}

/* Video details below player */
.video-details {
  padding: var(--space-6);
  background: var(--video-bg-elevated);
}

.video-details__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--video-text);
  margin: 0 0 var(--space-4) 0;
}

.video-details__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--video-text-muted);
}

.video-details__description {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--video-text);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. LANGUAGE LINKS WRAPPER
   ═══════════════════════════════════════════════════════════════════════════ */

/* Language links - simple inline flow like normal text */
.link-wrapper {
  display: inline;
}

.link-wrapper .video-link {
  color: var(--itu-blue);
  text-decoration: none;
}

.link-wrapper .video-link:hover {
  color: var(--itu-blue-hover);
  text-decoration: underline;
}

/* MOBILE: Stack table rows vertically */
/* DISABLED: Keeping table structure like PROD

@media (max-width: 600px) {
  .view-conferences table,
  .views-table {
    display: block !important;
    width: 100% !important;
  }

  .view-conferences table thead,
  .views-table thead {
    display: none;
  }

  .view-conferences table tbody,
  .views-table tbody {
    display: block !important;
  }

  .view-conferences table tbody tr,
  .views-table tbody tr {
    display: block !important;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 6px;
  }

  .view-conferences table tbody td,
  .views-table tbody td {
    display: block !important;
    width: 100% !important;
    padding: 4px 0 !important;
    border: none !important;
    text-align: left !important;
  }

  .views-field-field-start-date,
  td.views-field-field-start-date {
    font-size: 12px;
    color: var(--color-gray-600);
    margin-bottom: 4px;
  }

  .views-field-field-computed-title,
  td.views-field-field-computed-title {
    font-size: 14px;
  }

  .link-wrapper {
    display: block !important;
    margin-top: 6px;
  }

  .link-wrapper .video-link {
    display: inline !important;
    white-space: nowrap;
    margin-right: 4px;
  }
}
*/

/* Tablet: Keep table but adjust widths */
/* DISABLED: Keeping PROD default behavior

@media (min-width: 601px) and (max-width: 900px) {
  .view-conferences table,
  .views-table {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .views-field-field-start-date,
  td.views-field-field-start-date {
    width: 30% !important;
    font-size: 12px;
  }

  .views-field-field-computed-title,
  td.views-field-field-computed-title {
    width: 70% !important;
    word-break: break-word !important;
  }

  .link-wrapper {
    display: block !important;
  }

  .link-wrapper .video-link {
    display: inline !important;
    white-space: nowrap;
  }
}
*/

/* ═══════════════════════════════════════════════════════════════════════════
   17. MOBILE RESPONSIVENESS ENHANCEMENTS
   Added: 2024-12-19
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   17.1 EXPOSED FILTERS - MOBILE FRIENDLY
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .view-conferences .views-exposed-form {
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .view-conferences .views-exposed-form .form-item {
    width: 100%;
  }

  .view-conferences .views-exposed-form input[type="text"],
  .view-conferences .views-exposed-form select {
    min-width: 0;
    width: 100%;
    padding: var(--space-3);
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .view-conferences .views-exposed-form .form-submit {
    width: 100%;
    padding: var(--space-4);
    min-height: var(--min-touch);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   17.2 SMALL PHONE BREAKPOINT (iPhone SE, small Android)
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 400px) {
  :root {
    --space-4: 0.75rem;  /* Tighter spacing on small screens */
    --space-6: 1rem;
    --text-xl: 1.25rem;  /* Slightly smaller headings */
    --text-2xl: 1.5rem;
  }

  .view-conferences table tbody tr {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
  }

  .view-conferences table tbody td {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
  }

  .video-now-playing {
    padding: var(--space-3);
  }

  .video-now-playing__title {
    font-size: var(--text-lg);
  }

  .video-grid,
  .view-webcast-homepage .view-content {
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .video-card__info,
  .video-info {
    padding: var(--space-2) var(--space-3);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   17.3 TOUCH TARGETS - WCAG 2.5.5 (44x44px minimum)
   DISABLED: Causes language link overlap - keeping PROD compact behavior
   ───────────────────────────────────────────────────────────────────────── */

/*
@media (max-width: 768px) {
  .view-conferences table tbody td a,
  .view-conferences .pager__item a,
  .view-conferences .pager__item span,
  .video-card a,
  .video-section-link {
    min-height: var(--min-touch);
    min-width: var(--min-touch);
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
  }

  .view-conferences table tbody td a {
    padding: var(--space-3) 0;
    width: 100%;
  }
}
*/

/* ─────────────────────────────────────────────────────────────────────────
   17.4 PAGER - MOBILE IMPROVEMENTS
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .view-conferences .pager {
    flex-wrap: wrap;
    padding: var(--space-4);
    gap: var(--space-2);
  }

  .view-conferences .pager__item a,
  .view-conferences .pager__item span {
    min-width: var(--min-touch);
    height: var(--min-touch);
    font-size: var(--text-base);
  }

  /* Hide "first" and "last" on very small screens */
  @media (max-width: 400px) {
    .view-conferences .pager__item--first,
    .view-conferences .pager__item--last {
      display: none;
    }
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   17.5 HOVER EFFECTS - TOUCH DEVICE HANDLING
   Only apply hover effects on devices that support hover
   ───────────────────────────────────────────────────────────────────────── */

/* Remove hover transform on touch devices (causes sticky hover) */
@media (hover: none) {
  .view-conferences table tbody tr:hover {
    transform: none;
    box-shadow: none;
  }

  .video-card:hover,
  .views-row.video-item:hover,
  .webcast-item:hover {
    transform: none;
  }

  .video-card:hover .video-card__thumbnail img,
  .views-row.video-item:hover .views-field-field-thumbnail img {
    transform: none;
  }

  /* Show play button always on touch (no hover to reveal) */
  .video-card__play,
  .video-play-overlay {
    opacity: 0.8;
  }
}

/* Keep hover effects only for pointer devices */
@media (hover: hover) and (pointer: fine) {
  .view-conferences .pager__item a:hover {
    transform: translateY(-2px);
  }

  .view-conferences .views-exposed-form .form-submit:hover {
    transform: translateY(-2px);
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   17.6 SAFE AREA INSETS (iPhone notch/Dynamic Island)
   ───────────────────────────────────────────────────────────────────────── */

@supports (padding: env(safe-area-inset-bottom)) {
  .view-conferences .pager {
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  }

  .view-conferences .views-exposed-form {
    padding-left: calc(var(--space-4) + env(safe-area-inset-left));
    padding-right: calc(var(--space-4) + env(safe-area-inset-right));
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   17.7 LANDSCAPE PHONE OPTIMIZATIONS
   ───────────────────────────────────────────────────────────────────────── */

@media (max-height: 500px) and (orientation: landscape) {
  .video-now-playing {
    padding: var(--space-2) var(--space-4);
  }

  .video-now-playing__title {
    font-size: var(--text-lg);
  }

  .view-conferences .view-header {
    flex-direction: row; /* Keep side-by-side in landscape */
  }

  .video-now-playing {
    max-width: 300px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. QUICK WINS - ARCHIVE PAGE ENHANCEMENTS (2025-12-23)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   18.1 LANGUAGE LINK PILLS (#1)
   Transform bracketed language links into pill buttons
   ───────────────────────────────────────────────────────────────────────── */

.link-wrapper .video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 12px;
  background: var(--color-white);
  color: var(--itu-blue-active);        /* Darker blue (#006699) - 5.6:1 contrast, WCAG AA */
  font-size: 12px;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--itu-blue-active);
}

/* Remove the play triangle from language pills - it was causing misalignment */
.link-wrapper .video-link::before {
  content: none !important;
}

.link-wrapper .video-link:hover {
  background: var(--itu-blue-active);  /* Darker blue (#006699) for better contrast */
  color: var(--color-white);
  font-weight: var(--font-semibold);   /* Bolder text (600) */
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);  /* Subtle lift effect */
}

/* ─────────────────────────────────────────────────────────────────────────
   18.2 ROW HOVER LEFT BORDER (#2)
   Add ITU blue left border indicator on hover
   ───────────────────────────────────────────────────────────────────────── */

.view-conferences table tbody tr {
  border-left: 3px solid transparent;
}

.view-conferences table tbody tr:hover {
  border-left: 3px solid var(--itu-blue);
}

/* ─────────────────────────────────────────────────────────────────────────
   18.3 EVENT TITLE TYPOGRAPHY (#4)
   Better visual hierarchy for event titles
   ───────────────────────────────────────────────────────────────────────── */

.view-conferences table tbody td.views-field-field-computed-title {
  font-size: 15px;
}

.view-conferences table tbody td.views-field-field-computed-title a {
  color: var(--color-gray-900);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.view-conferences table tbody td.views-field-field-computed-title a:hover {
  color: var(--itu-blue);
}

/* ─────────────────────────────────────────────────────────────────────────
   18.4 PAGER "ALL" LINKS
   Add discrete "All" links on both sides of pagination
   ───────────────────────────────────────────────────────────────────────── */

/* "All" link styling - matches pager items */
.view-conferences .pager__item--all a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--min-touch);
  height: var(--min-touch);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--itu-text-primary);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.view-conferences .pager__item--all a:hover {
  background: var(--itu-blue);
  color: var(--color-white);
  border-color: var(--itu-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Separator after "All" at start */
.view-conferences .pager__item--all-start {
  margin-right: var(--space-2);
  padding-right: var(--space-3);
  border-right: 1px solid var(--color-gray-300);
}

/* Separator before "All" at end */
.view-conferences .pager__item--all-end {
  margin-left: var(--space-2);
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-gray-300);
}

/* Hide the entire items-per-page exposed form (we use pager "All" links instead) */
.view-conferences .view-filters form.views-exposed-form {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   18.5 DATE COLUMN STYLING (#5)
   Clean & Compact - ITU Corporate Style
   ───────────────────────────────────────────────────────────────────────── */

/* Date cell - compact and clean */
.view-conferences table td.views-field-field-start-date {
  font-size: 13px;
  color: var(--color-gray-700, #4d4d4d);
  white-space: nowrap;
  padding: 5px 8px !important;
  transition: color 0.15s ease;
}

/* Hover - subtle blue text */
.view-conferences table tbody tr:hover td.views-field-field-start-date {
  color: var(--itu-blue, #009EDB);
}

/* ─────────────────────────────────────────────────────────────────────────
   18.6 ROOM BADGE (#6)
   Subtle gray pill for room indicator
   ───────────────────────────────────────────────────────────────────────── */

.room-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Hover - slightly darker */
.view-conferences table tbody tr:hover .room-badge {
  background: #e5e5e5;
  color: #555;
}

/* ═══════════════════════════════════════════════════════════════════════════
   19. HERO SECTION - ITU BRANDED
   Netflix-style featured content banner with ITU blue theme
   Added: 2026-01-08
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero Container */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e5f5fb 50%, #b3e0f2 100%);
  padding: 3rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--itu-blue, #009EDB);
}

.hero-background {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

/* Hero Badges */
.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-live-badge {
  background: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  animation: heroPulse 2s infinite;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3); }
  50% { opacity: 0.85; box-shadow: 0 2px 12px rgba(220, 38, 38, 0.5); }
}

.hero-featured-badge {
  background: var(--itu-blue, #009EDB);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 158, 219, 0.3);
}

.hero-lock-icon {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  font-size: 1rem;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gray-900, #1a1a1a);
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.hero-conference {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 1.125rem;
  color: var(--itu-blue, #009EDB);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.hero-date {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 0.95rem;
  color: var(--color-gray-600, #666);
  margin: 0 0 1.5rem 0;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--itu-blue, #009EDB);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 158, 219, 0.3);
}

.hero-play-btn:hover {
  background: var(--itu-blue-hover, #007AB8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 158, 219, 0.4);
  color: white;
  text-decoration: none;
}

.hero-play-btn .play-icon {
  font-size: 0.875rem;
}

.hero-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--color-gray-900, #1a1a1a);
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--color-gray-200, #e0e0e0);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.hero-info-btn:hover {
  border-color: var(--itu-blue, #009EDB);
  color: var(--itu-blue, #009EDB);
  text-decoration: none;
}

/* Mobile Responsive Hero */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-conference {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-play-btn,
  .hero-info-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 0.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-background {
    min-height: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   20. PROTECTED CONTENT INDICATORS
   Lock icons and badges for member-only content
   Added: 2026-01-08
   ═══════════════════════════════════════════════════════════════════════════ */

/* Lock icon on protected cards */
.meeting-card .protected-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* Protected card hover effect */
.meeting-card.protected-meeting:hover .protected-indicator {
  background: var(--itu-blue, #009EDB);
  transform: scale(1.1);
}

/* Protected card border accent */
.meeting-card.protected-meeting {
  border-left: 3px solid #ffc107;
  position: relative;
}

/* Protected badge in thumbnail overlay - "Members Only" label */
.meeting-card.protected-meeting .meeting-overlay::after {
  content: 'Members Only';
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(255, 193, 7, 0.95);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Hero protected styling */
.hero-section.protected-meeting {
  border-left: 4px solid #ffc107;
}

/* ═══════════════════════════════════════════════════════════════════════════
   21. PROTECTED CONTENT MODAL - ITU STYLED
   Login prompt modal for protected content
   Added: 2026-01-08
   ═══════════════════════════════════════════════════════════════════════════ */

.protected-content-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.protected-content-modal.active {
  opacity: 1;
  visibility: visible;
}

.protected-content-modal .modal-content {
  background: white;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.protected-content-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.protected-content-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray-100, #f0f0f0);
}

.protected-content-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900, #1a1a1a);
  margin: 0;
}

.protected-content-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-gray-500, #808080);
  padding: 0.25rem;
  line-height: 1;
}

.protected-content-modal .modal-close:hover {
  color: var(--color-gray-900, #1a1a1a);
}

.protected-content-modal .protected-info {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.protected-content-modal .info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.protected-content-modal .info-text {
  margin: 0;
  color: var(--color-gray-700, #4d4d4d);
  font-size: 0.9rem;
  line-height: 1.5;
}

.protected-content-modal .modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.protected-content-modal .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.protected-content-modal .btn-primary {
  background: var(--itu-blue, #009EDB);
  color: white;
}

.protected-content-modal .btn-primary:hover {
  background: var(--itu-blue-hover, #007AB8);
}

.protected-content-modal .btn-secondary {
  background: var(--color-gray-100, #f0f0f0);
  color: var(--color-gray-900, #1a1a1a);
}

.protected-content-modal .btn-secondary:hover {
  background: var(--color-gray-200, #e0e0e0);
}

/* Mobile responsive modal */
@media (max-width: 480px) {
  .protected-content-modal .modal-content {
    padding: 1.5rem;
  }

  .protected-content-modal .modal-actions {
    flex-direction: column;
  }

  .protected-content-modal .btn {
    text-align: center;
    width: 100%;
  }
}
