Files
web-page/src/App.css
gahusb ca9929faac fix(a11y): 글로벌 prefers-reduced-motion 추가 + Blog 버튼 위치 수정
- App.css: 글로벌 reduced-motion 블록 (모든 animation/transition 비활성화)
- index.css: scroll-behavior: smooth → auto (reduced-motion)
- BlogMarketing.css: 스피너 reduced-motion 처리
- Blog.css: 플로팅 토글 버튼 bottom-nav 위로 재배치

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-23 15:12:24 +09:00

507 lines
14 KiB
CSS

/* ═══════════════════════════════════════════════════════════════════════
App.css — Dashboard Layout & Design System
Cyberpunk / Futuristic Dashboard UI
═══════════════════════════════════════════════════════════════════════ */
/* ── Layout: App Shell ───────────────────────────────────────────────── */
.app-shell {
display: flex;
height: 100vh;
width: 100vw;
overflow: hidden;
position: relative;
}
/* ── Layout: Content Area ────────────────────────────────────────────── */
.app-content {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
overflow: hidden;
position: relative;
margin-left: var(--sidebar-w);
}
/* ── Layout: Top Bar (mobile only) ──────────────────────────────────── */
.app-topbar {
display: none;
height: var(--topbar-h);
align-items: center;
padding: 0 16px;
background: rgba(7, 11, 25, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--line);
position: sticky;
top: 0;
z-index: 50;
flex-shrink: 0;
}
@media (max-width: 768px) {
.app-topbar {
display: flex;
}
}
/* ── Layout: Main Content ────────────────────────────────────────────── */
.site-main {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 28px 32px;
background: transparent;
position: relative;
}
@media (max-width: 768px) {
.site-main {
padding: 16px;
padding-bottom: calc(var(--bottom-nav-h, 64px) + var(--safe-area-bottom, 0px) + 16px);
}
}
/* ── Loading State ───────────────────────────────────────────────────── */
.suspend-loading {
display: grid;
place-items: center;
min-height: 50vh;
color: var(--text-dim);
font-size: 13px;
letter-spacing: 0.1em;
}
/* ═══════════════════════════════════════════════════════════════════════
Animations
═══════════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes glowPulse {
0%, 100% {
box-shadow: var(--glow-cyan);
}
50% {
box-shadow: var(--glow-purple);
}
}
@keyframes scanLine {
0% { transform: translateY(-100%); }
100% { transform: translateY(100vh); }
}
@keyframes neonFlicker {
0%, 95%, 100% { opacity: 1; }
96% { opacity: 0.85; }
97% { opacity: 1; }
98% { opacity: 0.9; }
}
@keyframes borderGlow {
0% { border-color: var(--neon-cyan-dim); }
50% { border-color: var(--neon-purple-dim); }
100% { border-color: var(--neon-cyan-dim); }
}
.page-enter {
animation: fadeIn 0.4s var(--ease-out) both;
}
/* ═══════════════════════════════════════════════════════════════════════
Button System
═══════════════════════════════════════════════════════════════════════ */
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
border: 1px solid var(--line);
background: var(--surface-card);
color: var(--text);
font-family: var(--font-body);
font-size: 13px;
font-weight: 500;
letter-spacing: 0.05em;
padding: 9px 20px;
border-radius: 999px;
cursor: pointer;
user-select: none;
white-space: nowrap;
text-decoration: none;
transition:
border-color 0.2s var(--ease-out),
color 0.2s var(--ease-out),
background 0.2s var(--ease-out),
box-shadow 0.2s var(--ease-out),
filter 0.2s var(--ease-out),
transform 0.15s var(--ease-spring);
position: relative;
overflow: hidden;
}
.button:hover {
border-color: var(--line-bright);
color: var(--neon-cyan);
box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}
.button:active {
transform: scale(0.97);
}
/* Primary */
.button.primary {
background: var(--grad-accent);
color: #fff;
border: none;
font-weight: 600;
box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}
.button.primary:hover {
box-shadow: var(--glow-cyan);
filter: brightness(1.1);
color: #fff;
}
/* Ghost */
.button.ghost {
background: transparent;
border-color: transparent;
}
.button.ghost:hover {
background: rgba(255, 255, 255, 0.05);
border-color: var(--line);
color: var(--text-bright);
box-shadow: none;
}
/* Small */
.button.small {
padding: 6px 14px;
font-size: 12px;
}
/* Danger */
.button.danger {
border-color: rgba(239, 68, 68, 0.4);
color: rgba(248, 113, 113, 1);
background: rgba(239, 68, 68, 0.08);
}
.button.danger:hover {
border-color: rgba(239, 68, 68, 0.7);
background: rgba(239, 68, 68, 0.15);
box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
color: rgba(252, 165, 165, 1);
}
/* Disabled */
.button:disabled {
opacity: 0.4;
cursor: not-allowed;
pointer-events: none;
}
/* ═══════════════════════════════════════════════════════════════════════
Dashboard Card / Panel System
═══════════════════════════════════════════════════════════════════════ */
.dash-card {
background: var(--surface-card);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
padding: 20px;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: var(--shadow-card);
position: relative;
overflow: hidden;
transition:
border-color 0.25s var(--ease-out),
box-shadow 0.25s var(--ease-out);
}
/* Top accent line */
.dash-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--grad-accent);
opacity: 0.3;
pointer-events: none;
}
.dash-card:hover {
border-color: rgba(0, 212, 255, 0.15);
box-shadow:
0 8px 40px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(0, 212, 255, 0.05);
}
/* Elevated variant */
.dash-card.raised {
background: var(--surface-raised);
border-color: rgba(255, 255, 255, 0.1);
}
/* Glow variant */
.dash-card.glow {
animation: glowPulse 4s ease-in-out infinite;
}
/* ── Legacy card alias ───────────────────────────────────────────────── */
.card {
background: var(--surface-card);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
padding: 20px;
box-shadow: var(--shadow-card);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
position: relative;
overflow: hidden;
}
.card:hover {
border-color: rgba(0, 212, 255, 0.15);
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(0, 212, 255, 0.05);
}
/* ═══════════════════════════════════════════════════════════════════════
Typography Utilities
═══════════════════════════════════════════════════════════════════════ */
/* Eyebrow / Section label */
.eyebrow {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.26em;
color: var(--neon-cyan);
margin: 0 0 8px;
font-family: var(--font-display);
font-weight: 500;
}
/* Panel title */
.panel-title {
font-family: var(--font-display);
font-size: 16px;
font-weight: 600;
color: var(--text-bright);
letter-spacing: -0.01em;
margin: 0 0 4px;
}
/* Section heading */
.section-heading {
font-family: var(--font-display);
font-size: 22px;
font-weight: 700;
color: var(--text-bright);
letter-spacing: -0.03em;
line-height: 1.2;
}
/* ═══════════════════════════════════════════════════════════════════════
Badge / Chip System
═══════════════════════════════════════════════════════════════════════ */
.badge {
display: inline-flex;
align-items: center;
padding: 3px 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.badge.cyan {
background: var(--neon-cyan-muted);
color: var(--neon-cyan);
border: 1px solid rgba(0, 212, 255, 0.2);
}
.badge.purple {
background: var(--neon-purple-muted);
color: var(--neon-purple);
border: 1px solid rgba(139, 92, 246, 0.2);
}
.badge.green {
background: rgba(52, 211, 153, 0.12);
color: #34d399;
border: 1px solid rgba(52, 211, 153, 0.2);
}
.badge.red {
background: rgba(239, 68, 68, 0.12);
color: #f87171;
border: 1px solid rgba(239, 68, 68, 0.2);
}
.chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 12px;
border-radius: 999px;
font-size: 11px;
letter-spacing: 0.1em;
border: 1px solid var(--line);
color: var(--text-dim);
background: var(--surface-card);
transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover {
border-color: var(--line-bright);
color: var(--neon-cyan);
}
/* ═══════════════════════════════════════════════════════════════════════
Data Display Utilities
═══════════════════════════════════════════════════════════════════════ */
/* Metric / stat number */
.metric-value {
font-family: var(--font-display);
font-size: 28px;
font-weight: 700;
color: var(--text-bright);
letter-spacing: -0.04em;
line-height: 1;
}
.metric-label {
font-size: 12px;
color: var(--text-muted);
letter-spacing: 0.06em;
text-transform: uppercase;
margin-top: 6px;
}
/* Positive / negative indicators */
.pos {
color: #34d399;
}
.neg {
color: #f87171;
}
/* ── Separator / Divider ─────────────────────────────────────────────── */
.divider {
height: 1px;
background: var(--line);
margin: 16px 0;
}
/* ── Gradient text utility ───────────────────────────────────────────── */
.gradient-text {
background: var(--grad-accent);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ═══════════════════════════════════════════════════════════════════════
Grid Utilities
═══════════════════════════════════════════════════════════════════════ */
.dash-grid {
display: grid;
gap: 16px;
}
.dash-grid-2 {
grid-template-columns: repeat(2, 1fr);
}
.dash-grid-3 {
grid-template-columns: repeat(3, 1fr);
}
.dash-grid-4 {
grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
.dash-grid-4 { grid-template-columns: repeat(2, 1fr); }
.dash-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.dash-grid-2,
.dash-grid-3,
.dash-grid-4 {
grid-template-columns: 1fr;
}
}
/* ═══════════════════════════════════════════════════════════════════════
Responsive Mobile
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
body {
overflow: auto;
}
.app-shell {
flex-direction: column;
height: auto;
min-height: 100vh;
}
.app-content {
margin-left: 0;
height: auto;
overflow: visible;
}
.site-main {
overflow: visible;
flex: none;
}
}
/* ── Accessibility: Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}