/* Author Info Styles */

/* Three-column layout container */
.page-layout {
    display: grid;
    grid-template-columns: 400px 800px 1fr;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Author info column */
.author-info {
    grid-column: 1;
    width: 100%;
    min-width: 400px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    color: #666;
    border-right: 1px solid #ddd;
    padding: 20px;
    padding-top: 225px;
    top: 20px;
    height: fit-content;
    align-self: start;
    box-sizing: border-box;
}

/* Article column */
.markdownBody {
    grid-column: 2;
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Buffer column */
.buffer-column {
    grid-column: 3;
    width: 100%;
}

.author-photo {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5em;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.author-photo:hover {
    filter: grayscale(0%);
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--GW-body-text-color);
    margin-bottom: 0.25em;
    font-size: 1.25em;
}

.author-info .author-bio {
    font-size: 0.85em !important;
    line-height: 1.4 !important;
    margin: 0.5em auto 1em auto !important;
    font-weight: 300 !important;
    text-indent: 0 !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 325px;
    text-align: left;
}

.social-container {
    margin-top: 1.5em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1em;
    padding-inline-start: 0;
}

.social-icons li {
    display: inline-block;
}


.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    color: #666 !important;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.social-icons a:hover {
    background-color: #ff6b35;
    color: white !important;
    transform: translateY(-2px);
}

/* Position relative container for first paragraph */
.markdownBody p.first-graf {
    position: relative;
}

/* Mobile author info display rules */
@media all and (max-width: 1199px) {
    .author-info-mobile {
        display: block !important;
    }
}

@media all and (min-width: 1200px) {
    .author-info-mobile {
        display: none !important;
    }
}

/* Medium screens - adjust layout */
@media all and (max-width: 1399px) and (min-width: 1200px) {
    .page-layout {
        grid-template-columns: 400px 800px 0;
    }
    
    .buffer-column {
        display: none;
    }
}

/* Show author info at end on smaller screens */
@media all and (max-width: 1199px) {
    /* Switch to single column layout */
    .page-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Hide the sidebar author info */
    .author-info {
        display: none;
    }
    
    /* Article takes full width */
    .markdownBody {
        grid-column: 1;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* For very small screens, article takes full width */
    @media all and (max-width: 799px) {
        .markdownBody {
            max-width: 100%;
            margin: 0;
            padding: 0 15px;
            box-sizing: border-box;
            width: 100%;
        }
    }
    
    /* Hide buffer column */
    .buffer-column {
        display: none;
    }
    
    /* Style the mobile author info */
    .author-info-mobile {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        border-right: none !important;
        padding: 2em 20px !important;
        margin-top: 3em !important;
        text-align: center !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 1em !important;
        color: #666 !important;
        display: block !important;
    }
    
    .author-info-mobile .author-photo {
        max-width: 200px;
        filter: grayscale(100%);
        transition: filter 0.3s ease;
    }
    
    .author-info-mobile .author-photo:hover {
        filter: grayscale(0%);
    }
    
    .author-info-mobile .author-name {
        display: block;
        font-weight: 600;
        color: var(--GW-body-text-color);
        margin-bottom: 0.25em;
        font-size: 1.1em;
    }
}
