/* ============================================================
   Personal ("life") section - modern redesign
   Mirrors the academic aesthetic but with the orange accent
   that distinguishes life from work. Self-contained; layered
   on top of style_personal.css (which styles the header/nav).
   ============================================================ */

:root {
    --p-accent: #f09d51;
    --p-accent-soft: rgba(240, 157, 81, 0.15);
    --p-accent-line: rgba(240, 157, 81, 0.35);
    --p-card: rgba(255, 255, 255, 0.03);
    --p-card-hover: rgba(240, 157, 81, 0.06);
    --p-border: rgba(255, 255, 255, 0.08);
    --p-muted: #8892b0;
    --p-text: #ccd6f6;
}

.p-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 6rem 6vw 3rem;
}

/* ---------- hero ---------- */
.p-hero {
    margin-bottom: 4rem;
}

.p-eyebrow {
    color: var(--p-accent);
    font-family: 'PT Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.12rem;
    margin-bottom: 0.6rem;
}

.p-name {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.2rem;
    margin-bottom: 0.8rem;
}

.p-name h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.02;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.p-name h1:hover {
    color: var(--p-accent);
}

.p-role {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--p-muted);
    margin-bottom: 1.6rem;
}

.p-role .accent {
    color: var(--p-accent);
}

/* ---------- chips ---------- */
.p-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.p-chip {
    font-size: 0.9rem;
    color: var(--p-text);
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.p-chip:hover {
    transform: translateY(-3px);
    color: var(--p-accent);
    border-color: var(--p-accent-line);
    background: var(--p-accent-soft);
}

/* ---------- actions ---------- */
.p-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.p-actions .btn-resume {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    background: var(--p-accent);
    color: #1a0f04;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.p-actions .btn-resume:hover {
    transform: translateY(-3px);
    background: #ffb877;
}

.p-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.p-social a {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.p-social a:hover {
    transform: translateY(-3px);
}

.p-social img {
    width: 1.6rem;
    height: 1.6rem;
}

/* ---------- section headers ---------- */
.p-h2 {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 1.7rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.8rem;
}

.p-h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--p-border), transparent);
    margin-left: 0.5rem;
    align-self: center;
}

.p-h2-accent {
    color: var(--p-accent);
    font-family: 'PT Mono', monospace;
    font-size: 1.1rem;
    font-weight: 400;
}

.p-section {
    margin-bottom: 4rem;
}

/* ---------- about card ---------- */
.p-about {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: 18px;
    padding: 2rem;
}

.p-about-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--p-accent-line);
    filter: grayscale(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.p-about-photo:hover {
    filter: grayscale(0);
    transform: scale(1.02);
}

.p-about-text p {
    color: var(--p-muted);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
}

.p-about-text a {
    color: var(--p-text);
    border-bottom: 1px dashed var(--p-accent-line);
    transition: color 0.2s ease;
}

.p-about-text a:hover {
    color: var(--p-accent);
}

/* ---------- quick links ---------- */
.p-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.p-ql-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.p-ql-card:hover {
    transform: translateY(-5px);
    border-color: var(--p-accent-line);
    background: var(--p-card-hover);
}

.p-ql-num {
    font-family: 'PT Mono', monospace;
    font-size: 0.8rem;
    color: var(--p-accent);
}

.p-ql-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
}

.p-ql-desc {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--p-muted);
}

.p-ql-arrow {
    margin-top: 0.4rem;
    color: var(--p-accent);
    font-size: 0.9rem;
}

/* ---------- generic hobby cards ---------- */
.p-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.p-card {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-left: 3px solid var(--p-accent);
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.p-card:hover {
    transform: translateY(-4px);
    background: var(--p-card-hover);
    border-color: var(--p-accent-line);
    border-left-color: var(--p-accent);
}

.p-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.4rem;
}

.p-card-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--p-muted);
    line-height: 1.55;
}

/* ---------- video cards ---------- */
.p-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
}

.p-video-card {
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.p-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--p-accent-line);
    background: var(--p-card-hover);
}

.p-video-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--p-border);
}

.p-video-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.6rem;
    align-items: center;
}

.p-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.p-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.p-video-desc {
    color: var(--p-muted);
    font-weight: 300;
    font-size: 0.98rem;
    line-height: 1.65;
}

.p-video-desc .accent {
    color: var(--p-accent);
    font-weight: 500;
}

/* ---------- coming-soon note ---------- */
.p-note {
    background: var(--p-card);
    border: 1px dashed var(--p-accent-line);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--p-muted);
    font-weight: 300;
    font-size: 1.1rem;
}

.p-note .accent {
    color: var(--p-accent);
    font-family: 'PT Mono', monospace;
    display: block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
}

/* ---------- footer ---------- */
.p-footer {
    border-top: 1px solid var(--p-border);
    padding: 2.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: static;
    min-width: 0;
}

.p-footer .foot-social {
    display: flex;
    gap: 1.2rem;
}

.p-footer .foot-social img {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s ease;
}

.p-footer .foot-social a:hover img {
    transform: translateY(-3px);
}

.p-footer .foot-copy {
    color: #55617d;
    font-size: 0.8rem;
}

/* ---------- responsive ---------- */
@media only screen and (max-width: 820px) {
    .p-quicklinks {
        grid-template-columns: 1fr;
    }

    .p-about {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .p-about-photo {
        max-width: 220px;
    }

    .p-video-body {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 576px) {
    .p-wrap {
        padding-top: 5rem;
    }
}
