/* Flavolink Main Page Styles */
:root {
    --layout-max-width: 1740px;
    --contents-layout-max-width: 1740px;
    --color-orange: #EA5504;
    --color-orange-dark: #D35400;
    --color-brown: #8B4513;
    --color-brown-light: #A0522D;
    --color-text: #2C3E50;
    --color-text-light: #5D6D7E;
    --color-bg: #FFFFFF;
    --color-bg-warm: #FDF8F5;
    --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    /* line-height: 1.6; */
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-orange);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-logout-form {
    display: inline;
    margin: 0;
}

.nav-logout {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
}

.nav-logout:hover {
    color: var(--color-orange);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-greeting {
    font-size: 0.9rem;
    color: var(--color-text);
}

.nav-mypage {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.nav-mypage:hover {
    color: var(--color-orange);
}

.nav-divider {
    color: #E0E0E0;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.hero-logo {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.logo-f {
    color: var(--color-orange);
}

.logo-o {
    display: inline-block;
    color: var(--color-orange);
    position: relative;
}

.logo-o::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: var(--color-orange);
    border-radius: 2px;
}

.hero-visual {
    position: relative;
    margin: 2rem 0;
}

.globe-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.globe-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-orange);
    opacity: 0.8;
}

.globe-path {
    stroke-dasharray: 8 4;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -100; }
}

.hero-figures {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.figure {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
    filter: sepia(1) saturate(3) hue-rotate(-20deg) brightness(0.7);
}

.figure-1 { top: 10%; left: 20%; }
.figure-2 { top: 10%; right: 20%; }
.figure-3 { bottom: 20%; left: 50%; transform: translateX(-50%); }

.figure-food {
    font-size: 1rem;
    margin-top: 0.25rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-orange);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--color-orange-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.wavy-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    color: var(--color-orange);
    opacity: 0.3;
}

/* Section Common */
.section {
    padding: 5rem 2rem;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-title.orange {
    color: var(--color-orange);
}

.section-tagline {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-align: center;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.8;
}

.section-desc br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

/* Flavor Section */
.section-flavor {
    background: var(--color-bg-warm);
}

.flavor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.flavor-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.flavor-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.figure-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.figure-overlay .figure-icon,
.figure-walking .figure-icon,
.figure-celebrate .figure-icon {
    filter: sepia(1) saturate(3) hue-rotate(-20deg) brightness(0.7);
}

.figure-overlay .figure-icon {
    font-size: 2rem;
}

.figure-overlay .figure-tool {
    font-size: 1.5rem;
}

.figure-overlay.small .figure-icon {
    font-size: 1.5rem;
}

.speech-bubble {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flavor-text p {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.flavor-connect {
    font-weight: 600;
    color: var(--color-orange) !important;
}

.wavy-line {
    width: 100%;
    height: 60px;
    margin-top: 3rem;
    color: var(--color-orange);
    opacity: 0.4;
}

/* Concepts Section */
.concepts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.concepts-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.concept-illustration {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.concept-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.concept-illustration:last-child .concept-img {
    height: 250px;
}

.concepts-vision {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.concepts-goal {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.concept-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.concept-card {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(139, 69, 19, 0.75) 100%);
}

.concept-card h3 {
    position: relative;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.concept-card p {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.concept-card:nth-child(3) {
    grid-column: span 2;
}

/* Network Section */
.section-network {
    background: var(--color-bg-warm);
}

.network-bubbles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.network-bubble {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-orange);
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.network-bubble::before,
.network-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--color-orange);
    opacity: 0.5;
}

.network-bubble::before {
    right: 100%;
    margin-right: 1rem;
}

.network-bubble::after {
    left: 100%;
    margin-left: 1rem;
}

.network-bubble:first-child::before,
.network-bubble:last-child::after {
    display: none;
}

.wavy-connector {
    width: 100%;
    height: 40px;
    margin-top: 2rem;
    color: var(--color-orange);
    opacity: 0.4;
}

/* CTA Section */
.section-cta {
    padding: 4rem 2rem;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-left,
.cta-right {
    position: relative;
}

.cta-image {
    width: 100%;
    max-width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-left .cta-image {
    margin-left: auto;
}

.cta-right .cta-image {
    margin-right: auto;
}

.figure-walking {
    position: absolute;
    bottom: 40px;
    right: 60px;
}

.figure-celebrate {
    position: absolute;
    bottom: 40px;
    left: 60px;
}

.figure-walking .figure-icon,
.figure-celebrate .figure-icon {
    font-size: 2rem;
}

.figure-celebrate .speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
}

.cta-center {
    text-align: center;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Main Hero Image (반응형) */
.main-hero {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    padding-top: 3rem;
}

.main-hero-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.main-hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* 지구본 아래 CTA 버튼 (이미지 위 오버레이) */
.hero-log-btn, .hero-join-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 13%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2.575rem 4.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    background: var(--color-orange);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(234, 85, 4, 0.4);
    transition: all 0.2s ease;
    min-width: 160px;
}

.hero-log-btn:hover,
.hero-join-btn:hover {
    background: var(--color-orange-dark);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 24px rgba(234, 85, 4, 0.5);
}

@media (max-width: 968px) {
    .hero-log-btn, 
    .hero-join-btn {
    	top: 9.5%;
        min-width: 140px;
    }
}

@media (max-width: 640px) {
    .hero-log-btn,
    .hero-join-btn {
        top: 6.5%;
        padding: 1.5rem 2.75rem;
        font-size: 1.2rem;
        min-width: 130px;
    }
}


/* 지구본 아래 CTA 버튼 (이미지 위 오버레이) */
.hero-join-btn {
    left: 50%;
    transform: translateX(-50%);
    top:auto;
    bottom: 4%;
}

@media (max-width: 968px) {
    .hero-join-btn {
    	bottom: 3%;
        min-width: 140px;
    }
}

@media (max-width: 640px) {
    .hero-join-btn {
        padding: 1.5rem 1.75rem;
        font-size: 0.9rem;
        min-width: 130px;
        bottom: 4%;
    }
}



.click-area1 {
  display: block;
  position: absolute;
  top: calc(692px + 130px);     /* 버튼이 그려진 위치 */
  left: 786px;
  width: 332px;   /* 버튼 크기 */
  height: 80px;
  background: rgba(0,0,0,0); /* 기본 투명 */
  border-radius: 55px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.click-area2 {
  display: block;
  position: absolute;
  top: calc(7094px + 130px);     /* 버튼이 그려진 위치 */
  left: 773px;
  width: 358px;   /* 버튼 크기 */
  height: 87px;
  background: rgba(0,0,0,0); /* 기본 투명 */
  border-radius: 46px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

/* 호버 이펙트 처리 */
.click-area1:hover,
.click-area2:hover {
  background: rgba(0,0,0,0.2); /* 살짝 어둡게 */
}


/* Footer */
.footer {
    color: var(--color-text);
    text-align: left;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    text-align: left;
}

.footer-mobile {
    display: none;
}

/* 모바일 푸터: 데스크톱 숨김, 모바일 표시 */
@media (max-width: 640px) {
    .footer .footer-desktop {
        display: none;
    }
    .footer .footer-mobile {
        display: block;
    }
    .footer-mobile-logo img {
        max-width: 130px;
        height: auto;
        margin-bottom: 0.75rem;
    }
    .footer-mobile-text {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    .footer-mobile-text div {
        margin-bottom: 0.25rem;
    }
    .footer {
        padding: 1.25rem 1rem;
        font-size: 0.75rem;
    }
}


/* Responsive */
@media (max-width: 968px) {
    .flavor-content {
        grid-template-columns: 1fr;
    }

    .concepts-layout {
        grid-template-columns: 1fr;
    }

    .cta-content {
        grid-template-columns: 1fr;
    }

    .cta-left .cta-image,
    .cta-right .cta-image {
        margin: 0 auto;
    }

    .globe-container {
        width: 280px;
        height: 280px;
    }

    .hero-logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .nav {
        gap: 1rem;
    }

    .network-bubbles {
        flex-direction: column;
    }

    .network-bubble::before,
    .network-bubble::after {
        display: none;
    }

    .concept-cards {
        grid-template-columns: 1fr;
    }

    .concept-card:nth-child(3) {
        grid-column: span 1;
    }
}
