/* ================================================
   TravelTips - Card Stylesheet
   出行提示卡片样式（用于Playwright截图）
   ================================================ */

/* ---------- Card Container ---------- */
.travel-card {
  width: 1080px;
  height: 1920px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

/* ---------- Card Background Pattern ---------- */
.travel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* ---------- Cover Image Area ---------- */
.card-cover {
  position: relative;
  height: 65%;
  overflow: hidden;
}

.card-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.5) 60%, rgba(26, 26, 46, 0.95) 100%);
}

.card-cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.95) 100%);
}

/* ---------- Card Header ---------- */
.card-header {
  position: absolute;
  bottom: 50%;
  left: 0;
  right: 0;
  padding: 40px 60px;
  z-index: 10;
}

.card-title {
  font-size: 96px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 32px;
  opacity: 0.9;
}

.card-subtitle-icon {
  font-size: 36px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 24px;
}

.card-tag.highlight {
  background: rgba(37, 99, 235, 0.6);
}

/* ---------- Card Content ---------- */
.card-content {
  padding: 40px 60px;
  position: relative;
  z-index: 10;
}

.card-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
}

.card-section-title::before,
.card-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.card-section-title::before { max-width: 40px; }
.card-section-title::after { max-width: 40px; }

/* ---------- Tips List ---------- */
.card-tips {
  list-style: none;
  margin-bottom: 40px;
}

.card-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 28px;
}

.card-tip-item:last-child {
  border-bottom: none;
}

.card-tip-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  font-size: 20px;
}

.card-tip-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-tip-icon.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ---------- Emergency Section ---------- */
.card-emergency {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 24px 32px;
  margin-bottom: 32px;
}

.card-emergency-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  color: #fca5a5;
  margin-bottom: 16px;
}

.card-emergency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 24px;
}

.card-emergency-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- QR Code Section ---------- */
.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 60px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.card-qr-area {
  display: flex;
  align-items: center;
  gap: 24px;
}

.card-qr-code {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 16px;
  padding: 8px;
}

.card-qr-text {
  font-size: 24px;
  line-height: 1.4;
  opacity: 0.9;
}

.card-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 28px;
  font-weight: 600;
}

.card-logo-icon {
  font-size: 48px;
}

/* ---------- Category Theme Colors ---------- */
.travel-card.theme-beach {
  background: linear-gradient(180deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
}

.travel-card.theme-mountain {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 50%, #166534 100%);
}

.travel-card.theme-ancient {
  background: linear-gradient(180deg, #b45309 0%, #92400e 50%, #78350f 100%);
}

.travel-card.theme-snow {
  background: linear-gradient(180deg, #64748b 0%, #475569 50%, #334155 100%);
}

.travel-card.theme-grassland {
  background: linear-gradient(180deg, #65a30d 0%, #4d7c0f 50%, #3f6212 100%);
}

.travel-card.theme-desert {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
}

/* ---------- Decorative Elements ---------- */
.card-decoration {
  position: absolute;
  pointer-events: none;
}

.card-decoration.circle-1 {
  top: 10%;
  right: -5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.card-decoration.circle-2 {
  bottom: 20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---------- Difficulty Badge ---------- */
.card-difficulty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 22px;
}

.card-difficulty.easy {
  background: rgba(34, 197, 94, 0.3);
}

.card-difficulty.medium {
  background: rgba(245, 158, 11, 0.3);
}

.card-difficulty.hard {
  background: rgba(239, 68, 68, 0.3);
}
