/*
 Theme Name:   WAAA Theme
 Theme URI:    https://waaa.com.au
 Author:       Andy Burns
 Author URI:   https://scottaussie.com
 Description:  A custom child theme for the WAAA website, based on the Frost Framework.
 Template:     frost
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  waaa-theme
*/

/* Our custom styles will go below this line */

/*
 * Author Box Styling
 * This CSS corresponds to the structure in waaa-theme/blocks/author-box/block.php
 */

.author-box-wrapper {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 25px; /* Space between image and content */
    background-color: var(--wp--preset--color--neutral);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.author-box-image {
    flex: 0 0 120px; /* Allocate a fixed 120px space, don't shrink */
}

.author-box-image img {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid var(--wp--preset--color--primary);
}

.author-box-content {
    flex-grow: 1; /* Allows content to take up all remaining space */
    min-width: 0;
}

/* NEW: Styles for the header containing 'Written By' and the name */
.author-box-header {
    display: flex;
    align-items: baseline; /* Aligns the bottom of the text nicely */
    gap: 0.5em; /* Small space between "Written By" and the name */
    margin-bottom: 5px; /* Space below the header line */
}

/* NEW: Style for the "Written By" text */
.author-box-byline {
    font-family: 'Aleo', serif;
    font-size: 1em;
    font-weight: 400; /* Regular weight */
    color: #555;
    white-space: nowrap; /* Prevents it from wrapping */
}

.author-box-name {
    font-family: "Aleo", serif;
    font-size: 1em;
    font-weight: 400; /* Regular weight */
    margin: 0; /* Reset margin */
    line-height: 1.2;
}

.author-box-name a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.author-box-name a:hover {
    text-decoration: underline;
}

.author-box-job-title {
    font-size: 0.9em;
    color: #666;
    margin-top: 0; /* Reset margin */
    margin-bottom: 15px;
}

.author-box-job-title a {
    color: #666;
    text-decoration: none;
}

.author-box-job-title a:hover {
    text-decoration: underline;
}

.author-box-bio {
    font-size: 0.8em; /* Adjusted to a slightly larger, more readable size */
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-box-linkedin {
    display: inline-block;
    background-color: #0077B5;
    color: #fff;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8em;
    transition: background-color 0.3s ease;
}

.author-box-linkedin:hover {
    background-color: #005582;
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {
    .author-box-wrapper {
        flex-direction: column; /* Stacks image and content vertically */
        align-items: center; /* Center aligns items when stacked */
        text-align: center;
        padding: 20px;
    }

    .author-box-header {
        justify-content: center; /* Center the 'Written By' and name when stacked */
    }


}