/* =========================================
   메인 페이지 - Hero + Bento Grid
   ========================================= */

/* === Hero Section === */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    transition: opacity 1s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, var(--hero-glow-1, rgba(139, 34, 82, 0.15)) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, var(--hero-glow-2, rgba(201, 169, 110, 0.1)) 0%, transparent 50%);
    animation: heroBreathe 4s ease-in-out infinite;
    transition: background 2s ease;
}

/* 호흡 애니메이션: 라디얼 글로우가 부드럽게 맥동 */
@keyframes heroBreathe {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.08);
    }
}

/* prefers-reduced-motion 시 호흡 비활성화 */
@media (prefers-reduced-motion: reduce) {
    .hero-bg::after {
        animation: none;
    }
}

/* 파티클 활성 시 CSS 배경 약간 어둡게 (전역 파티클) */
.hero.particles-active .hero-bg {
    opacity: 0.2;
}

/* CTA 클릭 폭발 시 콘텐츠 펄스 효과 */
.hero.particles-exploding .hero-content {
    animation: ctaPulse 0.6s ease-out;
}

@keyframes ctaPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.02); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* 폭발 시 히어로 brightness 전환용 (JS에서 직접 제어) */
.hero {
    will-change: filter;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    animation: heroFadeIn 1s ease-out;
}

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

.hero-label {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--color-gold);
    font-weight: 400;
    margin-bottom: 32px;
}

.hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 200;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--text-white);
    margin-bottom: 24px;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 48px;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    font-size: var(--font-size-base);
    padding: 16px 40px;
}

/* === 스크롤 인디케이터 === */
.scroll-indicator {
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: scrollFadeIn 1s ease-out 1.5s forwards;
    transition: opacity 0.5s ease;
    cursor: pointer;
    pointer-events: auto;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scrollFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.7; transform: translateY(0); }
}

/* 모바일에서 약간 위로 */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 24px;
    }
}

/* === Bento Section === */
.bento-section {
    background: transparent;
}

/* Bento 섹션 헤더 — 유기체 디자인 */
.bento-header {
    text-align: center;
    margin-bottom: 16px;
}

.bento-header-emblem {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.06), inset 0 0 15px rgba(212, 175, 55, 0.03);
    animation: emblemBreathe 6s ease-in-out infinite;
}

.bento-header-emblem span {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
    opacity: 0.8;
}

@keyframes emblemBreathe {
    0%, 100% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.06), inset 0 0 15px rgba(212, 175, 55, 0.03); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.12), inset 0 0 20px rgba(212, 175, 55, 0.06); }
}

.bento-header-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(201, 169, 110, 0.45);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.bento-header-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.bento-header-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.bento-header-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3));
}

.bento-header-line:last-child {
    background: linear-gradient(to left, transparent, rgba(212, 175, 55, 0.3));
}

.bento-header-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.6;
    margin: 0 8px;
    animation: connectorPulse 3s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 0.9; transform: scale(1.2); box-shadow: 0 0 8px rgba(212, 175, 55, 0.3); }
}

.bento-header-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 200;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .bento-header-emblem { animation: none; }
    .bento-header-dot { animation: none; opacity: 0.6; }
}

@media (max-width: 768px) {
    .bento-header-emblem {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }
    .bento-header-emblem span {
        font-size: 13px;
    }
    .bento-header-title {
        letter-spacing: 5px;
    }
    .bento-header-label {
        font-size: 9px;
        letter-spacing: 3px;
    }
    .bento-header-line {
        width: 40px;
    }
}

/* Bento 카드 공통 */
.bento-item {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
}

.bento-badge {
    margin-bottom: auto;
}

.bento-label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: auto;
}

.bento-title {
    font-family: 'Noto Serif KR', serif;
    font-size: var(--font-size-xl);
    font-weight: 500;
    margin-bottom: 12px;
}

.bento-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.bento-btn {
    align-self: flex-start;
}

.bento-link {
    font-size: var(--font-size-sm);
    color: var(--color-gold);
    font-weight: 400;
}

.bento-link:hover {
    color: var(--color-gold-light);
}

/* === 벤토 카드 공통 불투명 글래스 스타일 === */
.bento-item.glass-card {
    background: rgba(20, 16, 36, 0.85);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(123, 82, 181, 0.15);
    color: var(--text-white);
}

/* 시그니처 카드 (대형) */
.bento-signature {
    border: 1px solid rgba(201, 169, 110, 0.25);
    min-height: 400px;
}

.bento-signature .bento-title {
    font-size: var(--font-size-2xl);
    color: var(--color-gold);
}

.bento-signature .bento-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-base);
}

/* 힐리스트 카드 */
.bento-healist {
    min-height: 240px;
}

.bento-healist .bento-desc {
    color: rgba(255, 255, 255, 0.8);
}

.bento-healist .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.bento-healist .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* 후기 카드 */
.bento-review {
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.review-stars {
    color: var(--color-gold);
    font-size: 20px;
    letter-spacing: 2px;
}

.review-quote {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
}

/* 찾아오시는 길 카드 */
.bento-visit {
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.visit-address {
    font-family: 'Noto Serif KR', serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    line-height: 1.4;
}

.visit-landmark {
    font-size: 11px;
    color: var(--color-gold);
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.visit-nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.visit-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.visit-nav-btn:hover {
    transform: translateY(-3px);
}

.visit-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.visit-nav-icon.kakao  { background: rgba(254, 229, 0, 0.12); color: #FEE500; }
.visit-nav-icon.naver  { background: rgba(3, 199, 90, 0.12); color: #03C75A; }
.visit-nav-icon.tmap   { background: rgba(235, 50, 35, 0.12); color: #EB3223; }
.visit-nav-icon.google { background: rgba(66, 133, 244, 0.12); color: #4285F4; }

.visit-nav-btn:hover .visit-nav-icon.kakao  { background: #FEE500; color: #3C1E1E; box-shadow: 0 4px 16px rgba(254, 229, 0, 0.25); }
.visit-nav-btn:hover .visit-nav-icon.naver  { background: #03C75A; color: white; box-shadow: 0 4px 16px rgba(3, 199, 90, 0.25); }
.visit-nav-btn:hover .visit-nav-icon.tmap   { background: #EB3223; color: white; box-shadow: 0 4px 16px rgba(235, 50, 35, 0.25); }
.visit-nav-btn:hover .visit-nav-icon.google { background: #4285F4; color: white; box-shadow: 0 4px 16px rgba(66, 133, 244, 0.25); }

/* === Google Reviews === */
.google-reviews-section {
    background: transparent;
}

.gr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.gr-summary {
    text-align: right;
}

.gr-rating-big {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gr-stars {
    display: flex;
    gap: 2px;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.gr-total {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.gr-total:hover {
    color: var(--color-gold);
}

.gr-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gr-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gr-spinner {
    animation: grSpin 1s linear infinite;
}

@keyframes grSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gr-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease;
    background: rgba(20, 16, 36, 0.85);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(123, 82, 181, 0.15);
}

.gr-card:hover {
    transform: translateY(-3px);
}

.gr-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gr-author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #C9A96E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.gr-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.gr-author {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.gr-time {
    font-size: 12px;
    color: var(--text-light);
}

.gr-card-stars {
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}

.gr-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.gr-footer {
    margin-top: 28px;
    text-align: center;
}

.gr-powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.gr-powered:hover {
    color: var(--text-primary);
    border-color: var(--color-gold);
}

/* === VIP 미리보기 === */
.vip-preview {
    background: transparent;
    color: var(--text-white);
}

.vip-preview .section-title {
    color: white;
}

.vip-preview .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.vip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
}

.vip-card {
    padding: 40px 32px;
    text-align: center;
}

.locked-wrapper {
    position: relative;
}

.locked-wrapper .locked-content h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 8px;
}

.locked-wrapper .locked-content p {
    color: var(--text-light);
}

/* === 반응형 === */
@media (max-width: 768px) {
    .hero {
        min-height: calc(90vh - 60px);
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        padding: 14px 32px;
    }

    .bento-signature {
        min-height: 300px;
    }

    .bento-item {
        padding: 24px;
        min-height: 160px;
    }

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

    .gr-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .gr-summary {
        text-align: left;
    }

    .gr-rating-big {
        font-size: 36px;
    }

    .gr-stars {
        justify-content: flex-start;
    }

    .gr-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   홈 유기체 디자인 - 로그인/비로그인 공통
   살아있는 듯한 인터랙션, 전형적 탈피
   ========================================= */

/* Bento 카드 유기체 호버 (모든 상태) */
.bento-item {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
}

.bento-item:hover {
    transform: translateY(-6px);
}

.bento-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 169, 110, 0.1);
}

/* Bento 카드 등장 stagger (모든 상태) */
.bento-item:nth-child(1) { animation: bentoReveal 0.6s ease-out 0.1s both; }
.bento-item:nth-child(2) { animation: bentoReveal 0.6s ease-out 0.2s both; }
.bento-item:nth-child(3) { animation: bentoReveal 0.6s ease-out 0.3s both; }
.bento-item:nth-child(4) { animation: bentoReveal 0.6s ease-out 0.4s both; }

@keyframes bentoReveal {
    from { opacity: 0; transform: translateY(25px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 시그니처 카드 글로우 breathing */
.bento-signature {
    animation: bentoReveal 0.6s ease-out 0.1s both, signatureGlow 8s ease-in-out infinite 1s;
    border-radius: 24px;
}

@keyframes signatureGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 8px 40px rgba(123, 82, 181, 0.12), 0 0 0 1px rgba(201, 169, 110, 0.08); }
}

/* 리뷰 카드 유기체 */
.gr-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
}

.gr-card:hover {
    transform: translateY(-4px);
}

/* VISIT 카드 유기체 */
.visit-nav-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* VIP 카드 미스터리 */
.vip-card {
    transition: all 0.4s ease;
    border-radius: 24px;
}

.vip-card:hover {
    transform: translateY(-4px);
}

.vip-card:hover .locked-overlay {
    background: rgba(13, 13, 20, 0.75);
}

/* Bento 타이틀 언더라인 (common.css에서 기본 설정) */
.bento-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
    .bento-item,
    .bento-signature { animation: none !important; opacity: 1; }
}

/* =========================================
   최신 게시글 섹션 — Latest Stories
   ========================================= */

.latest-posts-section {
    padding: 80px 0;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.latest-post-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: latestCardReveal 0.6s ease forwards;
    animation-delay: calc(var(--stagger, 0) * 100ms);
}

@keyframes latestCardReveal {
    to { opacity: 1; transform: translateY(0); }
}

.latest-post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(212, 175, 55, 0.08);
}

.latest-post-board {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
    margin-bottom: 12px;
}

.latest-post-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.35);
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.latest-post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-post-views svg {
    opacity: 0.5;
}

/* 반응형 */
@media (max-width: 1024px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .latest-posts-section {
        padding: 60px 0;
    }
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .latest-post-card {
        padding: 24px 20px;
    }
}
