/**
 * About Page Styles
 *
 * Conditionally loaded on page-about.php only.
 *
 * @package Cyber_Crayon
 */

/* ========================================
   11. About Page - Terminal Theme
   ======================================== */

.lc-about-page {
    max-width: var(--lc-max);
    margin: 0 auto;
    /* padding: calc(var(--lc-hero-min-height) + 40px) var(--lc-space) var(--lc-space); */
}

/* --- Terminal Window Component --- */
.lc-terminal {
    background: var(--lc-terminal-bg);
    border: 1px solid var(--lc-terminal-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(74, 108, 244, 0.08);
    font-family: var(--lc-font-mono);
}

.lc-about-page .lc-terminal {
    background: var(--lc-glass);
}

.lc-terminal__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--lc-terminal-header);
    border-bottom: 1px solid var(--lc-terminal-border);
}

.lc-about-page .lc-terminal__header {
    background: var(--lc-glass);
}

.lc-terminal__dots {
    display: flex;
    gap: 6px;
}

.lc-terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.lc-terminal__dot--red { background: var(--lc-terminal-dot-red); }
.lc-terminal__dot--yellow { background: var(--lc-terminal-dot-yellow); }
.lc-terminal__dot--green { background: var(--lc-terminal-dot-green); }

.lc-terminal__title {
    font-size: 0.75rem;
    color: var(--lc-neutral);
    margin-left: 6px;
}

.lc-terminal__body {
    padding: 16px 20px;
    min-height: 120px;
}

.lc-terminal__line {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--lc-terminal-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.lc-terminal__line--prompt {
    color: var(--lc-terminal-prompt);
    font-weight: 500;
}

.lc-terminal__line--comment {
    color: var(--lc-terminal-comment);
}

.lc-terminal__line--output {
    color: var(--lc-neutral);
}

.lc-terminal__cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--lc-terminal-cursor);
    animation: lc-cursor-blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes lc-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.lc-terminal__body .lc-terminal__line--hidden {
    display: none;
}

/* --- Hero Section --- */
.lc-about-hero {
    padding: 5rem 0;
    border-bottom: 1px solid var(--lc-border-divider);
}

.lc-about-hero__container {
    max-width: var(--lc-max);
    margin: 0 auto;
    text-align: center;
}

.lc-about-hero__avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--lc-border);
}

.lc-about-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-about-hero__avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lc-font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--lc-primary);
    background: var(--lc-surface-low);
}

.lc-about-hero__title {
    font-family: var(--lc-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lc-on-surface);
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}

.lc-about-hero__title::before {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--lc-font-display);
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--lc-on-surface);
    opacity: 0.05;
    z-index: -1;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.04em;
    pointer-events: none;
    transform: translate(-50%, -50%) translate(
        calc(var(--lc-about-title-bg-offset-x, 0px) * 0.7),
        calc(var(--lc-about-title-bg-offset-y, 0px) * 0.5)
    );
}

.lc-about-hero__desc {
    font-size: 1.125rem;
    color: var(--lc-neutral);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.lc-about-hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.lc-about-hero__stat {
    text-align: center;
}

.lc-about-hero__stat-value {
    display: block;
    font-family: var(--lc-font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lc-primary);
}

.lc-about-hero__stat-label {
    display: block;
    font-family: var(--lc-font-mono);
    font-size: 0.75rem;
    color: var(--lc-neutral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.lc-about-hero__focus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.lc-about-hero__focus-item {
    padding: 0.35rem 1rem;
    border: 1px solid var(--lc-border);
    border-radius: 2rem;
    font-family: var(--lc-font-mono);
    font-size: 0.8125rem;
    color: var(--lc-neutral);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lc-about-hero__focus-item:hover {
    border-color: var(--lc-primary);
    color: var(--lc-primary);
}

.lc-about-hero__bio {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lc-on-surface);
}

.lc-about-hero__bio p {
    margin: 0.75rem 0;
}

/* Whoami output row */
.lc-terminal__whoami {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.lc-terminal__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--lc-terminal-border);
    background: var(--lc-glass);
}

.lc-terminal__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-terminal__avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lc-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--lc-primary);
    background: var(--lc-terminal-header);
}

.lc-terminal__name {
    font-family: var(--lc-font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--lc-terminal-text);
}

/* --- Bio Section --- */
.lc-about-section {
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lc-about-section > * {
    width: 100%;
}

.lc-about-section__container {
    max-width: var(--lc-max);
    margin: 0 auto;
}

.lc-about-section__title {
    font-family: var(--lc-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lc-on-surface);
    margin: 0 0 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.lc-about-section__title.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.lc-about-section__title::before {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: var(--lc-font-display);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--lc-on-surface);
    opacity: 0;
    z-index: -1;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.04em;
    pointer-events: none;
    will-change: transform;
    transition: opacity 0.7s ease-out;
    transform: translate(-50%, -50%) translate(0, 0);
}

.lc-about-section__title.is-revealed::before {
    opacity: 0.05;
}

.lc-about-section__title[data-title]::before {
    transform: translate(-50%, -50%) translate(
        calc(var(--lc-about-title-bg-offset-x) * 0.7),
        calc(var(--lc-about-title-bg-offset-y) * 0.5)
    );
}

.lc-about-section__title--terminal {
    font-family: var(--lc-font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--lc-terminal-prompt);
    text-align: left;
    margin-bottom: 1rem;
}

.lc-about-section__title--terminal::before {
    content: '$ ';
}

.lc-about-section__footer {
    text-align: center;
    margin-top: 2rem;
}

.lc-about-section__subtitle {
    text-align: center;
    font-family: var(--lc-font-mono);
    font-size: 0.875rem;
    color: var(--lc-neutral);
    margin: -1rem 0 1.5rem;
}

/* --- GitHub Section --- */
.lc-about-github__notice {
    margin: 0 0 0.75rem;
    font-family: var(--lc-font-mono);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--lc-neutral);
    text-align: center;
}

.lc-about-github__graph {
    background: var(--lc-glass);
    border: 1px solid var(--lc-border-divider);
    border-radius: var(--lc-radius-xl);
    padding: 1.25rem;
}

.lc-about-github__card {
    overflow: hidden;
    /* border: 1px solid var(--lc-border-divider); */
    border-radius: var(--lc-radius);
    /* background: var(--lc-surface); */
}

.lc-about-github__body {
    position: relative;
    /* padding: 0.75rem 0.75rem 0.5rem; */
}

.lc-about-github__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.lc-about-github__chart {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.lc-about-github__day-label,
.lc-about-github__month-label {
    fill: var(--lc-neutral);
    font-family: var(--lc-font-mono);
    font-size: 9px;
}

.lc-about-github__cell {
    fill: color-mix(in srgb, var(--lc-on-surface) 14%, var(--lc-surface-low));
}

.lc-about-github__cell--l1 {
    fill: color-mix(in srgb, var(--lc-terminal-dot-green) 38%, var(--lc-surface));
}

.lc-about-github__cell--l2 {
    fill: color-mix(in srgb, var(--lc-terminal-dot-green) 58%, var(--lc-surface));
}

.lc-about-github__cell--l3 {
    fill: color-mix(in srgb, var(--lc-terminal-dot-green) 80%, var(--lc-surface-low));
}

.lc-about-github__cell--l4 {
    fill: var(--lc-terminal-dot-green);
}

.lc-about-github__cell.is-active,
.lc-about-github__cell:hover {
    stroke: var(--lc-on-surface);
    stroke-width: 1.5;
}

.lc-about-github__tip {
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--lc-border-divider);
    border-radius: 8px;
    background: var(--lc-glass-strong);
    box-shadow: var(--lc-shadow-sm);
    color: var(--lc-on-surface);
    font-family: var(--lc-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
}

.lc-about-github__tip[hidden] {
    display: none;
}

.lc-about-github__skeleton .lc-about-github__body {
    min-height: 7rem;
}

.lc-about-github__skeleton-bar {
    display: block;
    height: 1.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--lc-terminal-dot-green) 22%, var(--lc-surface-low));
    animation: lc-github-skeleton 1.4s ease-in-out infinite;
}

.lc-about-github__skeleton-bar:last-child {
    width: 62%;
    margin-bottom: 0;
}

@keyframes lc-github-skeleton {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lc-about-github__skeleton,
    .lc-about-github__skeleton-bar {
        animation: none !important;
    }
}

/* --- Projects Section --- */
.lc-about-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1023px) {
    .lc-about-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .lc-about-projects {
        grid-template-columns: 1fr;
    }
}

.lc-about-project {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--lc-border-divider);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lc-about-project:hover {
    border-color: var(--lc-primary);
    box-shadow: 0 0 0 1px var(--lc-primary);
}

.lc-about-project__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--lc-surface-low);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-about-project__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-about-project__fallback {
    font-family: var(--lc-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--lc-primary);
}

.lc-about-project__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lc-about-project__name {
    font-family: var(--lc-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lc-on-surface);
}

.lc-about-project__desc {
    font-family: var(--lc-font-body);
    font-size: 0.8125rem;
    color: var(--lc-neutral);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Contact Section --- */
.lc-about-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.lc-about-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--lc-border-divider);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lc-about-contact__link:hover {
    border-color: var(--lc-primary);
    box-shadow: 0 0 0 1px var(--lc-primary);
}

.lc-about-contact__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--lc-neutral);
}

.lc-about-contact__icon svg {
    width: 100%;
    height: 100%;
    /* fill: currentColor; */
}

.lc-about-contact__label {
    font-family: var(--lc-font-body);
    font-size: 0.875rem;
    color: var(--lc-on-surface);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    /* .lc-about-page {
        padding-top: calc(var(--lc-hero-min-height) + 20px);
    } */

    .lc-about-hero {
        padding: 3rem 0;
    }

    .lc-about-hero__avatar {
        width: 100px;
        height: 100px;
    }

    .lc-about-hero__title {
        font-size: 1.75rem;
    }

    .lc-about-hero__stats {
        gap: 2rem;
    }

    .lc-about-hero__stat-value {
        font-size: 1.5rem;
    }

    .lc-terminal__body {
        padding: 12px 14px;
        min-height: 100px;
    }

    .lc-terminal__avatar {
        width: 28px;
        height: 28px;
    }

    .lc-terminal__name {
        font-size: 1rem;
    }

    .lc-terminal__line {
        font-size: 0.8125rem;
    }

    .lc-about-section {
        padding: 3rem 0;
    }

    .lc-about-section__title {
        font-size: 1.5rem;
    }

    .lc-about-project {
        padding: 0.625rem 0.75rem;
    }

    .lc-about-project__icon {
        width: 40px;
        height: 40px;
    }

    .lc-about-project__name {
        font-size: 0.9375rem;
    }

    .lc-about-contact {
        gap: 0.5rem;
    }

    .lc-about-contact__link {
        padding: 0.5rem 0.75rem;
    }

    .lc-about-contact__link {
        grid-template-columns: 16px 70px auto;
    }

    .lc-about-github__graph {
        padding: 0.75rem;
    }
}


    12. Chart Sections
    ======================================== */

.lc-chart-wrap {
    position: relative;
    width: 100%;
    max-height: 280px;
    margin-top: 1.5rem;
}

.lc-chart-wrap canvas {
    width: 100% !important;
    max-height: 280px;
}

.lc-chart-placeholder {
    text-align: center;
    color: var(--lc-neutral);
    font-family: var(--lc-font-mono);
    font-size: 0.875rem;
    padding: 3rem 1rem;
    opacity: 0.7;
}

.lc-about-section--posts-chart,
.lc-about-section--views-chart {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 767px) {
    .lc-chart-wrap {
        max-height: 220px;
    }

    .lc-chart-wrap canvas {
        max-height: 220px;
    }

    .lc-about-section--posts-chart,
    .lc-about-section--views-chart {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Background Title Effect */
.lc-about-page {
    position: relative;
    /* overflow: hidden; */
    --lc-about-title-bg-offset-x: 0px;
    --lc-about-title-bg-offset-y: 0px;
}
