/* rb.tarot_fortune 위젯 공통 스타일 */
.rb_tarot_fortune {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 17px 20px;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

/* 배경 컨테이너 */
.rb_tarot_fortune_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 아이콘 */
.rb_tarot_fortune_icon {
    font-size: 2rem;
    margin-bottom: 12px;
    z-index: 3;
    animation: rb_tarot_fortune_bounce 2s ease-in-out infinite;
}

@keyframes rb_tarot_fortune_bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 텍스트 */
.rb_tarot_fortune_text {
    z-index: 3;
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
    max-width: 80%;
}

/* 버튼 */
.rb_tarot_fortune_btn {
    z-index: 3;
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

/* ===== 아침 스타일 (5시~10시) ===== */
.rb_tarot_fortune.morning {
    background: linear-gradient(to bottom, #87CEEB 0%, #FFE4B5 50%, #FFA07A 100%);
    color: #333;
}

.rb_tarot_fortune.morning .rb_tarot_fortune_sunrise {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: rb_tarot_fortune_rise 3s ease-in-out infinite alternate;
}

@keyframes rb_tarot_fortune_rise {
    0% { transform: translateX(-50%) translateY(20px); }
    100% { transform: translateX(-50%) translateY(-20px); }
}

.rb_tarot_fortune.morning .rb_tarot_fortune_clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 30%);
    z-index: 2;
}

.rb_tarot_fortune.morning .rb_tarot_fortune_btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 160, 122, 0.5);
    color: #333;
}

.rb_tarot_fortune.morning .rb_tarot_fortune_btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* ===== 오전 스타일 (10시~14시) ===== */
.rb_tarot_fortune.daytime {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.rb_tarot_fortune.daytime::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rb_tarot_fortune_pulse 4s ease-in-out infinite;
}

@keyframes rb_tarot_fortune_pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.rb_tarot_fortune.daytime .rb_tarot_fortune_crystals {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rb_tarot_fortune.daytime .rb_tarot_fortune_crystals::before,
.rb_tarot_fortune.daytime .rb_tarot_fortune_crystals::after {
    content: '✦';
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    animation: rb_tarot_fortune_sparkle 3s ease-in-out infinite;
}

.rb_tarot_fortune.daytime .rb_tarot_fortune_crystals::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.rb_tarot_fortune.daytime .rb_tarot_fortune_crystals::after {
    top: 30%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes rb_tarot_fortune_sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
}

.rb_tarot_fortune.daytime .rb_tarot_fortune_btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.rb_tarot_fortune.daytime .rb_tarot_fortune_btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ===== 오후 스타일 (14시~18시) ===== */
.rb_tarot_fortune.afternoon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
    position: relative;
}

.rb_tarot_fortune.afternoon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.rb_tarot_fortune.afternoon .rb_tarot_fortune_floating {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rb_tarot_fortune.afternoon .rb_tarot_fortune_floating::before,
.rb_tarot_fortune.afternoon .rb_tarot_fortune_floating::after {
    content: '◆';
    position: absolute;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    animation: rb_tarot_fortune_float 6s ease-in-out infinite;
}

.rb_tarot_fortune.afternoon .rb_tarot_fortune_floating::before {
    top: 60%;
    left: 10%;
    animation-delay: 0s;
}

.rb_tarot_fortune.afternoon .rb_tarot_fortune_floating::after {
    top: 40%;
    right: 15%;
    animation-delay: 3s;
    font-size: 16px;
}

@keyframes rb_tarot_fortune_float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(0) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(20px) rotate(270deg);
        opacity: 0.8;
    }
}

.rb_tarot_fortune.afternoon .rb_tarot_fortune_text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rb_tarot_fortune.afternoon .rb_tarot_fortune_btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.rb_tarot_fortune.afternoon .rb_tarot_fortune_btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.9);
}

/* ===== 저녁 스타일 (18시~5시) ===== */
.rb_tarot_fortune.evening {
    background: #0d0d0d;
    color: #f0f0f0;
}

.rb_tarot_fortune.evening .rb_tarot_fortune_stars {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(100, 150, 255, 0.15), transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(100, 150, 255, 0.15), transparent 60%);
    z-index: 1;
}

.rb_tarot_fortune.evening .rb_tarot_fortune_stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow:
        10px 20px #fff, 30px 40px #fff, 60px 80px #fff,
        90px 120px #fff, 140px 160px #fff, 200px 20px #fff,
        250px 180px #fff, 320px 60px #fff, 400px 200px #fff,
        480px 140px #fff, 550px 90px #fff, 620px 30px #fff,
        700px 170px #fff;
    animation: rb_tarot_fortune_twinkle 3s infinite ease-in-out;
}

@keyframes rb_tarot_fortune_twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

.rb_tarot_fortune.evening .rb_tarot_fortune_moon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 80px;
    height: 80px;
    opacity: 0.9;
    z-index: 2;
    animation: rb_tarot_fortune_spin 40s linear infinite;
}

@keyframes rb_tarot_fortune_spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rb_tarot_fortune.evening .rb_tarot_fortune_btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
}

.rb_tarot_fortune.evening .rb_tarot_fortune_btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #f0f0f0;
}

/* 반응형 */
@media (max-width: 768px) {
    .rb_tarot_fortune {
        padding: 20px 16px;
    }
    
    .rb_tarot_fortune_icon {
        font-size: 1.8rem;
    }
    
    .rb_tarot_fortune_text {
        font-size: 0.9rem;
        max-width: 90%;
    }
    
    .rb_tarot_fortune_btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .rb_tarot_fortune {
        padding: 16px 12px;
        margin: 0;
    }
    
    .rb_tarot_fortune_icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .rb_tarot_fortune_text {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}