/* ==========================================================================
   TEMPLATE: I MISS YOU (LONG DISTANCE & CLOSE AT HEART)
   Folder: templates/miss-you/miss-you.css
   ========================================================================== */

/* 1. DUAL CITY DISTANCE RADAR (SLIDE 0) */
.miss-you-distance-radar {
    margin: 18px 0 14px 0;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 126, 179, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInScale 0.6s ease;
}

.radar-cities-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.radar-city-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.radar-city-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 700;
}

.radar-city-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(255, 78, 136, 0.3);
    text-align: center;
}

.radar-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 8px;
    min-width: 90px;
}

.radar-heart-pulse {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ff4e88, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 78, 136, 0.7);
    animation: radarHeartBeat 1.4s ease-in-out infinite;
    z-index: 2;
}

@keyframes radarHeartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

.radar-line-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.radar-distance-tag {
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 12px;
    background: rgba(255, 78, 136, 0.15);
    border: 1px solid rgba(255, 78, 136, 0.35);
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffd1dc;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 2. HOLD TO HUG HEARTBEAT CHAMBER (SLIDE 1) */
.hold-hug-chamber {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hug-sensor-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 18px auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hug-ripples {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hug-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 78, 136, 0.4);
    opacity: 0;
    transform: scale(0.6);
}

.hold-hug-chamber.pressing .hug-ripple:nth-child(1) {
    animation: rippleWave 1.2s infinite ease-out;
}
.hold-hug-chamber.pressing .hug-ripple:nth-child(2) {
    animation: rippleWave 1.2s 0.4s infinite ease-out;
}
.hold-hug-chamber.pressing .hug-ripple:nth-child(3) {
    animation: rippleWave 1.2s 0.8s infinite ease-out;
}

@keyframes rippleWave {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hug-progress-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.hug-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.hug-progress-bar {
    fill: none;
    stroke: #ff4e88;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 471;
    stroke-dashoffset: 471;
    transition: stroke-dashoffset 0.08s linear;
}

.btn-sensor-touch {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4e88 0%, #a855f7 100%);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 78, 136, 0.45);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    outline: none;
    z-index: 3;
}

.btn-sensor-touch:active,
.hold-hug-chamber.pressing .btn-sensor-touch {
    transform: scale(0.92);
    box-shadow: 0 5px 40px rgba(255, 78, 136, 0.8);
    filter: brightness(1.2);
}

.sensor-heart-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.hold-hug-chamber.pressing .sensor-heart-icon {
    animation: heartPulseFast 0.5s infinite;
}

@keyframes heartPulseFast {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.sensor-instruction {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hug-status-text {
    margin-top: 10px;
    font-size: 0.88rem;
    color: #ffd1dc;
    font-weight: 600;
    min-height: 24px;
}

/* Hug Completed Card Reveal */
.hug-completed-card {
    display: none;
    margin-top: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 78, 136, 0.2), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(255, 126, 179, 0.4);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(255, 78, 136, 0.25);
    animation: slideUpFade 0.5s ease;
}

.hug-completed-card.unlocked {
    display: block;
}

.hug-completed-card h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
}

.hug-completed-card p {
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* 3. REUNION BOARDING PASS & VOUCHER (SLIDE 4) */
.reunion-ticket-card {
    margin: 14px 0;
    background: linear-gradient(135deg, #180d26 0%, #261138 100%);
    border: 1px solid rgba(255, 126, 179, 0.35);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    position: relative;
    text-align: left;
}

.ticket-header {
    background: linear-gradient(135deg, #ff4e88, #9333ea);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.ticket-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-brand {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticket-flight-no {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
}

.ticket-body {
    padding: 18px 20px;
}

.ticket-route-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ticket-location {
    text-align: left;
}
.ticket-location.right {
    text-align: right;
}

.ticket-code {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

.ticket-city {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.ticket-plane-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 12px;
}

.ticket-plane-icon {
    font-size: 1.2rem;
    color: var(--accent-pink);
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.ticket-dotted-line {
    width: 100%;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
}

.ticket-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-meta-item {
    display: flex;
    flex-direction: column;
}

.ticket-meta-lbl {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.ticket-meta-val {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
}

.ticket-perforated-divider {
    position: relative;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

.ticket-perforated-divider::before,
.ticket-perforated-divider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #0f0514;
    border-radius: 50%;
    top: -8px;
}

.ticket-perforated-divider::before {
    left: -8px;
}

.ticket-perforated-divider::after {
    right: -8px;
}

.ticket-footer-barcode {
    padding: 10px 18px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-barcode-lines {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.ticket-seat-pill {
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 78, 136, 0.2);
    color: #ffd1dc;
    border: 1px solid rgba(255, 78, 136, 0.4);
    padding: 3px 10px;
    border-radius: 12px;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
