/* ===================================================
   pdon-public.css — PD ON 공개 실행 사이트 공통 스타일
   구조는 Jeisys 공개 페이지 패턴을 토대로, Vantive 틸 테마 적용
   index.php / main.php 등 공개 페이지 공통
   =================================================== */

/* ── Pretendard 웹폰트 (자체 호스팅) ── */
@font-face {
    font-family: 'Pretendard'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 500; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 600; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 700; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Pretendard'; font-weight: 800; font-style: normal; font-display: swap;
    src: url('/assets/fonts/Pretendard-ExtraBold.woff2') format('woff2');
}

/* ── 리셋 ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── CSS 변수 (Vantive 틸 + 플럼 액센트) ── */
:root {
    --teal:    #2BB7B3;   /* 메인 브랜드 (풋터 동일) */
    --teal-d:  #1E908D;
    --teal-l:  #54CFCB;
    --plum:    #5B2A57;   /* Vantive 워드마크 플럼 — 보조 액센트 */
    --txt:     #1a1b20;
    --muted:   #5c6270;
    --border:  rgba(43,183,179,0.20);
    --danger:  #ef4444;

    --radius-card: 24px;
    --shadow-card:
        0 1px 1px rgba(30,144,141,0.04),
        0 12px 28px rgba(30,144,141,0.12),
        0 40px 80px rgba(30,144,141,0.10);
    --shadow-soft:
        0 1px 1px rgba(30,144,141,0.03),
        0 8px 22px rgba(30,144,141,0.08);
    --grad-teal:   linear-gradient(180deg, #38C3BF 0%, var(--teal) 100%);
    --grad-teal-h: linear-gradient(180deg, var(--teal) 0%, var(--teal-d) 100%);
    --bg-page: radial-gradient(140% 90% at 50% -10%, #ffffff 0%, #f3fbfa 45%, #e7f5f4 100%);
}

/* ── 베이스 ── */
html, body { min-height: 100%; }
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--txt);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    min-height: 100vh;
}

/* ── 페이지 좌측 상단 로고 ── */
.page-logo {
    position: fixed; top: 22px; left: 26px; z-index: 20;
}
.page-logo-img { height: 34px; width: auto; display: block; }

/* ── 우측 상단 배지 ── */
.page-badge {
    position: fixed; top: 26px; right: 26px; z-index: 20;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    color: var(--teal-d);
    background: rgba(43,183,179,0.10);
    border: 1px solid rgba(43,183,179,0.28);
    padding: 6px 12px; border-radius: 999px;
}

/* ── 카드 진입 애니메이션 ── */
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.u-card-in { animation: cardIn .65s cubic-bezier(.16,.84,.44,1) both; }

/* ── eyebrow 라벨 ── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--teal-d);
    margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.eyebrow.is-live::before { animation: eyebrowPulse 2s ease-out infinite; }
@keyframes eyebrowPulse {
    0%   { box-shadow: 0 0 0 0 rgba(43,183,179,0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(43,183,179,0); }
    100% { box-shadow: 0 0 0 0 rgba(43,183,179,0); }
}

/* ── 상단 브랜드 액센트 라인 ── */
.accent-line {
    position: absolute; top: 0; height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--teal-l) 80%, transparent);
    border-radius: 2px; opacity: .9;
}

/* ── 가는 구분선 ── */
.panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43,183,179,0.16) 20%, rgba(43,183,179,0.16) 80%, transparent);
    margin: 0 0 22px;
}

/* ── 폼 ── */
.form-control {
    width: 100%; padding: 13px 15px;
    font-family: inherit; font-size: 14px; color: var(--txt);
    background: #fff;
    border: 1px solid var(--border); border-radius: 11px;
    transition: border-color .18s, box-shadow .18s;
}
.form-control::placeholder { color: #9aa1ad; }
.form-control:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(43,183,179,0.14);
}

/* ── 입장 버튼 ── */
.btn-enter {
    width: 100%; padding: 14px;
    background: var(--grad-teal); color: #fff;
    border: none; border-radius: 11px;
    font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .01em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(30,144,141,0.26);
    transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-enter:hover {
    background: var(--grad-teal-h);
    box-shadow: 0 10px 24px rgba(30,144,141,0.32);
    transform: translateY(-1px);
}
.btn-enter:active { transform: translateY(0); }
.btn-enter svg { width: 18px; height: 18px; stroke: #fff; transition: transform .2s; }
.btn-enter:hover svg { transform: translateX(3px); }

/* ── 알림 박스 ── */
.alert-error, .alert-success {
    font-size: 13px; line-height: 1.5; padding: 11px 14px;
    border-radius: 10px; margin-bottom: 14px;
}
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdfa; border: 1px solid #99e6e2; color: var(--teal-d); }

/* ═══════════════ index 레이아웃 ═══════════════ */
body.page-index {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 100px 16px 96px;
}
.card-wrap {
    width: 100%; max-width: 1080px;
    display: flex; min-height: 560px;
    position: relative; z-index: 1;
    margin: auto;
}
/* 좌측: 정보 + 폼 */
.left-panel {
    width: 44%; flex-shrink: 0;
    padding: 56px 52px;
    display: flex; flex-direction: column; justify-content: center;
    background: #fff;
    border-radius: var(--radius-card) 0 0 var(--radius-card);
    box-shadow: var(--shadow-card);
    position: relative; z-index: 2;
}
.left-panel .accent-line { left: 52px; right: 52px; }

.event-title {
    font-size: clamp(21px, 3vw, 29px); font-weight: 800;
    color: var(--txt); letter-spacing: -0.025em; line-height: 1.32;
    margin-bottom: 10px;
}
.event-meta { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.8; }
.event-meta b { color: var(--teal-d); font-weight: 600; }

.form-group { margin-bottom: 11px; }
.register-link { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.register-link a { color: var(--teal-d); font-weight: 600; text-decoration: none; }
.register-link a:hover { text-decoration: underline; }

/* 우측: 히어로 */
.right-panel {
    flex: 1;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    border: 1px solid rgba(255,255,255,0.85); border-left: none;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.right-content { position: relative; z-index: 1; text-align: center; padding: 48px; }
.right-tagline {
    font-size: clamp(18px, 2.2vw, 25px); font-weight: 800;
    color: var(--teal-d); letter-spacing: -0.025em; line-height: 1.4; margin-bottom: 12px;
}
.right-sub { font-size: 13px; color: var(--muted); line-height: 1.75; }
.illust-svg { width: clamp(180px, 22vw, 260px); height: auto; margin: 0 auto 34px; display: block; opacity: .96; }

/* 히어로 이미지: 가로폭에 맞추고, 높이는 이미지에 맞춰 카드가 함께 늘어남 */
.right-panel.has-image {
    background: #ffffff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-color: rgba(43,183,179,0.14);
    align-items: stretch;          /* 이미지가 패널을 가득 채우도록 */
}
.hero-image {
    display: block;
    width: 100%;
    height: auto;                  /* 가로폭 기준, 비율 유지 → 카드 높이 자동 */
    object-fit: contain;
    align-self: center;
}
.right-panel.has-image::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);   /* 라운드 가장자리 정리 */
}

/* ── 풋터 (#2BB7B3) ── */
.page-footer {
    position: relative; z-index: 1; width: 100%;
    background: var(--teal);
    color: #eafaf9;
    text-align: center;
    padding: 26px 20px 30px;
    margin-top: auto;
}
.page-footer .footer-logo-img { height: 26px; width: auto; margin-bottom: 14px; opacity: .95; }
.footer-divider { width: 46px; height: 2px; background: rgba(255,255,255,0.4); margin: 0 auto 14px; border-radius: 2px; }
.footer-body { font-size: 12.5px; line-height: 1.9; color: #d9f4f3; }
.footer-sep { margin: 0 8px; opacity: .5; }
.footer-copy { margin-top: 12px; font-size: 11px; color: rgba(234,250,249,0.75); line-height: 1.7; }

/* ── 반응형 ── */
@media (max-width: 860px) {
    .card-wrap { flex-direction: column; }
    .left-panel { width: 100%; padding: 44px 30px; border-radius: 24px 24px 0 0; }
    .left-panel .accent-line { left: 30px; right: 30px; }
    .right-panel { min-height: 220px; border-radius: 0 0 24px 24px; border-left: 1px solid rgba(255,255,255,0.85); border-top: none; }
    .illust-svg { width: 120px; margin-bottom: 16px; }
}
@media (max-width: 480px) {
    body.page-index { padding: 84px 12px 64px; }
    .page-badge { display: none; }
    .page-logo { top: 14px; left: 14px; }
    .page-logo-img { height: 28px; }
    .left-panel { padding: 34px 22px; }
    .left-panel .accent-line { left: 22px; right: 22px; }
}
