/* bias/style.css - K-pop Bias (이미지 없이 글자 전용 버전) */

:root {
    --neon-pink: #ff00ff;
    --neon-purple: #8a2be2;
    --neon-blue: #00f0ff;
    --dark-bg: #0a0a1f;
    --card-bg: #ffffff;
}

body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a0033, #000022, #0a0a1f);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    overflow-x: hidden;
}

/* ==================== 메인 카드 ==================== */
#app {
    width: 92%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 28px;
    margin: 40px auto 30px;
    box-shadow: 0 25px 60px rgba(138, 43, 226, 0.5),
                0 0 80px rgba(255, 0, 255, 0.3);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

/* ==================== 화면 ==================== */
.screen {
    display: none;
    padding: 32px 24px;
    text-align: center;
    animation: neonFade 0.6s ease;
}

.screen.active {
    display: block;
}

@keyframes neonFade {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 1.85rem;
    background: linear-gradient(90deg, #ff00ff, #00f0ff);
    
    /* 표준 속성 먼저 (경고 해결) */
    background-clip: text;
    -webkit-background-clip: text;
    
    -webkit-text-fill-color: transparent;
    
    margin: 0 0 18px;
    line-height: 1.25;
    font-weight: 800;
}

h2 {
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 22px;
}

p {
    font-size: 1.08rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 26px;
}

/* ==================== 네온 버튼 ==================== */
button {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    border: none;
    padding: 17px 32px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.6),
                0 8px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 290px;
    margin: 12px auto;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.9),
                0 12px 30px rgba(0, 0, 0, 0.4);
}

button:disabled {
    background: #555;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==================== 메뉴 그리드 (글자 전용) ==================== */
#menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.menu-item {
    background: #f8f8ff;
    border: 3px solid #ddd;
    border-radius: 18px;
    padding: 22px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item span {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
}

.menu-item:hover {
    border-color: var(--neon-pink);
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.4);
}

.menu-item.selected {
    border-color: var(--neon-purple);
    background: #f0e6ff;
    box-shadow: 0 0 0 5px rgba(138, 43, 226, 0.3),
                0 0 30px rgba(255, 0, 255, 0.5);
}

/* ==================== 결과 화면 ==================== */
#result-animal {
    text-align: center;
}

#result-animal img {
    width: 100%;
    max-width: 280px;
    border-radius: 22px;
    border: 7px solid #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(255, 0, 255, 0.4);
    margin: 18px auto 24px;
}

#result-animal h3 {
    font-size: 1.65rem;
    color: #222;
    margin: 0 0 12px;
    font-weight: 800;
}

#result-animal p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.65;
}

/* 공유 버튼 */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.share-buttons button {
    max-width: none;
    margin: 0;
}

/* ==================== 푸터 ==================== */
footer {
    width: 92%;
    max-width: 400px;
    margin-top: auto;
    padding: 40px 0 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 14px;
}

.footer-links a {
    color: #ff99ff;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==================== 모바일 최적화 ==================== */
@media (max-width: 480px) {
    #app {
        width: 94%;
        margin: 30px auto 20px;
        border-radius: 24px;
    }
    
    .screen {
        padding: 28px 20px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .menu-item {
        min-height: 100px;
        padding: 18px 10px;
    }
}