/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme for GeneratePress with custom CSS and updated date support
Author: ApuDAZG
Template: generatepress
Version: 1.0
*/

/* Updated date styling */
.updated-date {
    color: #666;
    font-size: 0.9em;
    margin-left: 5px;
}

.updated-date strong {
    font-weight: 600;
}

/* ========================= */
/* GeneratePress Site CSS */
/* ========================= */

.site-branding a {
	display: inline-block;
	background: linear-gradient(to right, var(--accent) 45%, var(--accent-2) 45%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Right sidebar */
.wp-block-categories {
	list-style: none;
	margin-left: 0;
}

.wp-block-categories li:not(:last-child) {
	padding-bottom: 6px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--base);
}

.wp-block-categories li a {
	font-size: 16px;
}

/* Box shadow */
.box-shadow {
	box-shadow: 0px 0px 25px -12px rgba(0,0,0,0.2);
}

/* WooCommerce tweaks */
.woocommerce span.onsale {
	padding: 0 !important;
}

/* wpForo */
#wpforo #wpforo-wrap .wpforo-post code,
#wpforo #wpforo-wrap .wpforo-revision-body {
	padding: 0 !important;
}

#wpforo #wpforo-wrap pre {
	background: #dbe0e3;
}

.adscenter { text-align: center; }
.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

.ad_title {
	margin-bottom: 5px !important;
	font-size: 10px !important;
	color: #999 !important;
	text-align: center !important;
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.dynamic-entry-content {
	padding: 10px;
}

/* Sticky ads */
@media only screen and (min-width: 768px) {
	.inside-right-sidebar,
	.inside-left-sidebar {
		min-height: 100%;
	}

	aside.widget.inner-padding.moste-widget {
		position: sticky;
		top: 60px;
	}

	aside#block-2 {
		position: sticky;
		top: 20px;
	}
}

/* === SupportCandy styling (trimmed for performance but preserved behavior) === */

#wpsc-container .wpsc-auth-container {
	max-width: 400px;
	margin: 40px auto;
	padding: 30px 25px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #287698 !important;
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

#wpsc-container .wpsc-shortcode-container {
	background-color: #287698 !important;
	border: 1px solid #287698 !important;
	border-radius: 12px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
	color: #fff !important;
	padding: 25px;
}

.wpsc-body,
.wpsc-link,
.wpsc-thread,
.wpsc-section-header,
.wpsc-it-subject-container h2 {
	color: #fff !important;
}

/* Mobile typography */
@media (max-width: 768px) {
	.inside-article .entry-title { font-size: 20px; }
	.inside-article .entry-summary p { font-size: 12px !important; }
	h2, h3 { font-size: 20px; }
}

/* Tables */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #ddd;
	margin-bottom: 1.5em;
}

.entry-content table th,
.entry-content table td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
}

.entry-content table th {
	background: #f7f7f7;
	font-weight: 600;
}

/* Responsive tables */
@media (max-width: 768px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
	}
}

.updated-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #f7f7f7;
    border-left: 4px solid #287698;
    border-radius: 4px;
}

.updated-label {
    font-weight: 600;
}
