/*
 * About Page — Extreme Redesign 2026
 */

/* ============================================
   RESET PAGE CHROME
   ============================================ */
.layout-page .site-content .container > header.mainheading,
.layout-page .site-content .container > .mainheading {
    display: none;
}

.layout-page .section-title {
    display: none;
}

.layout-page .article-post {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
}

.layout-page .jumbotron.fortags {
    display: none;
}

/* Break out of container */
.layout-page .container > main.main-content {
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

/* ============================================
   HERO
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 50%, #e8ecf1 100%);
    padding: 4rem 1.5rem 3rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.about-hero-inner {
    max-width: 740px;
    margin: 0 auto;
    position: relative;
}

.about-hero-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Avatar */
.about-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.about-avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border: 3px solid #f0f4f8;
    border-radius: 50%;
}

/* Info */
.about-name {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #0f172a;
    margin: 0 0 0.15rem;
    line-height: 1.1;
}

.about-role {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #d97706;
    margin: 0 0 0.3rem;
}

.about-tagline {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 1rem;
}

/* Social buttons */
.about-social {
    display: flex;
    gap: 0.5rem;
}

.about-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.about-social-btn:hover {
    background: #fef3c7;
    border-color: #fde68a;
    color: #d97706;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================
   STATS BAR
   ============================================ */
.about-stats {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 0 1.5rem;
}

.about-stats-inner {
    max-width: 740px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.about-stat {
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
}

.about-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #e2e8f0;
}

.about-stat-num {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-stat-label {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* ============================================
   BODY
   ============================================ */
.about-body {
    background: #fff;
    padding: 3rem 1.5rem;
}

.about-body-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Grid layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   CARDS
   ============================================ */
.about-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2rem;
    position: relative;
    transition: box-shadow 0.2s;
}

.about-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-card-sm {
    padding: 1.5rem;
}

.about-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #d97706;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.about-card h2 {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.about-card h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.about-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   TOPICS
   ============================================ */
.about-topics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-topic {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.15s;
}

.about-topic:hover {
    background: #fffbeb;
    border-color: #fde68a;
}

.about-topic-badge {
    flex-shrink: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d97706;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 3px 10px;
    border-radius: 6px;
    min-width: 65px;
    text-align: center;
}

.about-topic p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* ============================================
   EXTERNAL LINKS
   ============================================ */
.about-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-ext-link {
    display: block;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s;
}

.about-ext-link:hover {
    background: #fffbeb;
    border-color: #fde68a;
    text-decoration: none;
    transform: translateX(4px);
}

.about-ext-title {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.about-ext-link:hover .about-ext-title {
    color: #d97706;
}

.about-ext-source {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ============================================
   TOOLS
   ============================================ */
.about-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.about-tool {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    transition: all 0.15s;
}

.about-tool:hover {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

/* ============================================
   LATEST POSTS SECTION
   ============================================ */
.about-latest {
    background: #f8fafc;
    padding: 3rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.about-latest-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section-title {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin: 0 0 1.5rem;
}

.about-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.about-post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}

.about-post-card:hover {
    border-color: #fde68a;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.about-post-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.about-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.about-post-card:hover .about-post-img {
    transform: scale(1.03);
}

.about-post-info {
    padding: 1rem 1.15rem 1.15rem;
}

.about-post-date {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-post-title {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 650;
    color: #1e293b;
    line-height: 1.35;
    margin: 0.35rem 0 0;
    letter-spacing: -0.01em;
}

.about-post-card:hover .about-post-title {
    color: #d97706;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        flex-direction: row;
        gap: 1rem;
    }

    .about-sidebar .about-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 2.5rem 1.5rem 2rem;
    }

    .about-hero-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .about-hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-social {
        justify-content: center;
    }

    .about-name {
        font-size: 2rem;
    }

    .about-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat:nth-child(2)::after {
        display: none;
    }

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

    .about-sidebar {
        flex-direction: column;
    }

    .about-topic {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-topic-badge {
        align-self: flex-start;
    }
}
