@media (max-width: 480px) {
    .logo {
        font-size: 0.8rem !important;
    }
    
    .nav-container {
        padding: 0 0.2rem;
    }

    .nav-menu a {
        font-size: 0.65rem;
        padding: 0.4rem 0.05rem;
    }

    .footer-bottom p {
        font-size: 0.65rem;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 0.7rem !important;
    }

    .nav-menu a {
        font-size: 0.6rem;
        padding: 0.3rem 0.05rem;
    }

    .footer-bottom p {
        font-size: 0.6rem;
    }
}@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 네비게이션 바 스타일 */
nav {
    background-color: #5400FF;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: #6A1FFF;
}

.nav-menu a.active {
    background-color: white;
    color: #5400FF;
}

/* 반응형 텍스트 */
.tab-text-short {
    display: none;
}

.tab-text-full {
    display: inline;
}

/* 참여방법 섹션 */
.how-to-participate {
    text-align: center;
}

/* 콘텐츠 섹션 전환 */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 메인 콘텐츠 */
main {
    margin-top: 80px; /* 네비게이션 바 높이만큼 여백 */
    padding: 2rem;
    min-height: calc(100vh - 80px - 200px); /* 전체 화면 높이 - nav - footer 예상 높이 */
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
}

.container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center; /* 콘텐츠 가로 중앙 정렬 */
}

/* 섹션 공통 스타일 */
.section {
    margin-bottom: 2rem;
    width: 100%;
}

.section-image {
    width: 80%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 1차 투표 이벤트 섹션 */
.prev-event {
    text-align: center;
}

/* 소개 섹션 */
.final-event {
    text-align: center;
}

/* Coming Soon 스타일 */
.coming-soon {
    background: linear-gradient(135deg, #5400FF, #6A1FFF);
    color: white;
    padding: 4rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(84, 0, 255, 0.2);
    margin: 2rem auto;
    width: 80%;
    max-width: 800px;
}

.coming-soon h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.coming-soon p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Footer 스타일 */
footer {
    background-color: #5400FF;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: #FFFF77;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #95a5a6;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: #95a5a6;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFFF77;
}

/* 연락처 링크 스타일 */
.contact-link {
    color: #95a5a6 !important;
    text-decoration: underline !important;
    display: inline !important;
    margin-bottom: 0 !important;
}

.contact-link:hover {
    color: #FFFF77 !important;
    text-decoration: underline !important;
}

.footer-bottom {
    border-top: 1px solid #6A1FFF;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 플로팅 메뉴 */
.floating-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5400FF, #6A1FFF);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(84, 0, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.floating-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(84, 0, 255, 0.6);
}

.floating-toggle.active .plus-icon {
    transform: rotate(45deg);
}

.plus-icon {
    transition: transform 0.3s ease;
    font-weight: bold;
    line-height: 1;
    user-select: none;
}

.floating-menu-items {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-menu.active .floating-menu-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFF554, #FFFF77);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(255, 245, 84, 0.4);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    outline: none;
}

.menu-item:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 245, 84, 0.6);
}

.menu-icon {
    font-size: 20px;
    line-height: 1;
    user-select: none;
}

/* 툴팁 */
.menu-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.menu-item::after {
    content: '';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-item:hover::before,
.menu-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 펄스 애니메이션 제거 */

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .nav-menu {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-menu li {
        flex: 1;
        min-width: 0;
    }

    .nav-menu a {
        padding: 0.5rem 0.1rem;
        font-size: 0.75rem;
        display: block;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 모바일에서 짧은 텍스트 표시 */
    .tab-text-full {
        display: none;
    }
    
    .tab-text-short {
        display: inline;
    }

    main {
        margin-top: 120px;
        min-height: calc(100vh - 120px - 150px);
    }

    /* 1차 투표 이벤트 섹션 */
    .prev-event .section-image {
        width: 100%;
        max-width: none;
    }

    /* 소개 섹션 */  
    .final-event .section-image {
        width: 100%;
        max-width: none;
    }

    /* 참여방법 섹션 */
    .how-to-participate .section-image {
        width: 100%;
        max-width: none;
    }

    /* Coming Soon 모바일 */
    .coming-soon {
        padding: 2.5rem 1.5rem;
        margin: 1rem auto;
        width: 100%;
        max-width: none;
    }

    .coming-soon h2 {
        font-size: 2rem;
    }

    .coming-soon p {
        font-size: 1rem;
    }

    /* Footer 반응형 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    /* 플로팅 메뉴 모바일 */
    .floating-menu {
        bottom: 20px;
        right: 20px;
    }

    .floating-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .menu-item {
        width: 45px;
        height: 45px;
    }

    .menu-icon {
        font-size: 18px;
    }

    /* 모바일에서도 툴팁 표시 - 위치만 조정 */
    .menu-item::before {
        right: 50px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .menu-item::after {
        right: 40px;
        border-width: 5px;
    }
}