/* =============================================
   INFOGRAPHIC WEB — Dashboard Styles
   ============================================= */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --border-card: #2a3142;

    --text-primary: #f0f6fc;
    --text-secondary: #b1bac4;
    --text-muted: #8b949e;

    --accent-blue: #58a6ff;
    --accent-highlight: #79c0ff;

    --max-width: 720px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 80px 24px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-blue);
    border: 1.5px solid var(--accent-blue);
    border-radius: 100px;
    padding: 5px 18px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.15s forwards;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* ---- Search ---- */
.search-bar {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto 32px;
    padding: 0 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.45s forwards;
}

.search-icon {
    position: absolute;
    margin-left: 14px;
    color: var(--text-muted);
    font-size: 22px;
    pointer-events: none;
}

#search-input {
    width: 100%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px 16px 14px 48px;
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search-input::placeholder {
    color: var(--text-muted);
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

/* ---- Page List ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 14px;
}

/* ---- Page Card ---- */
.page-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.page-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.card-icon {
    font-size: 28px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.card-text {
    min-width: 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-path {
    font-size: 13px;
    color: var(--text-muted);
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
}

.card-arrow {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-card:hover .card-arrow {
    color: var(--accent-blue);
    transform: translateX(3px);
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border-card);
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Animations ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .hero {
        padding: 48px 16px 24px;
    }

    .search-bar {
        padding: 0 16px;
    }

    .container {
        padding: 0 16px 40px;
    }

    .page-card {
        padding: 16px 18px;
    }

    .card-title {
        font-size: 14px;
    }
}
