/* ================================================================
   GESTIVA MEET · Page d'accueil des réunions
   Design style Google Meet / Gestiva Premium
   ================================================================ */

/* ── Page wrapper ──────────────────────────────────────────────── */
.meet-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 40px;
}

/* ── Hero : Démarrer une réunion instantanée ─────────────────── */
.meet-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.30);
  position: relative;
  overflow: hidden;
}

.meet-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.meet-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 40%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.meet-hero-left {
  flex: 1;
  position: relative;
  z-index: 1;
}

.meet-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.meet-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.meet-hero-sub {
  font-size: 15px;
  color: #bfdbfe;
  margin: 0 0 32px;
  line-height: 1.6;
}

.meet-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-meet-start {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  color: #1e40af;
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-meet-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-meet-schedule {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  backdrop-filter: blur(8px);
}

.btn-meet-schedule:hover {
  background: rgba(255, 255, 255, 0.22);
}

.meet-join-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 6px 8px 6px 16px;
  margin-top: 18px;
  max-width: 400px;
  backdrop-filter: blur(8px);
}

.meet-join-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  placeholder-color: #93c5fd;
}

.meet-join-form input::placeholder {
  color: #93c5fd;
}

.btn-join-code {
  background: #ffffff;
  color: #1e40af;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-join-code:hover {
  opacity: 0.88;
}

/* Illustration / Preview côté droit du hero */
.meet-hero-visual {
  flex-shrink: 0;
  width: 280px;
  position: relative;
  z-index: 1;
}

.meet-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meet-preview-tile {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.meet-preview-tile.large {
  grid-column: span 2;
  padding: 22px;
}

.meet-preview-tile .tile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.meet-preview-tile .tile-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.meet-preview-tile .tile-badge-live {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: live-pulse 1.8s infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1); }
}

/* ── Grille de cards d'informations ──────────────────────────── */
.meet-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Section card ─────────────────────────────────────────────── */
.meet-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.meet-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.meet-section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meet-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.meet-section-icon.blue { background: #eff6ff; color: #2563eb; }
.meet-section-icon.green { background: #f0fdf4; color: #16a34a; }
.meet-section-icon.amber { background: #fffbeb; color: #d97706; }
.meet-section-icon.purple { background: #faf5ff; color: #7c3aed; }

.meet-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.meet-section-sub {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

/* Lien "Voir tout" */
.meet-link-sm {
  font-size: 12.5px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}
.meet-link-sm:hover { opacity: 0.7; }

/* ── Liste des réunions ─────────────────────────────────────── */
.meet-list {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow-y: auto;
}

.meet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.12s;
}

.meet-item:last-child { border-bottom: none; }
.meet-item:hover { background: #f8fafc; }

.meet-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.meet-item-icon.active-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.meet-item-icon.scheduled-icon {
  background: #fffbeb;
  color: #d97706;
}

.meet-item-info {
  flex: 1;
  min-width: 0;
}

.meet-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meet-item-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.meet-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-meet-join-sm {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-meet-join-sm:hover { background: #1d4ed8; }

.btn-meet-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s;
}
.btn-meet-icon-sm:hover { background: #f1f5f9; }

/* Badge de statut */
.meet-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.meet-badge.active { background: #dcfce7; color: #16a34a; }
.meet-badge.waiting { background: #fffbeb; color: #d97706; }
.meet-badge.ended { background: #f1f5f9; color: #64748b; }

/* Vide */
.meet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  color: #94a3b8;
  text-align: center;
  gap: 10px;
}

.meet-empty i { font-size: 36px; opacity: 0.5; }
.meet-empty p { font-size: 13px; margin: 0; }

/* ── Statistiques rapides ─────────────────────────────────────── */
.meet-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.meet-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.meet-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.meet-stat-info { min-width: 0; }

.meet-stat-value {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.meet-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* ── Réponse responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .meet-grid-2 { grid-template-columns: 1fr; }
  .meet-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .meet-hero { flex-direction: column; padding: 32px 24px; }
  .meet-hero-visual { display: none; }
  .meet-stats-row { grid-template-columns: 1fr 1fr; }
  .meet-hero h1 { font-size: 26px; }
}
