/* =========================================================
   hub.css — Linktree-style Hub Page
   Brand: GloMax × 병원 랜딩 (white / lavender theme)
   ========================================================= */

/* ── Reset & base ───────────────────────────────────────── */
.hub-body {
    margin: 0;
    padding: 0;
    background: #F7F2FA;
    color: #201A27;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Hide WP admin bar overlap */
.hub-body #wpadminbar { position: fixed; }
.hub-body.admin-bar .hub-wrap { padding-top: 32px; }

/* ── Layout ─────────────────────────────────────────────── */
.hub-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Header ─────────────────────────────────────────────── */
.hub-header {
    margin-bottom: 8px;
}

.hub-header-hero {
    background: linear-gradient(150deg, #2A1639 0%, #9370B0 100%); /* fallback, overridden by inline style */
    padding: 52px 28px 40px;
    text-align: center;
    border-radius: 0 0 36px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(94, 65, 111, 0.30);
}

/* 장식 블롭 */
.hub-header-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hub-header-deco--tl {
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.05);
    top: -80px;
    left: -60px;
}
.hub-header-deco--br {
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.04);
    bottom: -50px;
    right: -30px;
}

.hub-logo-img {
    display: block;
    width: 58%;
    max-width: 210px;
    min-width: 140px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25));
}

.hub-logo-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
}

.hub-clinic-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ── Section ────────────────────────────────────────────── */
.hub-section {
    padding: 20px 20px;
    border-top: 1px solid rgba(185, 162, 206, 0.25);
}

.hub-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #B9A2CE;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

/* ── Messenger buttons ──────────────────────────────────── */
.hub-messenger-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-messenger-btn {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    box-sizing: border-box;
}

.hub-messenger-btn:hover,
.hub-messenger-btn:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    outline: none;
}

.hub-messenger-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.hub-msng-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.25) no-repeat center/20px;
    flex-shrink: 0;
}

/* SVG icons via background-image (inline SVG data URIs) */
.hub-icon-whatsapp {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}

.hub-icon-line {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.952 12.328c0-4.338-4.349-7.866-9.693-7.866S.566 7.99.566 12.328c0 3.887 3.447 7.143 8.101 7.761.315.068.745.208.854.478.097.245.064.63.031.878l-.138.829c-.042.245-.195.96.841.523 1.037-.437 5.597-3.296 7.636-5.645 1.409-1.547 2.061-3.117 2.061-4.824zm-13.2 2.437H5.094a.42.42 0 01-.42-.42V10.94a.42.42 0 01.84 0v2.985h1.238a.42.42 0 010 .84zm1.617 0a.42.42 0 01-.42-.42V10.94a.42.42 0 01.84 0v3.405a.42.42 0 01-.42.42zm4.357 0a.42.42 0 01-.333-.164l-1.606-2.189v1.932a.42.42 0 01-.84 0V10.94a.42.42 0 01.75-.262l1.607 2.19V10.94a.42.42 0 01.84 0v3.405a.42.42 0 01-.418.42zm3.278 0h-1.658a.42.42 0 01-.42-.42V10.94a.42.42 0 01.42-.42h1.658a.42.42 0 010 .84H15.346v.883h1.238a.42.42 0 010 .84H15.346v.842h1.238a.42.42 0 010 .84z'/%3E%3C/svg%3E");
}

.hub-icon-wechat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 01.213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 00.167-.054l1.903-1.114a.864.864 0 01.717-.098 10.16 10.16 0 002.837.403c-.276-.88-.421-1.804-.421-2.76 0-3.817 3.454-6.911 7.706-6.911.172 0 .343.006.512.018C15.912 4.251 12.584 2.188 8.69 2.188zm-2.46 3.807a1.157 1.157 0 110 2.314 1.157 1.157 0 010-2.314zm4.807 0a1.157 1.157 0 110 2.314 1.157 1.157 0 010-2.314zM24 14.503c0-3.394-3.219-6.15-7.19-6.15s-7.19 2.756-7.19 6.15c0 3.395 3.219 6.15 7.19 6.15.848 0 1.662-.127 2.42-.359a.728.728 0 01.612.082l1.622.95a.278.278 0 00.143.047.252.252 0 00.248-.252.532.532 0 00-.04-.182l-.333-1.262a.504.504 0 01.181-.569C23.062 18.172 24 16.43 24 14.503zm-9.994-.801a.986.986 0 110 1.972.986.986 0 010-1.972zm3.603 0a.986.986 0 110 1.972.986.986 0 010-1.972z'/%3E%3C/svg%3E");
}

.hub-icon-zalo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm1.37 16.498H8.123l-.003-.001a.535.535 0 01-.525-.543c0-.148.06-.282.155-.38l3.865-4.515H8.383a.535.535 0 010-1.07h5.143c.295 0 .534.24.534.535 0 .147-.059.28-.154.379l-3.866 4.516h3.33a.535.535 0 010 1.07zm3.744-.001h-.001a.534.534 0 01-.534-.534v-3.946l-.584.585a.534.534 0 01-.755-.756l1.496-1.495a.534.534 0 01.912.378v5.234a.534.534 0 01-.534.534z'/%3E%3C/svg%3E");
}

.hub-msng-name {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    text-align: left;
}

.hub-msng-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    background: rgba(0,0,0,0.12);
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* ── Language grid ──────────────────────────────────────── */
.hub-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hub-lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    background: #FFFFFF;
    border: 1px solid rgba(185, 162, 206, 0.35);
    border-radius: 12px;
    text-decoration: none;
    color: #5E416F;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 4px rgba(185, 162, 206, 0.12);
}

.hub-lang-btn:hover,
.hub-lang-btn:focus-visible {
    background: #F0E8F8;
    border-color: #B9A2CE;
    color: #5E416F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(143, 106, 173, 0.2);
    outline: none;
}

.hub-lang-flag {
    font-size: 22px;
    line-height: 1;
}

.hub-lang-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: #5E416F;
}

/* ── SNS buttons ────────────────────────────────────────── */
.hub-sns-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-sns-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: #FFFFFF;
    border: 1px solid rgba(185, 162, 206, 0.35);
    border-radius: 12px;
    text-decoration: none;
    color: #5E416F;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 4px rgba(185, 162, 206, 0.12);
}

.hub-sns-btn:hover,
.hub-sns-btn:focus-visible {
    background: #F0E8F8;
    border-color: #B9A2CE;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(143, 106, 173, 0.2);
    outline: none;
}

.hub-sns-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ── Info section ───────────────────────────────────────── */
.hub-info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #8F6AAD;
}

.hub-info-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* ── Footer ─────────────────────────────────────────────── */
.hub-footer {
    text-align: center;
    padding: 32px 20px 0;
    font-size: 11px;
    color: #B9A2CE;
}

/* ── WeChat modal ───────────────────────────────────────── */
.hub-wechat-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32, 26, 39, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.hub-wechat-modal.open {
    display: flex;
}

.hub-wechat-inner {
    background: #FFFFFF;
    border: 1px solid rgba(185, 162, 206, 0.4);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(94, 65, 111, 0.2);
}

.hub-wechat-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #B9A2CE;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s;
}

.hub-wechat-close:hover {
    color: #5E416F;
}

.hub-wechat-label {
    font-size: 12px;
    color: #B9A2CE;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

.hub-wechat-id {
    font-size: 22px;
    font-weight: 800;
    color: #07C160;
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.hub-wechat-hint {
    font-size: 12px;
    color: #8F6AAD;
    margin: 0;
    line-height: 1.5;
}

/* ── Mobile tweaks ──────────────────────────────────────── */
@media (max-width: 400px) {
    .hub-header-hero { padding: 40px 20px 32px; }
    .hub-logo-img { width: 62%; }
    .hub-section { padding: 16px 16px; }
    .hub-lang-grid { grid-template-columns: repeat(2, 1fr); }
    .hub-footer { padding: 24px 16px 0; }
}

@media (min-width: 481px) {
    .hub-wrap { padding: 0 0 80px; }
    .hub-header-hero { padding: 64px 36px 52px; }
    .hub-section { padding: 24px 28px; }
}
