/* ===== Panel Guide Modal (공통) ===== */

/* Info 버튼 (패널 헤더) — 눈에 띄게 */
.panel-info-btn {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border: 1.5px solid #d0d5dd;
    border-radius: 50%;
    background: #f5f5f5;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin-left: auto;
    margin-right: 8px;
}
.panel-info-btn:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1976d2;
    transform: scale(1.1);
}

/* Backdrop */
.pgm-backdrop {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.pgm-backdrop.show { opacity: 1; }

/* Modal */
.pgm-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 10001;
    width: 1020px;
    max-width: 92vw;
    max-height: 92vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.pgm-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Close */
.pgm-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 8px;
    background: rgba(0,0,0,0.05); color: #999;
    cursor: pointer; transition: all 0.15s;
}
.pgm-close:hover { background: rgba(0,0,0,0.1); color: #333; }

/* ── Hero (가로: 아이콘 + 텍스트) ── */
.pgm-hero {
    display: flex; align-items: center; gap: 24px;
    padding: 32px 40px 28px;
    background: linear-gradient(135deg, #f8fbff, #eef5fc);
    border-bottom: 1px solid #eef2f7;
}
.pgm-icon-wrap {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 84px; height: 84px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pgm-icon-pulse {
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(52,152,219,0.25);
    animation: pgmPulse 2s ease-out infinite;
}
@keyframes pgmPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}
.pgm-hero-text { flex: 1; }
.pgm-title { font-size: 22px; font-weight: 800; color: #222; margin-bottom: 6px; }
.pgm-subtitle { font-size: 14px; color: #888; line-height: 1.7; word-break: keep-all; }

/* ── 본문: 2컬럼 ── */
.pgm-body {
    display: flex;
    min-height: 340px;
}

/* 좌: 주요기능 */
.pgm-col-left {
    flex: 1.15;
    padding: 28px 32px;
    border-right: 1px solid #f0f0f0;
}

/* 우: 사용방법 + 팁 */
.pgm-col-right {
    flex: 1;
    padding: 28px 32px;
    display: flex; flex-direction: column;
}

/* Section title */
.pgm-section-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #bbb;
    margin-bottom: 14px;
}

/* Features — 2x2 */
.pgm-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pgm-feature {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.15s;
}
.pgm-feature:hover { border-color: #e0e8f0; }
.pgm-feature-icon { flex-shrink: 0; }
.pgm-feature-body { flex: 1; min-width: 0; }
.pgm-feature-title {
    font-size: 13px; font-weight: 700; color: #333;
    margin-bottom: 5px;
    word-break: keep-all;
}
.pgm-feature-desc {
    font-size: 12px; color: #888; line-height: 1.65;
    word-break: keep-all;
}

/* Steps */
.pgm-steps {
    display: flex; flex-direction: column; gap: 0;
    flex: 1;
}
.pgm-step {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 10px 0;
    position: relative;
}
.pgm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px; top: 38px; bottom: -4px;
    width: 2px;
    background: linear-gradient(to bottom, #e0e0e0, transparent);
}
.pgm-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.pgm-step-text {
    font-size: 13px; color: #555;
    line-height: 1.7;
    padding-top: 5px;
    word-break: keep-all;
}
.pgm-step-text strong { color: #333; }

/* Tip */
.pgm-tip {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: auto;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef9ef, #fef3e2);
    border: 1px solid #fde8c8;
    border-radius: 12px;
    font-size: 12px; color: #b8860b;
    line-height: 1.65;
    word-break: keep-all;
}
.pgm-tip svg { flex-shrink: 0; margin-top: 2px; }

/* Responsive */
@media (max-width: 1080px) {
    .pgm-modal { width: 95vw; }
    .pgm-features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pgm-body { flex-direction: column; }
    .pgm-col-left { border-right: none; border-bottom: 1px solid #f0f0f0; }
}
