/* RankLowestPriceServiceFunction.css - 순위 추적 기능 안내
   컨셉: 다크 프리미엄 데이터 툴 - 딥 에메랄드 캔버스 + 네온 라임 글로우 + 콘솔 패널 */

:root {
    --rt-bg: #04140e;
    --rt-bg-2: #061c14;
    --rt-surface: rgba(255, 255, 255, 0.045);
    --rt-surface-2: rgba(255, 255, 255, 0.07);
    --rt-border: rgba(255, 255, 255, 0.09);
    --rt-border-str: rgba(174, 240, 130, 0.28);
    --rt-primary: #34d399;
    --rt-primary-deep: #10b981;
    --rt-lime: #bef264;
    --rt-lime-str: #a3e635;
    --rt-text: #eafaf2;
    --rt-text-mut: rgba(234, 250, 242, 0.60);
    --rt-text-dim: rgba(234, 250, 242, 0.38);
    --rt-up: #fb7185;
    --rt-down: #60a5fa;
    --rt-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, ui-monospace, monospace;
    --rt-radius: 0.75rem;
    --rt-radius-lg: 1.25rem;
    --rt-glow-lime: 0 0 24px rgba(163, 230, 53, 0.45);
}

.rt-func-wrap * { margin: 0; padding: 0; box-sizing: border-box; }

.rt-reveal { opacity: 1; transform: none; }
.rt-motion-ready .rt-reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.rt-motion-ready .rt-reveal.visible { opacity: 1; transform: translateY(0); }
.rt-delay-100 { transition-delay: 100ms; }
.rt-delay-200 { transition-delay: 200ms; }

.rt-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Base — 전체 다크 캔버스
   ========================================================================== */
.rt-func-wrap {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--rt-text);
    background-color: var(--rt-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    position: relative;
    overflow: hidden;
}
.rt-func-wrap a { text-decoration: none; color: inherit; }
.rt-func-wrap ul { list-style: none; }

.rt-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--rt-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; color: var(--rt-lime); text-transform: uppercase; }
.rt-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--rt-lime); box-shadow: var(--rt-glow-lime); }

.rt-btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; font-weight: 700; border-radius: 9999px; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 0.98rem; }
.rt-btn-primary { background: var(--rt-lime); color: #08140a; box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.5), 0 10px 30px -6px rgba(163, 230, 53, 0.5); }
.rt-btn-primary:hover { background: #cdfa7a; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.7), 0 14px 36px -6px rgba(163, 230, 53, 0.65); }
.rt-btn-ghost-dark { background: rgba(255, 255, 255, 0.06); color: var(--rt-text); border: 1px solid rgba(255, 255, 255, 0.18); }
.rt-btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ==========================================================================
   리포트 투어 헤더
   ========================================================================== */
.rt-tour { padding: 120px 0; position: relative; overflow: hidden; }
.rt-tour::before { content: ''; position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 640px; height: 500px; background: radial-gradient(ellipse, rgba(16, 185, 129, 0.16) 0%, transparent 62%); pointer-events: none; }
.rt-tour-header { position: relative; text-align: center; max-width: 700px; margin: 0 auto 96px; }
.rt-tour-header .rt-eyebrow { margin-bottom: 18px; }
.rt-tour-header .rt-eyebrow { justify-content: center; }
.rt-tour-header h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 16px; }
.rt-tour-header p { font-size: 1.08rem; color: var(--rt-text-mut); line-height: 1.75; }

/* ==========================================================================
   리포트 행 (교차 배치)
   ========================================================================== */
.rt-row { display: flex; align-items: center; gap: 72px; margin-bottom: 140px; position: relative; z-index: 1; }
.rt-row:last-of-type { margin-bottom: 0; }
.rt-row.reverse { flex-direction: row-reverse; }
.rt-row-visual { flex: 1.1; min-width: 0; }
.rt-row-copy { flex: 1; min-width: 0; }
.rt-row-index { font-family: var(--rt-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; color: var(--rt-lime); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rt-row-index::after { content: ''; width: 34px; height: 1px; background: rgba(163, 230, 53, 0.4); }
.rt-row-copy h3 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.025em; color: #fff; margin-bottom: 18px; }
.rt-row-copy p { font-size: 1.04rem; color: var(--rt-text-mut); line-height: 1.8; }

/* ==========================================================================
   콘솔 패널 (글라스)
   ========================================================================== */
.rt-panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%); border: 1px solid var(--rt-border); border-radius: var(--rt-radius-lg); box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; }
.rt-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: rgba(0, 0, 0, 0.25); border-bottom: 1px solid var(--rt-border); }
.rt-panel-dots { display: flex; gap: 6px; }
.rt-panel-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.rt-panel-title { font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.rt-panel-tag { margin-left: auto; font-family: var(--rt-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: var(--rt-lime); }
.rt-panel-body { padding: 22px; }

/* 키워드 칩 / 축 라벨 */
.rt-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.rt-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--rt-border); border-radius: 9999px; padding: 6px 14px; font-size: 0.78rem; font-weight: 500; color: var(--rt-text-mut); }
.rt-chip.active { background: rgba(163, 230, 53, 0.14); border-color: rgba(163, 230, 53, 0.4); color: var(--rt-lime); }
.rt-axis-label { display: flex; justify-content: space-between; font-family: var(--rt-mono); font-size: 0.68rem; color: var(--rt-text-dim); margin-bottom: 8px; }

/* 순위 라인 차트 */
.rt-chart-box { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); padding: 14px 18px; }
.rt-chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.rt-legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.rt-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 500; color: var(--rt-text-mut); }
.rt-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rt-legend-dot.c1 { background: var(--rt-primary); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.rt-legend-dot.c2 { background: var(--rt-down); }
.rt-legend-dot.c3 { background: #fbbf24; }

/* 노트 배지 */
.rt-note { display: flex; align-items: center; gap: 8px; background: rgba(163, 230, 53, 0.08); border: 1px solid rgba(163, 230, 53, 0.22); border-radius: var(--rt-radius); padding: 11px 15px; font-size: 0.83rem; font-weight: 500; color: var(--rt-lime); margin-top: 16px; }
.rt-note svg { width: 16px; height: 16px; flex-shrink: 0; }

/* 이력 테이블 */
.rt-table-wrap { overflow-x: auto; }
.rt-table { width: 100%; border-collapse: collapse; text-align: center; }
.rt-table th { padding: 10px 8px; font-family: var(--rt-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: var(--rt-text-dim); border-bottom: 1px solid var(--rt-border); background: rgba(0, 0, 0, 0.25); white-space: nowrap; }
.rt-table td { padding: 12px 8px; font-size: 0.85rem; border-bottom: 1px solid var(--rt-border); color: var(--rt-text); white-space: nowrap; }
.rt-table td.num { font-family: var(--rt-mono); font-size: 0.8rem; color: var(--rt-text-mut); }
.rt-table tr:last-child td { border-bottom: none; }
.rt-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 9999px; font-family: var(--rt-mono); font-size: 0.7rem; font-weight: 700; border: 1px solid transparent; }
.rt-badge-up { background-color: rgba(251, 113, 133, 0.14); color: var(--rt-up); border-color: rgba(251, 113, 133, 0.32); }
.rt-badge-down { background-color: rgba(96, 165, 250, 0.14); color: var(--rt-down); border-color: rgba(96, 165, 250, 0.32); }
.rt-badge-keep { background-color: rgba(255, 255, 255, 0.05); color: var(--rt-text-dim); border-color: var(--rt-border); }

/* 판매가 바 차트 */
.rt-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 108px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); padding: 14px 12px 10px; }
.rt-bar { flex: 1; background: linear-gradient(180deg, var(--rt-lime) 0%, var(--rt-primary) 100%); border-radius: 4px 4px 0 0; box-shadow: 0 0 12px rgba(163, 230, 53, 0.25); animation: rtBarRise 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rt-bar:nth-child(1) { animation-delay: 0.05s; }
.rt-bar:nth-child(2) { animation-delay: 0.15s; }
.rt-bar:nth-child(3) { animation-delay: 0.25s; }
.rt-bar:nth-child(4) { animation-delay: 0.35s; }
.rt-bar:nth-child(5) { animation-delay: 0.45s; }
.rt-bar:nth-child(6) { animation-delay: 0.55s; }
.rt-bar:nth-child(7) { animation-delay: 0.65s; }
@keyframes rtBarRise { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

/* 상품 정보 변경 diff */
.rt-diff { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.rt-diff-row { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); padding: 11px 14px; font-size: 0.82rem; }
.rt-diff-label { flex-shrink: 0; font-family: var(--rt-mono); font-size: 0.72rem; font-weight: 600; color: var(--rt-text-dim); }
.rt-diff-old { color: var(--rt-text-dim); text-decoration: line-through; }
.rt-diff-arrow { color: var(--rt-text-dim); }
.rt-diff-new { font-weight: 700; color: var(--rt-lime); }

/* 변동 TOP 리스트 */
.rt-top-list { display: flex; flex-direction: column; gap: 10px; }
.rt-top-row { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); padding: 13px 16px; }
.rt-top-label { flex-shrink: 0; font-family: var(--rt-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: var(--rt-text-dim); width: 62px; }
.rt-top-kw { font-size: 0.9rem; font-weight: 600; color: var(--rt-text); }
.rt-top-row .rt-badge { margin-left: auto; }

/* ==========================================================================
   관리 편의 밴드 (구분 셰이드)
   ========================================================================== */
.rt-band { padding: 120px 0; background: var(--rt-bg-2); position: relative; overflow: hidden; border-top: 1px solid var(--rt-border); border-bottom: 1px solid var(--rt-border); }
.rt-band::before { content: ''; position: absolute; top: 50%; right: -6%; transform: translateY(-50%); width: 560px; height: 460px; background: radial-gradient(ellipse, rgba(163, 230, 53, 0.10) 0%, transparent 62%); pointer-events: none; }
.rt-band .rt-row { margin-bottom: 0; }

.rt-util-cards { display: flex; flex-direction: column; gap: 14px; }
.rt-util-card { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--rt-border); border-radius: var(--rt-radius); padding: 18px 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: all 0.3s ease; }
.rt-util-card:hover { border-color: var(--rt-border-str); background: rgba(255, 255, 255, 0.08); }
.rt-util-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: rgba(163, 230, 53, 0.12); display: flex; align-items: center; justify-content: center; color: var(--rt-lime); border: 1px solid rgba(163, 230, 53, 0.25); }
.rt-util-icon svg { width: 20px; height: 20px; }
.rt-util-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.rt-util-text span { font-size: 0.82rem; color: var(--rt-text-mut); }

/* ==========================================================================
   광고주 전용 + CTA 밴드
   ========================================================================== */
.rt-adv { padding: 130px 0; position: relative; overflow: hidden; }
.rt-adv::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 760px; height: 480px; background: radial-gradient(ellipse, rgba(16, 185, 129, 0.18) 0%, transparent 62%); pointer-events: none; }
.rt-adv-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.rt-adv-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(163, 230, 53, 0.14); color: var(--rt-lime); padding: 8px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 24px; border: 1px solid rgba(163, 230, 53, 0.3); }
.rt-adv-badge svg { width: 14px; height: 14px; }
.rt-adv h2 { color: #fff; font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; line-height: 1.25; }
.rt-adv h2 em { font-style: normal; color: var(--rt-lime); text-shadow: 0 0 28px rgba(163, 230, 53, 0.5); }
.rt-adv p { color: var(--rt-text-mut); font-size: 1.1rem; line-height: 1.75; margin-bottom: 40px; }
.rt-adv-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .rt-tour { padding: 84px 0; }
    .rt-band { padding: 84px 0; }
    .rt-tour-header { margin-bottom: 60px; }
    .rt-row, .rt-row.reverse { flex-direction: column; gap: 40px; margin-bottom: 96px; }
    .rt-row-visual { width: 100%; }
    .rt-adv { padding: 90px 0; }
}

@media (max-width: 768px) {
    .rt-tour-header h2 { font-size: 1.8rem; }
    .rt-row-copy h3 { font-size: 1.45rem; }
    .rt-row-copy p { font-size: 0.96rem; }
    .rt-panel-body { padding: 16px; }
    .rt-adv h2 { font-size: 1.9rem; }
    .rt-top-label { width: 52px; font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rt-motion-ready .rt-reveal,
    .rt-motion-ready .rt-reveal.visible { opacity: 1; transform: none; transition: none; }
    .rt-func-wrap *, .rt-func-wrap *::before, .rt-func-wrap *::after { animation: none !important; transition: none !important; }
}
