/*
Theme Name: MH Magazine Child
Theme URI: http://www.mhthemes.com/themes/mh-magazine/
Description: A child theme for the MH Magazine WordPress Theme.
Author: Kristian Singh-Nergård
Template: mh-magazine
Version: 1.0.0
Text Domain: mh-magazine-child
*/

/*--------------------------------------------------------------
# 1. General Customizations
--------------------------------------------------------------*/

/* Make the "Read More" excerpt link bold */
.mh-excerpt-more {
    font-weight: bold;
}

/*--------------------------------------------------------------
# 2. Author Box Styling
--------------------------------------------------------------*/

/* Container for all author boxes */
.mh-author-box {
	display: flex;
	flex-direction: column;
	gap: 40px; /* space between multiple author boxes */
	margin-top: 40px;
	border-top: 1px solid #ddd;
	padding-top: 20px;
}

/* Each individual author box */
.mh-each-author-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

/* Author avatar wrapper */
.mh-author-box-avatar {
	width: 125px;
	height: 125px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

/* Avatar image styling */
.mh-author-box-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

/* Author text container */
.mh-author-box-text {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Author header (name + post count) */
.mh-author-box-header {
	font-weight: bold;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 5px;
}

/* Author name styling */
.mh-author-box-name {
	font-size: 1.2em;
}

/* Author name link styling */
.mh-author-box-name a {
	color: inherit;
	text-decoration: none;
}

/* Post count next to author name */
.mh-author-box-postcount {
	font-weight: normal;
	font-size: 0.95em;
	color: #666;
}

/* Author bio text */
.mh-author-box-bio {
	margin-top: 5px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------
   Responsive: stack avatar above text on smaller screens (mobile)
   - Avatar is centered
   - Header (name + count) is centered but bio fills width and is left-aligned
   ------------------------------------------------------------------ */

@media (max-width: 768px) {

	/* Stack the avatar and text vertically */
	.mh-each-author-box {
		flex-direction: column;
		align-items: center; /* centers avatar and the header block */
		gap: 16px;
	}

	/* Avatar stays same size but centered */
	.mh-author-box-avatar {
		margin: 0;
		align-self: center;
	}

	/* Make text area use full width available */
	.mh-author-box-text {
		width: 100%;
	}

	/* Center the header (name + postcount) on mobile for cleaner look */
	.mh-author-box-header {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		margin-bottom: 10px;
		font-weight: 700;
	}

	/* Slightly bigger name on mobile */
	.mh-author-box-name {
		font-size: 1.25em;
		text-align: center;
	}

	/* Keep the post count visually subdued and centered */
	.mh-author-box-postcount {
		font-size: 0.95em;
		color: #666;
		display: block;
		text-align: center;
	}

	/* Biography should fill the width for readability */
	.mh-author-box-bio {
		margin-top: 10px;
		text-align: left;   /* left-align the paragraph for readability */
		/* if you prefer the bio centered, change to text-align:center; */
	}
}

/* --------------------------------------------------------------
   Optional: if you prefer the avatar below the name on mobile
   (instead of above it) - add class "mh-avatar-below" to
   .mh-each-author-box in your template and uncomment below.
   --------------------------------------------------------------
.mh-each-author-box.mh-avatar-below {
	flex-direction: column-reverse;
}
*/

/*--------------------------------------------------------------
# 3. Accessibility & Mobile Fixes
--------------------------------------------------------------*/

/* Prevent ordered list numbers from being cut off on mobile */
.single-post ol {
    padding-left: 2em;
    list-style-position: outside;
}

.single-post ol li {
    padding-left: 0.5em;
    text-indent: 0;
    overflow: visible;
}

/*--------------------------------------------------------------
# 4. Widget Title Styling
--------------------------------------------------------------*/

/* Footer widget titles — small size, keep theme styling */
.mh-footer .mh-widget-title,
.mh-widget-title.mh-footer-widget-title {
    font-size: 0.875rem !important; /* 14px */
    color: inherit !important;
}

/* Sidebar & frontpage widget titles — match H3 size */
.mh-widget-title:not(.mh-footer-widget-title) {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.2;
}

/*--------------------------------------------------------------
# 5. Tune In Page Styling
--------------------------------------------------------------*/


.section {
	margin-bottom: 30px !important;
}

.player-container {
	text-align: center !important;
}

.app-block {
	display: flex !important;
	align-items: center !important;
	gap: 20px !important;
	margin-bottom: 20px !important;
	padding: 15px !important;
	border: 1px solid #ccc !important;
	border-radius: 5px !important;
}

.app-details {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

.app-details .app-logo {
	width: 45px !important;
	height: 45px !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.app-details .app-logo img {
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
}

.app-screenshot {
	max-width: 200px !important;
	height: auto !important;
	border-radius: 4px !important;
}

/*--------------------------------------------------------------
# 5.1. Download Button Styling
--------------------------------------------------------------*/

.download-button {
	display: inline-block; /* Makes the link behave like a block element */
	margin-top: 15px; /* Adds space above the button */
	padding: 10px 20px;
	background-color: #d11a2a;
	color: white !important; /* Forces text color to white */
	text-decoration: none; /* Removes the underline */
	text-transform: uppercase;
	font-weight: bold;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.download-button:hover {
	background-color: #a00d1d; /* Slightly darker on hover */
}

/* Fixes spacing issue on the download link inside the p tag */
.app-block p + .download-button {
	margin-left: 0;
}