/*
 * About Page Styles
 * Custom page template with .about-hero-photo structure
 * All colors use CSS variables for dark mode support
 */

/* =============================================
   ABOUT PAGE BASE - Ensure dark mode works
   ============================================= */

body.page-template-page-about,
body.page-template-page-about .site,
body.page-template-page-about .site-content-wrap,
body.page-template-page-about .site-content {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* =============================================
   ABOUT PAGE PROFILE IMAGE
   ============================================= */

/* Profile photo in hero section */
.about-hero-photo img,
.about-hero-photo .profile-photo {
    width: 200px;
    height: 200px;
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-md);
    display: block;
}

/* Desktop: slightly larger */
@media (min-width: 768px) {
    .about-hero-photo img,
    .about-hero-photo .profile-photo {
        width: 250px;
        height: 250px;
        max-width: 250px;
        max-height: 250px;
    }
}

/* =============================================
   ABOUT PAGE LAYOUT
   ============================================= */

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8);
    background-color: var(--background-color);
    color: var(--text-color);
}

.about-page-wrapper {
    width: 100%;
    max-width: 100%;
    float: none;
    margin: 0 auto;
    background-color: var(--background-color);
}

/* Hide sidebar on about page */
.about-page-wrapper + .sidebar,
.about-page-wrapper ~ .sidebar {
    display: none;
}

/* Hero Section */
.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-16) 0;
    gap: var(--space-8);
}

.about-hero-photo {
    flex-shrink: 0;
}

.about-hero-content {
    max-width: 600px;
}

.about-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.about-tagline {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 500;
    margin: 0 0 var(--space-4) 0;
}

.about-short {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* =============================================
   ABOUT PAGE SECTIONS
   ============================================= */

.about-tech,
.about-journey,
.about-credentials,
.about-writing,
.about-connect {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border);
}

.about-tech h2,
.about-journey h2,
.about-credentials h2,
.about-writing h2,
.about-connect h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: var(--space-8);
}

/* =============================================
   PRODUCTS CTA (simple link to /products/)
   ============================================= */

.about-products-cta {
    text-align: center;
    padding: var(--space-12) var(--space-8);
    border-top: 1px solid var(--color-border);
}

.about-products-cta p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.6;
}

.about-products-cta .products-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.about-products-cta .products-link:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* =============================================
   PRODUCT CARDS (kept for reference, unused)
   ============================================= */

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.product-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.product-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 2px;
}

.product-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: var(--space-4);
}

.product-stats {
    display: flex;
    justify-content: space-around;
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-4);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-cta {
    display: block;
    text-align: center;
    padding: 0.75rem var(--space-4);
    background: var(--accent-color);
    color: var(--color-text-inverse);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background 0.2s ease;
}

.product-cta:hover {
    background: var(--hover-color);
    color: var(--color-text-inverse);
}

/* =============================================
   TECH STACK
   ============================================= */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.tech-category {
    background: var(--color-surface-alt);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
}

.tech-category h4 {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem 0;
}

.tech-category p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* =============================================
   TIMELINE
   ============================================= */

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: var(--space-8);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 6px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.timeline-marker.advertising {
    background: var(--primary-color);
}

.timeline-marker.engineering {
    background: var(--accent-color);
}

.timeline-content {
    background: var(--color-surface);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-period {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.timeline-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.timeline-content li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

/* =============================================
   CREDENTIALS
   ============================================= */

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.credential-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.credential-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.credential-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* =============================================
   WRITING & CONNECT
   ============================================= */

.about-writing {
    text-align: center;
}

.writing-intro {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-surface-alt);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: var(--accent-color);
    color: var(--color-text-inverse);
}

.about-connect {
    text-align: center;
}

.connect-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.connect-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4) var(--space-8);
    background: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    min-width: 120px;
}

.connect-link:hover {
    background: var(--accent-color);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
}

.connect-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.connect-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* =============================================
   COMMENTS
   ============================================= */

.about-comments {
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-border);
}

/* =============================================
   LINKS
   ============================================= */

.about-page a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-page a:hover {
    color: var(--hover-color);
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */

@media (min-width: 768px) {
    .about-hero {
        flex-direction: row;
        text-align: left;
        gap: var(--space-16);
    }

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

@media (max-width: 480px) {
    .about-page {
        padding: var(--space-4);
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .product-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .connect-grid {
        gap: 0.5rem;
    }

    .connect-link {
        min-width: 100px;
        padding: var(--space-4);
    }

    .tech-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}
