/* ═══════════════════════════════════════════════════════════════════════
   Home Page — Dashboard Style
   ═══════════════════════════════════════════════════════════════════════ */

.home {
    display: grid;
    gap: 32px;
    animation: fadeIn 0.4s var(--ease-out) both;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 24px;
    align-items: stretch;
}

.home-hero__kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--neon-cyan);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
}

.home-hero__kicker::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--neon-cyan);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--neon-cyan);
}

.home-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    margin: 0 0 16px;
    line-height: 1.2;
    color: var(--text-bright);
    letter-spacing: -0.03em;
}

.home-hero__lead {
    color: var(--text-dim);
    line-height: 1.75;
    margin: 0 0 24px;
    font-size: 14px;
}

.home-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Hero Card ───────────────────────────────────────────────────────── */

.home-hero__card {
    background: var(--surface-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-hero__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-accent);
    opacity: 0.5;
}

.home-hero__card-eyebrow {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.home-hero__card-body h2 {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.home-hero__card-body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
}

.home-hero__stats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.stat-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.stat-value {
    margin: 5px 0 0;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-bright);
    line-height: 1;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.stat-unit {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    margin-left: 2px;
}

.stat-value--sm {
    font-size: 15px;
}

/* ── Section Header ──────────────────────────────────────────────────── */

.home-section__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.home-section__header h2 {
    margin: 0;
    font-size: clamp(17px, 2vw, 22px);
    font-family: var(--font-display);
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.home-section__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Navigation Cards Grid ───────────────────────────────────────────── */

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.home-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform 0.22s var(--ease-out),
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.home-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 0%,
        rgba(var(--card-accent-rgb, 0, 212, 255), 0.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.home-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow:
        var(--shadow-md),
        0 0 0 1px rgba(0, 212, 255, 0.08);
}

.home-card:hover::before {
    opacity: 0.6;
}

.home-card:hover::after {
    opacity: 1;
}

.home-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    flex-shrink: 0;
    transition: transform 0.22s var(--ease-spring);
    color: var(--neon-cyan);
}

.home-card:hover .home-card__icon {
    transform: scale(1.1) rotate(-4deg);
}

.home-card__body {
    flex: 1;
}

.home-card__title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 5px;
    color: var(--text-bright);
    letter-spacing: -0.01em;
}

.home-card__desc {
    margin: 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.6;
}

.home-card__arrow {
    font-size: 16px;
    color: var(--neon-cyan);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    align-self: flex-end;
}

.home-card:hover .home-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Blog Posts ──────────────────────────────────────────────────────── */

.home-posts {
    display: grid;
    gap: 8px;
}

.home-post {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-card);
}

.home-post:hover {
    border-color: rgba(192, 132, 252, 0.25);
    background: var(--surface-raised);
    transform: translateX(4px);
}

.home-post__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-purple);
    box-shadow: 0 0 6px var(--neon-purple);
    margin-top: 7px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.home-post:hover .home-post__dot {
    opacity: 1;
}

.home-post__content {
    display: grid;
    gap: 5px;
}

.home-post__title {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-bright);
    letter-spacing: -0.01em;
}

.home-post__excerpt {
    margin: 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.6;
}

.home-post__meta {
    font-size: 11px;
    color: var(--neon-purple-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    padding-top: 4px;
}

/* ── TODO Board ──────────────────────────────────────────────────────── */

.home-todo-wrapper {
    position: relative;
}

.home-todo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-bright);
    background: var(--surface-raised);
    color: var(--text-bright);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-md);
}

.home-todo-nav:hover {
    background: var(--bg-tertiary);
    border-color: var(--neon-cyan);
}

.home-todo-nav--left  { left: -16px; }
.home-todo-nav--right { right: -16px; }

.home-todo-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding-bottom: 4px;
}

.home-todo-board::-webkit-scrollbar {
    height: 4px;
}

.home-todo-board::-webkit-scrollbar-track {
    background: transparent;
}

.home-todo-board::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 2px;
}

.home-todo-col {
    flex: 1 0 260px;
    min-width: 0;
    max-width: 340px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.home-todo-col__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.home-todo-col__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-todo-col__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-display);
    flex: 1;
}

.home-todo-col__count {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 7px;
    font-family: var(--font-display);
}

.home-todo-col__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(40vh);
    min-height: 60px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.home-todo-col__body::-webkit-scrollbar {
    width: 3px;
}

.home-todo-col__body::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 2px;
}

.home-todo-col__empty {
    margin: auto;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 16px 0;
}

.home-todo-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 4px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-todo-card:hover {
    border-color: rgba(0, 212, 255, 0.18);
    background: rgba(0, 212, 255, 0.03);
}

.home-todo-card__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.home-todo-card__desc {
    margin: 0;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-todo-card__date {
    margin: 2px 0 0;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.home-todo-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.home-todo-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #34d399;
    text-decoration: none;
    padding: 6px 0;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.home-todo-footer__link:hover {
    opacity: 0.75;
}

/* ── Profile ─────────────────────────────────────────────────────────── */

.home-profile {
    display: grid;
}

.home-profile__card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: var(--surface-card);
    display: grid;
    gap: 18px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.home-profile__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-accent);
    opacity: 0.3;
}

.home-profile__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.2),
        0 0 12px rgba(0, 212, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.home-profile__role {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--neon-cyan);
    font-family: var(--font-display);
}

.home-profile__name {
    margin: 4px 0 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.home-profile__bio {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.75;
    font-size: 13px;
}

.home-profile__timeline {
    display: grid;
    gap: 10px;
}

.home-profile__section-title {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--neon-cyan);
    font-family: var(--font-display);
}

.home-profile__timeline ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.home-profile__timeline li {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-profile__timeline li:hover {
    border-color: rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.03);
}

.timeline-period {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.home-profile__timeline strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
}

.home-profile__timeline span:not(.timeline-period) {
    font-size: 12px;
    color: var(--text-dim);
}

.home-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-profile__tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.home-profile__tags span:hover {
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--neon-cyan);
}

.home-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero__card {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .home {
        gap: 24px;
    }

    .home-todo-col {
        flex: 0 0 80vw;
        max-width: 80vw;
    }

    .home-todo-col__body {
        max-height: 30vh;
    }

    .home-todo-nav {
        display: none;
    }

    .home-hero h1 {
        font-size: clamp(22px, 6vw, 32px);
    }

    .home-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .home-card {
        padding: 14px;
        gap: 10px;
    }

    .home-card__icon {
        width: 34px;
        height: 34px;
    }

    .home-card__title {
        font-size: 13px;
    }

    .home-card__desc {
        font-size: 11px;
    }

    .home-post {
        padding: 12px 14px;
        grid-template-columns: auto 1fr;
        gap: 10px;
    }

    .home-post__meta {
        grid-column: 2;
    }

    .home-post__title {
        font-size: 14px;
    }

    .home-profile__card {
        padding: 18px;
    }

    .home-profile__name {
        font-size: 16px;
    }

    .home-hero__stats {
        grid-template-columns: 1fr;
    }

    .home-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .home-card {
        min-height: 80px;
    }

    .home-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home-grid {
        grid-template-columns: 1fr 1fr;
    }
}
