/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --primary-color: #0f172a;
    --lime: #CEFF00;
    --light-transparent: rgba(49, 57, 68, 0.75); 
    --danger: #ff0000;
    --gray: #c2c2c2;
    --text-lighter: #deecff;
    --text-light: #94a3b8;
    --text-medium: rgb(100, 116, 139);
    --white: #ffffff;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
}

.logo {
    width: 150px;
    height: 30px;
    background-image: url('public/logo/logo.svg');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.navbar {
    background-color: var(--primary-color);
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* 메뉴 스타일 */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--lime);
    font-weight: 500;
    transition: 0.3s;
    font-size: 1.5vh;
}

.nav-menu a:hover {
    color: var(--white);
}

.btn-wallet {
    color: var(--white) !important;
    border-radius: 8px;
    font-weight: 600 !important;
}

.btn-wallet:hover {
    opacity: 0.8;
}

.btn {
    background-color: var(--primary-color);
    color: var(--lime) !important;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600 !important;
    padding: 2vh;
}

.btn:hover {
    transition: 0.5s;
    background-color: var(--lime);
    color: var(--primary-color) !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--lime) !important;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid var(--lime);
    font-weight: 600 !important;
    padding: 2vh;
    font-size: 2vh;
}

.btn:hover {
    opacity: 0.8;
}

/* --- 반응형 (모바일) 디자인 --- */
.menu-toggle, .hamburger {
    display: none;
}

@media (max-width: 992px) {
    .navbar{
        width: 100%;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--lime);
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%; /* 기본적으로 숨김 */
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu a {
        font-size: 2vh;
    }

    .nav-menu li {
        margin: 2vh 0;
    }

    /* 체크박스가 체크되면 메뉴가 나타남 */
    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    .menu-toggle {
        display: none;
    }
}

.hero-container {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-image: url('public/images/hero-bg.png');
    background-size: cover; 
    background-position: right;
}

.hero-content{
    background: linear-gradient(to right, var(--primary-color) 10%, transparent);
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-wrapper {
    width: 50%;
    height: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    color: var(--white);
    padding: 2vh 5vh;
    justify-content: center;
    gap: 2vh;
}

.text-wrapper .description {
    font-size: 2vh;
}

.cta-group {
    display: flex;
    width: 100%;
    padding: 2vh 0;
    gap: 2vh;
}

/* 📱 태블릿 및 모바일 대응 (992px 이하) */
@media (max-width: 992px) {
    /* 1. 컨테이너 패딩 조절 및 중앙 정렬 */
    .hero-container{
        width: 100%;
        height: 100%;
        background-position: center;
    }
    .hero-content {
        background: linear-gradient(to right, var(--primary-color), transparent);
        padding: 40px 5%;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
    }

    .text-wrapper {
        width: 100%;
    }

    .hero-content h1 {
        font-size: vh;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .main-title {
        font-size: 1vh;
        line-height: 1.1;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        padding: 2vh;
    }

    .description {
        font-size: 2.5vh;
        margin-bottom: 30px;
    }
}

.main-title {
    font-weight: lighter;
    font-size: 5vh;
    color: var(--lime);
}

.main-footer {
    margin-top: auto;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5vh;
    font-size: 2.5vh;
}

.footer-container {
    width: 90%;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--lime);
    font-size: 1.5vh;
    padding: 1.5vh;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    padding: 1vh;
    font-size: 1.5vh;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.5vh;
}

.footer-column ul li a:hover {
    color: var(--lime);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2vh;
}

.bottom-links {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bottom-links a {
    font-size: 1.5vh;
    color: var(--text-light);
    text-decoration: none;
    padding: 0 1vh;
    transition: 0.3s;
}

.bottom-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 1.5vh;
    color: var(--text-medium);
}

@media (max-width: 992px) {
    .main-footer {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.viability-section {
    background-color: var(--white);
    padding: 10vh 0vh;
    color: var(--primary-color);
    font-family: 'Segoe UI', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 2.5vh;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-card {
    flex: 1;
    background: var(--text-medium);
    padding: 30px 20px;
    border-radius: 15px;
    transition: 0.3s;
}

.timeline-card.highlight {
    background: var(--primary-color);
    transform: translateY(-10px);
    color: var(--text-medium);
}

.card-header span {
    font-size: 1.5vh;
    color: var(--white);
    text-transform: uppercase;
}

.card-header h3 {
    font-size: 3vh;
    margin: 10px 0 20px 0;
    color: var(--white);
}

.highlight h3 {
    color: var(--lime);
}

.highlight .card-stats .users {
    color: var(--white);
}

.highlight .card-stats .value {
    color: var(--gray);
}

.h-good {
    color: var(--white);
}

.card-stats {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--white);
}

.users { font-weight: bold; font-size: 2vh; color: var(--text-lighter); padding-bottom: 1vh;}
.value { color: var(--text-lighter); font-size: 2vh; }

.pros-cons {
    list-style: none;
    padding: 0;
    font-size: 2vh;
    line-height: 1.8;
    color: white;
}

.good::before { content: "✓ "; color: var(--lime); margin-right: 5px; }
.bad::before { content: "✕ "; color: var(--danger); margin-right: 5px; }

@media (max-width: 992px) {
    .timeline-container {
        flex-direction: column;
    }
    .timeline-card.highlight {
        transform: translateY(0) scale(1.02);
    }
}

.social-fitness-section {
    background-color: white;
    color: var(--primary-color);
    padding: 10vh 0vh 0vh 0vh;
}

.wrapper-container {
    width: 90%;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    background-image: url('public/images/card-bg.png');
    background-size: cover; 
    background-position: right;
    background-color: var(--primary-color);
    padding: 5vh;
    border-radius: 50px;
}

.image-area {
    height: 100%;
    flex: 1;
}

.highlight-text {
    font-size: 5vh;
    color: var(--lime);
    line-height: 1;
    padding: 2vh;
}

.points-area {
    background-color: var(--light-transparent);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3vh;
    padding: 3vh;
    border-radius: 3vh;
}

.point-card {
    background: transparent;
    padding: 1.5vh 3vh;
    border-radius: 40px;
    transition: 0.3s;
}

.point-card h3 {
    color: var(--lime);
    font-size: 2vh;
    margin-bottom: 10px;
}

.point-card p {
    color: var(--white);
    font-size: 2vh;
    line-height: 1.6;
}

/* 반응형 모바일 */
@media (max-width: 992px) {
    .social-fitness-section {
        width: 100%;
    }

    .highlight-text {
        font-size: 5vh;
    }

    .content-wrapper {
        width: 100%;
        flex-direction: column;
        background-position: center;
        padding: 2vh;
    }

    .points-area {
        padding: 1vh;
        background: rgba(49, 57, 68, 0.85);
    }
}

.error-section {
    background-color: transparent;
}

.error-container {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 23, 42,0.9);
}

.error-container::before {
    position: absolute;
    z-index: -1;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url('public/images/hero-bg.png');
    background-size: cover;
    /* opacity: 0.1; */
}

.error-card {
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: transparent;
    border-radius: 3vh;
    padding: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vh;
}

.error-title {
    text-align: center;
    font-weight: lighter;
    font-size: 10vh;
    margin: 0;
    color: var(--lime);
    font-style: italic;
}

.error-text {
    font-size: 2vh;
    color: var(--white);
    margin: 0;
    text-align: center;
}

@media (max-width: 992px) {
    .error-card {
        width: 90%;
        height: auto;
        aspect-ratio: auto;
        padding: 8vh 5vh;
    }

    .error-title {
        font-size: 5vh;
        font-style: italic;
    }

    .error-text {
        font-size: 5vh;
    }
}

.community-block {
    padding: 5vh 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community-header {
    text-align: center;
    padding: 4vh 2vh;
}

.community-header .sub-title {
    color: var(--lime);
    font-size: 1.5vh;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1vh;
}

.community-header .main-title {
    font-size: 4vh;
    font-weight: 700;
    margin: 0;
}

.community-header .description {
    color: var(--gray);
    font-size: 1.8vh;
    margin-top: 1vh;
}

.community-body {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2vh;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4vh;
    width: 70%;
}

.post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: row;
    height: 35vh;
    width: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--lime);
    border-color: var(--lime);
}

.card-image {
    height: 100%;
    aspect-ratio: 1 / 1;
    padding: 1.5vh;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.card-content {
    flex: 1;
    padding: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
}

.post-title {
    font-size: 2.5vh;
    font-weight: bold;
    margin-bottom: 2vh;
    line-height: 1.3;
}

.post-content {
    font-size: 1.8vh;
    line-height: 1.6;
    font-weight: 400;
    color: #444;
    margin: 0;
}

@media (max-width: 992px) {
    .card-grid {
        width: 90%;
    }

    .post-card {
        flex-direction: column;
        height: auto;
    }

    .card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1.5 / 1;
    }

    .card-content {
        padding: 3vh;
        overflow-y: visible;
    }

    .community-header .main-title {
        font-size: 3vh;
    }
}

.community_portfolio-section {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    padding: 5vh;
}

.community_post-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    background-color: var(--light-transparent);
}

.community_hero-content h1 {
    font-size: 10vh;
    margin-bottom: 10px;
    font-weight: 700;
}

.community_hero-content p {
    font-size: 2.5vh;
    color: var(--gray);
    letter-spacing: 1px;
}

.community_post-body {
    height: 100%;
    width: 100%;
    padding: 5vh;
    line-height: 1.8;
}

.community_post-body {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.community_content-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2vh;
    margin: 2vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
    line-height: 1.8;
    color: #ddd;
    font-size: 2vh;
}

.community_photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community_photo-gallery img {
    width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    height: 100%;
}

.community_img-wide {
    width: 100%;
}

.community_img-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .community_img-split {
        grid-template-columns: 1fr;
    }
    .community-header{
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }
    .community-header .sub-title{
        font-size: 1.5vh;
    }
    .community-header .main-title{
        font-size: 3vh;
    }
    .community-header .description {
        font-size: 2vh;
    }
    .community_hero-content h1 {
        padding: 2vh;
        font-size: 5vh;
    }
}