/* ============================================================================
   Route Card Styles
   ============================================================================ */

.route-card {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.route-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.route-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
}

.route-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.route-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-card-meta-divider {
  width: 1px;
  height: 14px;
  background: var(--color-border-light);
}

/* Difficulty badges */
.difficulty-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.difficulty-easy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.difficulty-medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.difficulty-hard {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.difficulty-expert {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  color: white;
}

/* Top route badge */
.top-route-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Rating stars */
.rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
}

.star-filled {
  color: #fbbf24;
}

.star-empty {
  color: #d1d5db;
}

.rating-count {
  font-size: 11px;
  color: var(--color-text-light);
  margin-left: 4px;
}

/* Actions menu (3 dots) */
.btn-actions-menu {
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-actions-menu:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--color-border);
  color: var(--color-text);
  transform: scale(1.05);
}

.btn-actions-menu:active {
  transform: scale(0.95);
}

/* Dropdown menu */
.actions-dropdown {
  display: none;
  position: fixed;
  min-width: 160px;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  overflow: hidden;
  animation: slideUp 0.15s ease-out;
}

.actions-dropdown.show {
  display: block;
}

.dropdown-item {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-menu {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;
}

.card-menu-btn {
  width: 28px;
  height: 28px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.card-menu-btn:hover {
  background: #f3f4f6;
}

/* Dropdown - ukryty domyślnie */

.card-menu-dropdown {
  display: none;
  position: fixed;        /* było: absolute */
  min-width: 160px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 9999;          /* było: 100 */
  overflow: hidden;
}

.card-menu-dropdown.show {
  display: block;
}


.card-menu-item {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
}

.card-menu-item:hover {
  background: #f3f4f6;
}

.card-menu-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 2px 0;
}

.card-menu-item--danger {
  color: #ef4444;
}

.card-menu-item--danger:hover {
  background: #fef2f2;
}