/**
 * Cards Component Styles
 * Content cards for bookings, messages, notifications, quick actions
 */

/* ═══════════════════════════════════════════════════════════════════
   CARDS GRID
   ═══════════════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CARD BASE
   ═══════════════════════════════════════════════════════════════════ */
.card {
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--dash-border);
}

.card-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin: 0;
}

.card-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.card-link:hover {
  opacity: 0.8;
}

.card-action {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.card-action:hover {
  background: var(--dash-surface);
  color: var(--color-text);
}

.card-body {
  padding: var(--space-4) var(--space-5);
}

/* ═══════════════════════════════════════════════════════════════════
   CARD SKELETON
   ═══════════════════════════════════════════════════════════════════ */
.card-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skeleton-item {
  height: 56px;
  background: var(--dash-surface);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.skeleton-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   BOOKING ITEM
   ═══════════════════════════════════════════════════════════════════ */
.booking-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--dash-surface);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-item:hover {
  background: rgba(14, 165, 233, 0.08);
}

.booking-item + .booking-item {
  margin-top: var(--space-3);
}

.booking-thumb {
  position: relative;
  width: 64px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.booking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.booking-info h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-dates {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: 10px;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
}

.booking-status.confirmed {
  background: var(--color-success-light);
  color: var(--color-success);
}

.booking-status.pending {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.booking-status.cancelled {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

/* ═══════════════════════════════════════════════════════════════════
   MESSAGE ITEM
   ═══════════════════════════════════════════════════════════════════ */
.message-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--dash-surface);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.message-item:hover {
  background: rgba(139, 92, 246, 0.08);
}

.message-item + .message-item {
  margin-top: var(--space-2);
}

.message-item.unread {
  background: rgba(139, 92, 246, 0.1);
}

.message-avatar {
  position: relative;
  flex-shrink: 0;
}

.message-avatar img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.message-avatar .unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border: 2px solid var(--dash-card);
  border-radius: var(--radius-full);
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.message-sender {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.message-preview {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ═══════════════════════════════════════════════════════════════════
   NOTIFICATION ITEM
   ═══════════════════════════════════════════════════════════════════ */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--dash-surface);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-item:hover {
  background: rgba(245, 158, 11, 0.08);
}

.notification-item + .notification-item {
  margin-top: var(--space-2);
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.notification-icon.success {
  background: var(--color-success);
}

.notification-icon.warning {
  background: var(--color-warning);
}

.notification-icon.info {
  background: var(--color-info);
}

.notification-icon.error {
  background: var(--color-danger);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}

.notification-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   QUICK ACTIONS
   ═══════════════════════════════════════════════════════════════════ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 600px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--dash-surface);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
  text-align: center;
  min-height: 88px;
}

.quick-action:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.quick-action svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.quick-action span {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* ═══════════════════════════════════════════════════════════════════
   CARD EMPTY STATE
   ═══════════════════════════════════════════════════════════════════ */
.card-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  color: var(--color-text-muted);
}

.card-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.card-empty p {
  font-size: var(--text-sm);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   GLASS CARD STYLES - TECHNICAL DESIGN
   ═══════════════════════════════════════════════════════════════════ */
.card.glass-card {
  position: relative;
  background: rgba(var(--color-surface-rgb, 15, 23, 42), 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Dungă colorată gradient pe stânga */
.card.glass-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6, #06b6d4);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
  z-index: 1;
}

/* Efect glow subtil în colțuri */
.card.glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(14, 165, 233, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hover effect */
.card.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Variante de dungă colorată */
.card.glass-card.stripe-green::before {
  background: linear-gradient(180deg, #22c55e, #10b981, #14b8a6);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.card.glass-card.stripe-orange::before {
  background: linear-gradient(180deg, #f97316, #fb923c, #fbbf24);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.card.glass-card.stripe-purple::before {
  background: linear-gradient(180deg, #8b5cf6, #a855f7, #ec4899);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.card.glass-card.stripe-cyan::before {
  background: linear-gradient(180deg, #06b6d4, #0ea5e9, #3b82f6);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.card.glass-card .card-header {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.card.glass-card .card-body {
  position: relative;
  background: transparent;
  z-index: 2;
}

/* Glass booking item */
.booking-item.glass-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  overflow: hidden;
}

/* Dungă subțire pe stânga */
.booking-item.glass-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #22c55e, #10b981);
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.booking-item.glass-item:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateX(4px);
  box-shadow:
    0 6px 20px rgba(14, 165, 233, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.booking-item.glass-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* Glass message item */
.message-item.glass-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  overflow: hidden;
}

.message-item.glass-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #8b5cf6, #a855f7);
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.message-item.glass-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(4px);
  box-shadow:
    0 6px 20px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.message-item.glass-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.message-item.glass-item.unread {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.15);
}

.message-item.glass-item.unread::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* Glass notification item */
.notification-item.glass-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  overflow: hidden;
}

.notification-item.glass-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f97316, #fbbf24);
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.notification-item.glass-item:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateX(4px);
  box-shadow:
    0 6px 20px rgba(245, 158, 11, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.notification-item.glass-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Glass notification icon - 3D */
.notification-icon.glass-icon {
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.3),
    -1px -1px 4px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass quick actions - full technical design */
.quick-action.glass-action {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Dungă colorată sus */
.quick-action.glass-action::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Glow effect subtle */
.quick-action.glass-action::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(14, 165, 233, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.quick-action.glass-action:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 8px 20px rgba(14, 165, 233, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-action.glass-action:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.quick-action.glass-action:hover::after {
  opacity: 1;
}

/* Quick action icon 3D */
.quick-action.glass-action svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.quick-action.glass-action span {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
}

