/* Tarot Love Spread Page Styles */

:root {
    --love-primary: #E91E63;
    --love-secondary: #9C27B0;
    --love-accent: #FFD700;
    --love-dark: #4A1942;
    --love-light: #FFF0F5;
    --love-gradient: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
    --card-shadow: 0 15px 50px rgba(233, 30, 99, 0.3);
}

/* Container */
.tarot-love-container {
    padding-top: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.tarot-header {
    text-align: center;
    padding: 60px 30px;
    background: var(--love-gradient);
    border-radius: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-hearts span {
    position: absolute;
    font-size: 1.5rem;
    animation: float-heart 8s ease-in-out infinite;
}

.floating-hearts span:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { left: 25%; animation-delay: 1s; }
.floating-hearts span:nth-child(3) { left: 50%; animation-delay: 2s; }
.floating-hearts span:nth-child(4) { left: 75%; animation-delay: 3s; }
.floating-hearts span:nth-child(5) { left: 90%; animation-delay: 4s; }

@keyframes float-heart {
    0% { top: 100%; opacity: 0; transform: translateX(0) rotate(0deg); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: -20%; opacity: 0; transform: translateX(50px) rotate(360deg); }
}

.tarot-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.title-decoration {
    color: var(--love-accent);
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.tarot-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.spread-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.info-item {
    color: white;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.info-divider {
    color: rgba(255,255,255,0.5);
}

/* Position Guide */
.position-guide {
    background: var(--love-light);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.position-guide h2 {
    color: var(--love-primary);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.guide-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.guide-card {
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--love-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto 10px;
}

.guide-label {
    display: block;
    color: var(--love-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.guide-desc {
    display: block;
    color: #888;
    font-size: 0.8rem;
}

/* Spread Section */
.spread-section {
    background: linear-gradient(180deg, var(--love-light) 0%, white 100%);
    border-radius: 25px;
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Spread Layout - Pentagon Shape */
.spread-layout {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 550px;
    margin: 0 auto 40px;
}

/* Card Positions */
.card-position {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Pentagon Layout */
.position-1 { top: 5%; left: 15%; }  /* 나 자신 - 왼쪽 상단 */
.position-2 { top: 5%; right: 15%; } /* 상대방 - 오른쪽 상단 */
.position-3 { top: 35%; left: 50%; transform: translateX(-50%); } /* 현재 관계 - 중앙 */
.position-4 { bottom: 10%; left: 10%; } /* 장애 요인 - 왼쪽 하단 */
.position-5 { bottom: 10%; right: 10%; } /* 결론/조언 - 오른쪽 하단 */

/* Position Label */
.position-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--love-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.label-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: white;
    color: var(--love-primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Tarot Card */
.tarot-card {
    width: 110px;
    height: 170px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.tarot-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-front {
    background: linear-gradient(145deg, #2D1B4E 0%, #1A0F2E 100%);
    border: 3px solid var(--love-accent);
}

.card-back-design {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-pattern {
    position: absolute;
    width: 80%;
    height: 85%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.card-pattern::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 5px;
}

.card-symbol {
    font-size: 2rem;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255,215,0,0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255,215,0,0.8)); }
}

.card-back {
    background: linear-gradient(145deg, #FFF8E7 0%, #FFF0D4 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 3px solid var(--love-primary);
}

.card-image {
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.card-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--love-dark);
    text-align: center;
    line-height: 1.2;
}

/* Card Hover Effect */
.tarot-card:not(.flipped):hover .card-inner {
    transform: translateY(-10px) rotateX(5deg);
}

/* Center Decoration */
.spread-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.center-heart {
    font-size: 4rem;
    opacity: 0.3;
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

/* Draw Button */
.draw-cards-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 20px 45px;
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    border: none;
    border-radius: 50px;
    color: #FFF5D6;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(107, 82, 16, 0.4);
    position: relative;
    overflow: hidden;
}

.draw-cards-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.draw-cards-btn:hover::before {
    left: 100%;
}

.draw-cards-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    box-shadow: 0 15px 50px rgba(107, 82, 16, 0.5);
}

.draw-cards-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-sparkle {
    animation: twinkle 1.5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Reset Button */
.reset-btn {
    display: block;
    margin: 20px auto 0;
    padding: 15px 35px;
    background: white;
    border: 2px solid var(--love-primary);
    border-radius: 30px;
    color: var(--love-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: var(--love-primary);
    color: white;
}

/* Result Section */
.result-section {
    background: white;
    border-radius: 25px;
    padding: 45px 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: slide-up 0.6s ease;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-title {
    text-align: center;
    color: var(--love-primary);
    font-size: 2rem;
    margin-bottom: 35px;
}

/* Swiper Styles */
.card-details-swiper {
    padding: 30px 50px 60px;
    margin-bottom: 30px;
}

.swiper-slide {
    background: linear-gradient(145deg, var(--love-light) 0%, white 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
    border: 2px solid rgba(233, 30, 99, 0.1);
}

.slide-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(233, 30, 99, 0.1);
}

.slide-position {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--love-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.slide-position-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--love-dark);
}

.slide-card-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.slide-card-image {
    font-size: 4rem;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slide-card-details h4 {
    color: var(--love-primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.slide-card-details .keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    background: var(--love-gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.slide-meaning {
    margin-top: 15px;
}

.slide-meaning h5 {
    color: var(--love-secondary);
    font-size: 1rem;
    margin-bottom: 10px;
}

.slide-meaning p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.slide-advice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--love-primary);
}

.slide-advice h5 {
    color: var(--love-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.slide-advice p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: var(--love-primary);
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.swiper-pagination-bullet {
    background: var(--love-primary);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--love-gradient);
}

/* Overall Reading */
.overall-reading {
    background: linear-gradient(145deg, rgba(233, 30, 99, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 2px solid rgba(233, 30, 99, 0.1);
}

.overall-reading h3 {
    color: var(--love-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.reading-content {
    color: var(--love-dark);
    line-height: 1.8;
    font-size: 1rem;
    text-align: center;
}

.reading-content p {
    margin-bottom: 12px;
}

/* Love Advice */
.love-advice {
    background: white;
    border: 2px dashed var(--love-secondary);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
}

.love-advice h3 {
    color: var(--love-secondary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.advice-content {
    color: #555;
    line-height: 1.8;
    text-align: center;
}

/* Lucky Section */
.lucky-section {
    margin-bottom: 30px;
}

.lucky-section h3 {
    color: var(--love-primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.lucky-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lucky-item {
    background: var(--love-light);
    border-radius: 15px;
    padding: 20px 25px;
    text-align: center;
    min-width: 130px;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.lucky-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.lucky-label {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.lucky-value {
    display: block;
    color: var(--love-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Result Actions */
.result-actions {
    text-align: center;
}

.share-result-btn {
    padding: 15px 40px;
    background: var(--love-gradient);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(233, 30, 99, 0.3);
}

.share-result-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(233, 30, 99, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tarot-love-container {
        padding: 20px 15px;
    }
    
    .tarot-header {
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .tarot-title {
        font-size: 1.8rem;
    }
    
    .spread-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-divider {
        display: none;
    }
    
    .guide-cards {
        gap: 10px;
    }
    
    .guide-card {
        min-width: 100px;
        padding: 15px 10px;
    }
    
    .spread-layout {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 20px 0;
    }
    
    .card-position {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    .spread-center {
        display: none;
    }
    
    .tarot-card {
        width: 100px;
        height: 155px;
    }
    
    .card-image {
        font-size: 3rem;
    }
    
    .card-name {
        font-size: 0.65rem;
    }
    
    .card-details-swiper {
        padding: 20px 10px 50px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    
    .slide-card-info {
        flex-direction: column;
        text-align: center;
    }
    
    .slide-card-details .keywords {
        justify-content: center;
    }
    
    .lucky-items {
        gap: 15px;
    }
    
    .lucky-item {
        min-width: 100px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tarot-title {
        font-size: 1.5rem;
    }
    
    .position-guide {
        padding: 25px 15px;
    }
    
    .guide-card {
        min-width: 90px;
        padding: 12px 8px;
    }
    
    .guide-label {
        font-size: 0.85rem;
    }
    
    .guide-desc {
        font-size: 0.7rem;
    }
    
    .draw-cards-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
    }
    
    .result-section {
        padding: 30px 20px;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
}

/* Card Drawing Animation */
@keyframes card-deal {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(0deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.tarot-card.dealing {
    animation: card-deal 0.6s ease forwards;
}

.tarot-card.dealing:nth-child(1) { animation-delay: 0.1s; }
.tarot-card.dealing:nth-child(2) { animation-delay: 0.3s; }
.tarot-card.dealing:nth-child(3) { animation-delay: 0.5s; }
.tarot-card.dealing:nth-child(4) { animation-delay: 0.7s; }
.tarot-card.dealing:nth-child(5) { animation-delay: 0.9s; }

