/* ===========================================
   MOBILE LAYOUT - About Page
   Only applies on screens <= 768px
   Matches the mobile design system
   =========================================== */

/* Hide mobile layout on desktop by default */
.mobile-about {
    display: none;
}

/* =========================================== 
   MOBILE STYLES - Active on small screens
   =========================================== */
@media (max-width: 768px) {

    /* Override body padding */
    body {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Show mobile container */
    .mobile-about {
        display: block;
        min-height: 100vh;
        background: #f8f9fa;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    }

    /* Mobile Header */
    .mobile-about-header {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 1px solid #dee2e6;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .mobile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #fff;
        color: #0070f3;
        text-decoration: none;
        font-size: 18px;
        line-height: 1;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.2s;
    }

    .mobile-back-btn:hover,
    .mobile-back-btn:active {
        background: #0070f3;
        color: #fff;
    }

    .mobile-about-title {
        font-size: 18px;
        font-weight: 600;
        color: #212529;
    }

    .mobile-header-spacer {
        width: 36px;
    }

    /* Content */
    .mobile-about-content {
        padding: 20px 16px;
    }

    .mobile-about-section {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .mobile-about-section h1 {
        font-size: 22px;
        font-weight: 600;
        color: #212529;
        margin: 0 0 16px;
        line-height: 1.3;
    }

    .mobile-about-section h2 {
        font-size: 18px;
        font-weight: 600;
        color: #212529;
        margin: 0 0 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #0070f3;
    }

    .mobile-about-section p {
        font-size: 15px;
        color: #495057;
        line-height: 1.6;
        margin: 0 0 12px;
    }

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

    .mobile-about-section a {
        color: #0070f3;
        text-decoration: none;
    }

    .mobile-about-section a:active {
        text-decoration: underline;
    }

    /* Contact Card */
    .mobile-contact-card {
        background: #e7f5ff;
        border-radius: 10px;
        padding: 16px;
        margin-top: 12px;
    }

    .mobile-contact-label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .mobile-contact-value {
        display: block;
        font-size: 16px;
        color: #0070f3;
        text-decoration: none;
        font-weight: 500;
    }

    /* Footer */
    .mobile-about-footer {
        padding: 20px 16px 32px;
        text-align: center;
        border-top: 1px solid #e9ecef;
        background: #fff;
    }

    .mobile-about-footer a {
        color: #0070f3;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
    }

    .mobile-about-footer a:active {
        text-decoration: underline;
    }
}

/* =========================================== 
   DARK MODE - Mobile About
   =========================================== */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .mobile-about {
        background: #121212;
    }

    .mobile-about-header {
        background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
        border-bottom-color: #333;
    }

    .mobile-back-btn {
        background: #333;
        color: #4a9eff;
    }

    .mobile-back-btn:hover,
    .mobile-back-btn:active {
        background: #0070f3;
        color: #fff;
    }

    .mobile-about-title {
        color: #f5f5f5;
    }

    .mobile-about-section {
        background: #1e1e1e;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .mobile-about-section h1,
    .mobile-about-section h2 {
        color: #f5f5f5;
    }

    .mobile-about-section h2 {
        border-bottom-color: #4a9eff;
    }

    .mobile-about-section p {
        color: #adb5bd;
    }

    .mobile-about-section a {
        color: #4a9eff;
    }

    .mobile-contact-card {
        background: #252525;
    }

    .mobile-contact-label {
        color: #868e96;
    }

    .mobile-contact-value {
        color: #4a9eff;
    }

    .mobile-about-footer {
        background: #1e1e1e;
        border-top-color: #333;
    }

    .mobile-about-footer a {
        color: #4a9eff;
    }
}