/* =============================================================
   ManyPerson — Home 페이지 전용 CSS
   히어로, 랭킹, CTA 섹션
   ============================================================= */

/* ===== 애니메이션 ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim-delay { animation: float 6s ease-in-out 2s infinite; }

/* ===== 헤더 추가 (로그인 버튼) ===== */
.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: all 0.2s;
}
.btn-login:hover { background-color: var(--slate-100); }
.btn-login .material-symbols-outlined { font-size: 1.125rem; }

/* ===== 히어로 섹션 ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem;
}
@media (min-width: 1024px) {
    .hero { padding: 8rem 4rem; }
}

/* 배경 데코레이션 */
.hero-deco-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: rgba(0, 127, 255, 0.05);
    border-radius: 50%;
    filter: blur(140px);
    transform: translateX(33%) translateY(-33%);
}
.hero-deco-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: rgba(0, 127, 255, 0.05);
    border-radius: 50%;
    filter: blur(120px);
    transform: translateX(-33%) translateY(33%);
}




.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(0, 127, 255, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}
.hero-badge .material-symbols-outlined { font-size: 0.875rem; }

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-title-gradient {
    background: linear-gradient(to right, var(--primary), var(--blue-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--slate-500);
    max-width: 42rem;
    margin: 0 auto 3rem;
    line-height: 1.75;
}
@media (min-width: 768px) {
    .hero-desc { font-size: 1.25rem; }
}
.hero-desc .br-md { display: none; }
@media (min-width: 768px) {
    .hero-desc .br-md { display: block; }
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: #fff;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 20px 25px -5px rgba(0, 127, 255, 0.25);
    transition: all 0.2s;
}
.btn-hero:hover {
    background-color: rgba(0, 127, 255, 0.9);
    box-shadow: 0 25px 50px -12px rgba(0, 127, 255, 0.3);
}
.btn-hero:active { transform: scale(0.98); }

.hero-note {
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ===== 타이핑 질문 데모 ===== */
.typing-demo {
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    max-width: 90%;
    min-height: 3.25rem;
}

.typing-prefix,
.typing-suffix {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--slate-300);
}

.typing-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal);
}

.typing-cursor {
    font-weight: 300;
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== 떠다니는 말풍선 ===== */
.floating-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
/* 모바일에서 떠다니는 말풍선 숨김 (#32) */
@media (max-width: 767px) {
    .floating-bubbles { display: none; }
}

.fbubble {
    position: absolute;
    bottom: -60px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    padding: 0.5rem 0.875rem 0.5rem 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.4);
    color: var(--slate-500);
    font-weight: 500;
    max-width: 260px;
    line-height: 1.5;
    animation: bubbleFloat linear forwards;
    opacity: 0;
    transform: scale(var(--scale, 1));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 캐릭터 스프라이트 아바타 */
.fbubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-image: url('minimi.jpg');
    background-size: 160px 160px; /* 스프라이트 전체를 5열×5행 기준으로 축소 */
    flex-shrink: 0;
}

@keyframes bubbleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(var(--scale, 1));
    }
    10% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(-600px) translateX(30px) scale(var(--scale, 1));
    }
}

/* 히어로 콘텐츠는 말풍선 위에 */
.hero-content {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

/* ===== 인기 시뮬레이션 랭킹 섹션 ===== */
.ranking-section {
    padding: 0 1.5rem 5rem;
}
@media (min-width: 1024px) {
    .ranking-section { padding: 0 4rem 5rem; }
}

.ranking-container {
    max-width: 56rem;
    margin: 0 auto;
}

.ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ranking-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ranking-title-wrap .material-symbols-outlined { color: var(--primary); }

.ranking-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* 랭킹 리스트 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s;
    cursor: pointer;
}
.ranking-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 127, 255, 0.2);
}

/* 랭킹 번호 뱃지 */
.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 900;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.rank-badge-gold {
    background: linear-gradient(to bottom right, var(--amber-400), var(--orange-500));
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3);
}
.rank-badge-silver {
    background: linear-gradient(to bottom right, var(--slate-300), var(--slate-400));
    box-shadow: 0 10px 15px -3px rgba(203, 213, 225, 0.3);
}
.rank-badge-bronze {
    background: linear-gradient(to bottom right, var(--amber-600), var(--amber-700));
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}
.rank-badge-default {
    background: var(--slate-100);
    color: var(--slate-500);
}

.ranking-item-content {
    flex: 1;
    min-width: 0;
}

.ranking-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--charcoal);
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ranking-item:hover .ranking-item-title { color: var(--primary); }

.ranking-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}
.ranking-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ranking-item-meta .material-symbols-outlined { font-size: 0.875rem; }

.ranking-item-views {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--slate-400);
    flex-shrink: 0;
    transition: color 0.2s;
}
.ranking-item:hover .ranking-item-views { color: var(--primary); }
.ranking-item-views .material-symbols-outlined { font-size: 1.125rem; }
.ranking-item-views span:last-child {
    font-size: 0.875rem;
    font-weight: 700;
}

/* 전체 랭킹 보기 */
.ranking-footer {
    text-align: center;
    margin-top: 2rem;
}

.ranking-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
}
.ranking-more-link:hover { text-decoration: underline; }
.ranking-more-link .material-symbols-outlined { font-size: 1.125rem; }

/* ===== 하단 CTA 섹션 ===== */
.cta-section {
    padding: 0 1.5rem 5rem;
}
@media (min-width: 1024px) {
    .cta-section { padding: 0 4rem 5rem; }
}

.cta-card {
    max-width: 56rem;
    margin: 0 auto;
    background: linear-gradient(to bottom right, var(--primary), var(--blue-600));
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-content { position: relative; }

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}
.btn-cta:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ===== MDIS 데이터 활용 마케팅 섹션 ===== */
.mdis-section {
    padding: 2rem 1.5rem 5rem;
}
@media (min-width: 1024px) {
    .mdis-section { padding: 3rem 4rem 6rem; }
}

.mdis-container {
    max-width: 56rem;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.6);
}

.mdis-content {
    position: relative;
    z-index: 1;
}

.mdis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.mdis-badge .material-symbols-outlined { font-size: 1rem; }

.mdis-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}
@media (min-width: 768px) {
    .mdis-title { font-size: 2.25rem; }
}

.mdis-title-highlight {
    color: var(--primary);
}

.mdis-desc {
    color: var(--slate-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
.mdis-desc strong {
    color: var(--charcoal);
    font-weight: 700;
}

.btn-mdis-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.9375rem;
}
.btn-mdis-link:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: rgba(0, 127, 255, 0.2);
}

.mdis-logo {
    height: 43px;
    width: auto;
}

.mdis-link-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.mdis-link-text .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--slate-400);
}
