/**
 * TGB Core Theme - Enhanced Custom Styles
 *
 * @package TGB_Core_Theme
 */

/* ============================================
   HEADER STYLES
============================================ */

/* Top Bar */
.mg-head-detail {
	background: var(--tgb-dark);
	color: #fff;
	font-size: 14px;
	padding: 8px 0;
}

.mg-head-detail ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 20px;
}

.mg-head-detail .info-left {
	justify-content: flex-start;
}

.mg-head-detail .info-right {
	justify-content: flex-end;
}

.mg-head-detail li {
	display: flex;
	align-items: center;
}

.mg-head-detail i {
	margin-right: 6px;
}

/* Social Icons */
.mg-social {
	gap: 10px !important;
}

.mg-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: #fff;
	transition: var(--tgb-transition);
}

.mg-social a:hover {
	background: var(--tgb-gold);
	color: #000;
	transform: translateY(-2px);
}

/* Header Logo Area with Background */
.mg-nav-widget-area-back {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.mg-nav-widget-area-back .overlay {
	position: relative;
}

.mg-nav-widget-area-back .inner {
	padding: 40px 0;
	background-color: rgba(32,47,91,0.4);
}

.mg-nav-widget-area {
	position: relative;
	z-index: 1;
}

/* Site Logo and Branding */
.navbar-header {
	display: flex;
	align-items: center;
	gap: 20px;
}

.site-logo img {
	max-height: 80px;
	width: auto;
}

.site-branding-text {
	color: #fff;
}

.site-title {
	margin: 0;
	font-size: 32px;
	font-family: var(--headFont);
	font-weight: 700;
	line-height: 1.2;
}

.site-title a {
	color: #fff;
	text-decoration: none;
}

.site-description {
	margin: 4px 0 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

/* Text Center XS */
@media (max-width: 767px) {
	.text-center-xs {
		text-align: center !important;
	}
}

/* ============================================
   NAVIGATION STYLES
============================================ */

.mg-menu-full {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--tgb-dark);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-wp {
	padding: 0;
	margin: 0;
}

.navbar-wp .navbar-nav {
	align-items: center;
}

.navbar-wp .nav-link {
	color: #fff;
	padding: 16px 20px;
	font-family: var(--headFont);
	font-weight: 500;
	font-size: 15px;
	transition: var(--tgb-transition);
	position: relative;
}

.navbar-wp .nav-link:hover,
.navbar-wp .nav-link:focus,
.navbar-wp .nav-link.active {
	background: rgba(194, 167, 109, 0.2);
	color: var(--tgb-gold);
}

/* Dropdown Menu */
.navbar-wp .dropdown-menu {
	background: var(--tgb-dark);
	border: none;
	border-radius: 0;
	box-shadow: var(--tgb-shadow-lg);
	margin: 0;
	padding: 0;
	min-width: 220px;
}

.navbar-wp .dropdown-item {
	color: #fff;
	padding: 12px 20px;
	font-size: 14px;
	transition: var(--tgb-transition);
}

.navbar-wp .dropdown-item:hover,
.navbar-wp .dropdown-item:focus {
	background: rgba(194, 167, 109, 0.2);
	color: var(--tgb-gold);
}

/* Mobile Header */
.m-header {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 10px 0;
}

.mobilehomebtn {
	color: #fff;
	font-size: 20px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	transition: var(--tgb-transition);
}

.mobilehomebtn:hover {
	background: var(--tgb-gold);
	color: #000;
}

/* Burger Menu Animation */
.navbar-toggler {
	border: none;
	padding: 8px;
	background: transparent;
}

.navbar-toggler:focus {
	box-shadow: none;
}

.burger {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 24px;
}

.burger-line {
	display: block;
	height: 2px;
	background: #fff;
	transition: all 0.3s ease;
}

.navbar-toggler.active .burger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler.active .burger-line:nth-child(2) {
	opacity: 0;
}

.navbar-toggler.active .burger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Header Actions */
.desk-header {
	gap: 15px;
}

/* Search Dropdown */
.tgb-search-dropdown .dropdown-toggle,
.tgb-subscribe .subscribe-btn {
	color: #fff;
	font-size: 18px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	transition: var(--tgb-transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tgb-search-dropdown .dropdown-toggle:hover,
.tgb-subscribe .subscribe-btn:hover {
	background: var(--tgb-gold);
	color: #000;
}

.tgb-search-dropdown .dropdown-menu {
	min-width: 320px;
	padding: 16px;
	background: var(--tgb-dark);
	border: none;
	box-shadow: var(--tgb-shadow-lg);
}

.tgb-search-dropdown .search-form {
	margin: 0;
}

.tgb-search-dropdown .search-field {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 4px;
}

.tgb-search-dropdown .search-field:focus {
	outline: none;
	border-color: var(--tgb-gold);
}

.tgb-search-dropdown .search-submit {
	margin-top: 8px;
	width: 100%;
	padding: 10px;
	background: var(--tgb-gold);
	color: #000;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--tgb-transition);
}

.tgb-search-dropdown .search-submit:hover {
	background: #d4b87d;
}

/* User Badge */
.header-user-badge {
	display: inline-flex;
}

.tgb-membership-badge {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 20px;
	letter-spacing: 0.5px;
}

.tgb-membership-badge--free {
	background: #6b7280;
	color: #fff;
}

.tgb-membership-badge--pro {
	background: var(--tgb-gold);
	color: #000;
}

.tgb-membership-badge--elite {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

/* ============================================
   FOOTER STYLES
============================================ */

.footer.back-img {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.footer .overlay {
	padding: 60px 0 0;
	color: #fff;
}

/* Footer Widgets */
.footer-widgets {
	padding-bottom: 40px;
}

.footer-widget-area .widget {
	margin-bottom: 30px;
}

.footer-widget-area .widget-title {
	color: #fff;
	font-family: var(--headFont);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(194, 167, 109, 0.3);
}

.footer-widget-area .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widget-area .widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-area .widget ul li:last-child {
	border-bottom: none;
}

.footer-widget-area .widget a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: var(--tgb-transition);
}

.footer-widget-area .widget a:hover {
	color: var(--tgb-gold);
	padding-left: 5px;
}

/* Footer Bottom */
.tgb-footer-bottom-area {
	padding: 40px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tgb-footer-bottom-area .divide-line {
	display: none; /* Already using border-top */
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 15px;
}

.footer-logo img {
	max-height: 50px;
	width: auto;
}

.footer-logo .site-title {
	font-size: 24px;
	margin: 0;
}

.footer-logo .site-title a {
	color: #fff;
	text-decoration: none;
}

.footer-tagline {
	margin: 8px 0 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

/* Footer Social Icons */
.tgb-footer-bottom-area .mg-social a {
	width: 36px;
	height: 36px;
	font-size: 16px;
}

/* Footer Copyright */
.mg-footer-copyright {
	background: rgba(0, 0, 0, 0.2);
	padding: 20px 0;
	font-size: 14px;
}

.mg-footer-copyright a {
	color: var(--tgb-gold);
	text-decoration: none;
}

.mg-footer-copyright a:hover {
	text-decoration: underline;
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */

.tgb-scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--tgb-gold);
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 20px;
	text-decoration: none;
	box-shadow: var(--tgb-shadow-md);
	transition: var(--tgb-transition);
	z-index: 999;
	opacity: 0.9;
}

.tgb-scroll-top:hover {
	background: #d4b87d;
	color: #000;
	transform: translateY(-5px);
	box-shadow: var(--tgb-shadow-lg);
	opacity: 1;
}

/* ============================================
   CONTENT AREA
============================================ */

.site-content {
	min-height: calc(100vh - 400px);
	padding: 40px 0;
}

/* ============================================
   UTILITY CLASSES
============================================ */

.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* Member-Only Elements */
.member-only {
	display: none;
}

.logged-in .member-only {
	display: block;
}

.guest-only {
	display: block;
}

.logged-in .guest-only {
	display: none;
}

/* ============================================
   WIDGET STYLES
============================================ */

.widget {
	margin-bottom: 32px;
}

.widget-title {
	font-size: 18px;
	font-weight: 700;
	font-family: var(--headFont);
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tgb-gold);
	color: var(--tgb-ink);
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	text-decoration: none;
	color: #374151;
	transition: color 0.2s ease;
}

.widget ul li a:hover {
	color: var(--tgb-gold);
}

/* ============================================
   COMMENT STYLES
============================================ */

.comment-list {
	list-style: none;
	padding: 0;
}

.comment {
	margin: 24px 0;
	padding: 20px;
	background: #f9fafb;
	border-radius: 8px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-meta {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 8px;
}

.comment-content {
	margin: 12px 0;
}

.reply {
	margin-top: 12px;
}

.reply a {
	font-size: 14px;
	color: var(--tgb-gold);
	text-decoration: none;
}

.reply a:hover {
	text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

@media (max-width: 991px) {
	.mg-head-detail {
		display: none !important;
	}

	.mg-nav-widget-area-back .inner {
		padding: 30px 0;
	}

	.site-logo img {
		max-height: 60px;
	}

	.site-title {
		font-size: 24px;
	}

	.navbar-collapse {
		background: var(--tgb-dark);
		padding: 15px;
		margin-top: 15px;
	}

	.navbar-wp .nav-link {
		padding: 12px 15px;
	}

	.tgb-scroll-top {
		width: 45px;
		height: 45px;
		bottom: 20px;
		right: 20px;
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.footer-widgets .row > div {
		margin-bottom: 30px;
	}

	.tgb-footer-bottom-area .row {
		text-align: center;
	}

	.tgb-footer-bottom-area .row > div {
		margin-bottom: 20px;
	}

	.tgb-footer-bottom-area .mg-social {
		justify-content: center;
	}
}

/* ============================================
   ACCESSIBILITY
============================================ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Skip Link */
.skip-link {
	background-color: #f1f1f1;
	box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
	color: var(--tgb-gold);
	display: block;
	font-size: 14px;
	font-weight: 700;
	left: -9999em;
	outline: none;
	padding: 15px 23px 14px;
	text-decoration: none;
	text-transform: none;
	top: -9999em;
}

.skip-link:focus {
	clip: auto !important;
	display: block;
	height: auto;
	left: 6px;
	top: 7px;
	width: auto;
	z-index: 100000;
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
	.no-print,
	.mg-head-detail,
	.mg-menu-full,
	.site-footer,
	.sidebar,
	.tgb-engagement-buttons,
	.tgb-scroll-top,
	.comment-form {
		display: none !important;
	}

	body {
		font-size: 12pt;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}
}
