/* fortune.css - Today's Daily Fortune Page Styling */

/* Navigation Bar */
.fortune-nav-bar {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(7, 18, 36, 0.5);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gold);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-light);
}

/* Scrollable Container */
.fortune-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 24px 20px;
    z-index: 2;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Header */
.fortune-header {
    text-align: center;
    margin-bottom: 15px;
}

.fortune-title {
    font-family: 'Cinzel', var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    background-image: url('assets/gold_foil_texture.png');
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
    margin-bottom: 4px;
}

.fortune-subtitle {
    font-size: 13px;
    color: #8c9cb3;
    line-height: 1.4;
}

/* Character Showcase Container */
.fortune-character-showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.zodiac-character-showcase {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-bottom: 10px;
}

.zodiac-character-showcase .zodiac-character-img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.45);
    background: rgba(15, 35, 63, 0.55);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    z-index: 2;
    animation: scaleUpZodiac 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, floatCharacter 3s ease-in-out infinite alternate 1s;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.25));
}

.zodiac-badge-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Accessory Overlays on Fortune screen */
.accessory-overlay-res {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accessory-overlay-res.equipped {
    opacity: 1;
    transform: scale(1);
    animation: floatCharacter 3s ease-in-out infinite alternate 1s;
}

.zodiac-character-title {
    font-family: var(--font-serif);
    color: var(--text-gold);
    font-size: 19px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    text-align: center;
}

/* Readings Section */
.fortune-reading-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Fortune Actions */
.fortune-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.fortune-btn-closet {
    height: 48px;
    font-size: 20px;
    letter-spacing: 1px;
}

.btn-retry-horoscope {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #8c9cb3;
    border-radius: 20px;
    padding: 8px 0;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-retry-horoscope:hover {
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--text-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Animations */
@keyframes scaleUpZodiac {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatCharacter {
    0% {
        transform: translateY(0px) scale(1);
    }
    100% {
        transform: translateY(-8px) scale(1.02);
    }
}

/* Tiger-specific fine-tuning for accessories overlays */
.accessory-overlay svg,
.accessory-overlay-res svg {
    width: 100%;
    height: 100%;
    display: block;
}
.char-tiger #overlay-gat svg,
.char-tiger #overlay-gat-res svg {
    transform: translateY(-22px) scale(0.95);
    transform-origin: center;
}
.char-tiger #overlay-binyeo svg,
.char-tiger #overlay-binyeo-res svg {
    transform: translate(22px, -20px) rotate(12deg) scale(0.8);
    transform-origin: center;
}
.char-tiger #overlay-norigae svg,
.char-tiger #overlay-norigae-res svg {
    transform: translate(0px, 32px) scale(0.75);
    transform-origin: center;
}
