/* =========================================
   Ticket Card Component Styles
   ========================================= */

.ticket-card {
  position: relative;
  max-width: 32rem;
  width: 100%;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  text-decoration: none;
}

@media (min-width: 768px) {
  .ticket-card {
    margin-left: auto;
    margin-right: 0;
  }
}

.ticket-card:hover {
  transform: translateY(-4px);
}

.ticket-container {
  display: flex;
  width: 100%;
  background-color: #eae2cf;
  border-radius: 0.125rem;
  box-shadow: 0 10px 25px rgba(62, 39, 35, 0.15);
  position: relative;
  overflow: hidden;
}

/* Ticket Stub (左侧票根) */
.ticket-stub {
  width: 6rem;
  background-color: #3e2723;
  color: #e8e0d5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.75rem;
  flex-shrink: 0;
  border-right: 2px dashed rgba(234, 226, 207, 0.4);
}

.stub-serial {
  position: absolute;
  left: 0.5rem;
  bottom: 1rem;
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-90deg);
  transform-origin: left;
  white-space: nowrap;
}

.stub-date {
  text-align: center;
  z-index: 10;
}

.stub-date .month {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b5a2b;
}

.stub-date .day {
  font-size: 1.875rem;
  font-weight: bold;
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
  margin-top: 0.25rem;
}

/* Notch (打孔效果) */
.notch {
  position: absolute;
  right: -0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #f2efe9;
  border-radius: 50%;
  z-index: 20;
}

.notch-top {
  top: -0.5rem;
}

.notch-bottom {
  bottom: -0.5rem;
}

/* Ticket Body (门票主体) */
.ticket-body {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
}

.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: radial-gradient(#3e2723 0.5px, transparent 0.5px);
  background-size: 8px 8px;
}

/* Ticket Header */
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(62, 39, 35, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
}

.ticket-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticket-type i {
  color: #8b5a2b;
  font-size: 0.75rem;
}

.ticket-type span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #5d4037;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #8b5a2b;
  text-transform: uppercase;
}

/* Ticket Title Area */
.ticket-title-area {
  position: relative;
  z-index: 10;
  margin-bottom: 0.5rem;
}

.ticket-title {
  font-size: 1.5rem;
  color: #2d2420;
  font-family: 'Noto Serif SC', serif;
  font-weight: bold;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0;
}

.ticket-subtitle {
  font-size: 0.75rem;
  color: rgba(93, 64, 55, 0.8);
  margin-top: 0.25rem;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 0;
}

/* Ticket Footer */
.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-top: 0.5rem;
}

.seat-info {
  display: none;
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(62, 39, 35, 0.5);
  line-height: 1.25;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .seat-info {
    display: block;
  }
}

/* Play Button */
.play-btn {
  padding: 0.5rem 1.25rem;
  background-color: #3e2723;
  color: #e8e0d5;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.125rem;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  transition: all 0.2s;
  pointer-events: none; /* Allow click to pass through to parent link */
}

.ticket-card:hover .play-btn {
  background-color: #5d4037;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ticket-card:active .play-btn {
  transform: scale(0.95) translateY(1px);
}

.play-btn i {
  font-size: 8px;
}
