/**
 * 커피숍 창업 계산기 - 서비스 고유 스타일
 * hub-common.css 위에 추가
 */

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* 네비바 */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--hub-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav-inner {
    max-width: 728px;
    margin: 0 auto;
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-nav-logo {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--hub-text);
    text-decoration: none;
}
.site-nav-links {
    display: flex;
    gap: 16px;
}
.site-nav-links a {
    font-size: 0.82rem;
    color: var(--hub-text-light);
    text-decoration: none;
    transition: color 0.15s;
}
.site-nav-links a:hover {
    color: var(--hub-accent);
}

/* 푸터 */
.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--hub-border);
    background: var(--hub-bg-light);
}
.site-footer-inner {
    max-width: 728px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
}
.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}
.site-footer-links a {
    font-size: 0.82rem;
    color: var(--hub-text-light);
    text-decoration: none;
}
.site-footer-links a:hover {
    color: var(--hub-accent);
}
.site-footer-copy {
    font-size: 0.72rem;
    color: #aaa;
}

/* 탭 서브텍스트 */
.calc-tab {
    padding: 8px 16px;
    border: 1px solid var(--hub-border);
    border-radius: 20px;
    background: var(--hub-bg);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--hub-text-light);
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}
.calc-tab.active, .calc-tab:hover {
    background: var(--hub-accent);
    color: #fff;
    border-color: var(--hub-accent);
}
.calc-tab .tab-sub {
    display: block;
    font-size: 0.72rem;
    margin-top: 2px;
    opacity: 0.7;
}
.calc-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 입력 카드 */
.calc-card {
    padding: 20px;
    margin-bottom: 12px;
    background: var(--hub-bg-light);
    border-radius: var(--hub-radius);
    border: 1px solid var(--hub-border);
}
.calc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--hub-text);
}
.calc-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--hub-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* 결과 */
.calc-result {
    margin-top: 20px;
    padding: 24px 20px;
    background: var(--hub-bg-light);
    border-radius: var(--hub-radius);
    text-align: center;
}
.calc-result-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--hub-accent);
}
.calc-result-label {
    font-size: 0.9rem;
    color: var(--hub-text-light);
    margin-top: 4px;
}

/* 공유 버튼 */
.share-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    background: none;
    border: 1px solid var(--hub-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--hub-text-light);
    cursor: pointer;
    transition: all 0.2s;
}
.share-btn:hover {
    border-color: var(--hub-accent);
    color: var(--hub-accent);
}

/* 항목별 비용 */
.cost-list {
    margin-top: 16px;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    overflow: hidden;
}
.cost-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hub-border);
    gap: 10px;
}
.cost-row:last-child { border-bottom: none; }
.cost-name {
    font-size: 0.85rem;
    color: var(--hub-text-light);
    min-width: 68px;
    white-space: nowrap;
}
.cost-bar-wrap {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}
.cost-bar {
    display: block;
    height: 100%;
    background: var(--hub-accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}
.cost-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hub-text);
    white-space: nowrap;
    text-align: right;
    min-width: 90px;
}

/* 팁 */
.tips-box {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--hub-bg-light);
    border-radius: var(--hub-radius);
    font-size: 0.85rem;
    color: var(--hub-text-light);
}
.tips-box strong {
    display: block;
    color: var(--hub-text);
    margin-bottom: 8px;
}
.tips-box ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}
.tips-box li {
    padding: 2px 0;
    line-height: 1.6;
}

/* 텍스트 강조 유틸리티 */
.txt-hl {
    background: linear-gradient(transparent 60%, #fff3cd 60%);
    padding: 0 2px;
    font-weight: 600;
    color: var(--hub-text);
}
.txt-b {
    font-weight: 700;
    color: var(--hub-text);
}
.txt-ul {
    text-decoration: underline;
    text-decoration-color: var(--hub-accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* SEO 섹션 */
.seo-section {
    margin-top: 40px;
}
.seo-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 18px 0 6px;
    color: var(--hub-text);
}
.seo-section h3:first-of-type { margin-top: 0; }
.seo-section p {
    font-size: 0.88rem;
    color: var(--hub-text-light);
    line-height: 1.8;
    margin: 0 0 12px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--hub-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hub-text);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
}
.faq-arrow {
    font-size: 0.6rem;
    color: var(--hub-text-light);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-arrow.open { transform: rotate(180deg); }
.faq-a {
    padding: 0 0 14px;
    font-size: 0.85rem;
    color: var(--hub-text-light);
    line-height: 1.7;
}

/* 안내 */
.info-box {
    margin-top: 30px;
    padding: 16px 20px;
    background: var(--hub-bg-light);
    border-radius: var(--hub-radius);
    font-size: 0.78rem;
    color: var(--hub-text-light);
    line-height: 1.7;
}

/* 토스트 */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hub-text);
    color: #fff;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* 추천 서비스 */
.recommend-grid {
    display: flex;
    gap: 12px;
}
.recommend-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--hub-bg-light);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    text-decoration: none;
    transition: border-color 0.2s;
}
.recommend-card:hover {
    border-color: var(--hub-accent);
}
.recommend-emoji {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.recommend-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--hub-text);
}
.recommend-info span {
    font-size: 0.78rem;
    color: var(--hub-text-light);
}

/* about 페이지 */
.about-feature {
    padding: 16px 0;
    border-bottom: 1px solid var(--hub-border);
}
.about-feature:last-child { border-bottom: none; }
.about-feature strong {
    display: block;
    font-size: 0.92rem;
    color: var(--hub-text);
    margin-bottom: 4px;
}
.about-feature p {
    font-size: 0.85rem;
    color: var(--hub-text-light);
    line-height: 1.7;
    margin: 0;
}
.about-cta {
    display: inline-block;
    padding: 10px 28px;
    background: var(--hub-accent);
    color: #fff;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.about-cta:hover { opacity: 0.85; }

/* 셀렉트 인풋 */
select.calc-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ==================== 모바일 반응형 ==================== */
@media (max-width: 640px) {
    /* 네비바 */
    .site-nav-inner { padding: 0 14px; height: 44px; }
    .site-nav-logo { font-size: 0.82rem; }
    .site-nav-links { gap: 12px; }
    .site-nav-links a { font-size: 0.76rem; }

    /* 히어로 */
    .hub-hero h1 { font-size: 1.3rem; }
    .hub-hero p { font-size: 0.82rem; }

    /* 입력 카드 */
    .calc-card { padding: 14px; margin-bottom: 10px; }
    .calc-label { font-size: 0.82rem; margin-bottom: 10px; }
    .calc-tabs { gap: 6px; }
    .calc-tab { padding: 6px 10px; font-size: 0.78rem; }
    .calc-tab .tab-sub { font-size: 0.65rem; }

    /* 결과 */
    .calc-result { padding: 18px 14px; }
    .calc-result-value { font-size: 1.5rem; }
    .calc-result-label { font-size: 0.8rem; }

    /* 비용 항목 */
    .cost-row { padding: 10px 12px; gap: 8px; }
    .cost-name { font-size: 0.78rem; min-width: 58px; }
    .cost-value { font-size: 0.72rem; min-width: 75px; }

    /* 팁 */
    .tips-box { padding: 12px 14px; font-size: 0.78rem; }
    .tips-box li { line-height: 1.5; }

    /* SEO / FAQ */
    .seo-section { margin-top: 28px; }
    .seo-section h3 { font-size: 0.88rem; }
    .seo-section p { font-size: 0.82rem; line-height: 1.7; }
    .faq-q { font-size: 0.82rem; padding: 12px 0; }
    .faq-a { font-size: 0.78rem; }

    /* 추천 서비스 */
    .recommend-grid { flex-direction: column; }
    .recommend-card { padding: 14px; }
    .recommend-emoji { font-size: 1.4rem; }
    .recommend-info strong { font-size: 0.84rem; }
    .recommend-info span { font-size: 0.72rem; }

    /* 안내/푸터 */
    .info-box { padding: 12px 14px; font-size: 0.72rem; }
    .site-footer { margin-top: 32px; }
    .site-footer-inner { padding: 18px 14px; }

    /* 광고 */
    .ad-slot { margin-top: 18px; }

    /* about 페이지 */
    .about-feature strong { font-size: 0.84rem; }
    .about-feature p { font-size: 0.78rem; }
    .about-cta { font-size: 0.84rem; padding: 9px 22px; }
}
