/*
Theme Name: Modegeschmack Child
Theme URI: https://www.modegeschmack.de/
Description: Child theme of Couponis. Naya homepage template (Castify design se inspired) + Castify jaisa color scheme, jo header aur footer par bhi apply hota hai (real menu, logo, footer content bilkul waisa hi rehta hai — sirf colors/style badla gaya hai).
Author: Modegeschmack
Template: couponis
Version: 1.1.0
Text Domain: modegeschmack-child
*/

/* ==========================================================================
   0) CASTIFY COLOR PALETTE (yahan se hi poore theme ke colors control hote hain)
   ========================================================================== */

:root {
	--mg-accent: #ff2d55;        /* Castify wala pink/red accent (category badges, buttons) */
	--mg-accent-dark: #c9184a;   /* hover / darker shade */
	--mg-gradient: linear-gradient(90deg, #6a3093 0%, #ff2d55 100%); /* top utility bar jaisa gradient */
	--mg-dark: #171717;          /* text / dark backgrounds */
	--mg-gray: #6b6b6b;          /* meta text */
	--mg-border: #ececec;
}

/* ==========================================================================
   1) SITE-WIDE HEADER RESTYLE
   (header.php ko touch nahi kiya — sirf existing classes ko CSS se
   colorful bana rahe hain, logo/menu/links sab real hi rehte hain)
   ========================================================================== */

/* Chota gradient accent strip Castify jaisa, header ke bilkul upar — pure CSS, HTML nahi badla */
header::before {
	content: "";
	display: block;
	height: 4px;
	width: 100%;
	background: var(--mg-gradient);
}

header .top-header {
	border-bottom: 1px solid var(--mg-border);
}

header .navigation {
	background: #ffffff;
	border-bottom: 2px solid var(--mg-dark);
}

header .navigation .navbar-nav > li > a {
	color: var(--mg-dark);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .3px;
}

header .navigation .navbar-nav > li.current-menu-item > a,
header .navigation .navbar-nav > li.current_page_item > a,
header .navigation .navbar-nav > li > a:hover {
	color: #ffffff !important;
	background: var(--mg-accent);
}

header .main-search .submit-form,
header .navbar-toggle.menu {
	background: var(--mg-dark);
}

header .main-search .submit-form:hover {
	background: var(--mg-accent);
}

/* ==========================================================================
   2) SITE-WIDE FOOTER RESTYLE
   (footer.php / couponis-footer.php untouched — sirf styling)
   ========================================================================== */

.footer-subscribe {
	background: var(--mg-gradient);
	color: #ffffff;
}

.footer-subscribe .btn.submit-ajax-form {
	background: var(--mg-dark);
	color: #ffffff;
}

.footer-subscribe .btn.submit-ajax-form:hover {
	background: #000000;
}

.copyrights {
	background: var(--mg-dark) !important;
	color: #d9d9d9;
}

.copyrights a {
	color: #ffffff;
}

.footer-social a {
	background: #2b2b2b;
	border-radius: 50%;
	color: #ffffff !important;
}

.footer-social .fa-facebook { background: #1877f2; }
.footer-social .fa-twitter,
.footer-social .fa-x-twitter { background: #000000; }
.footer-social .fa-youtube { background: #ff0000; }
.footer-social .fa-instagram { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.footer-social .fa-pinterest { background: #e60023; }
.footer-social .fa-linkedin { background: #0a66c2; }

.footer-social a:hover {
	opacity: .85;
}

.to_top.btn {
	background: var(--mg-accent) !important;
}

/* ==========================================================================
   3) MODEGESCHMACK HOMEPAGE — CASTIFY STYLE (colorful, no ad sections)
   ========================================================================== */

.mg-home {
	background: #ffffff;
	color: var(--mg-dark);
	padding: 30px 0 40px;
}

.mg-home a {
	color: var(--mg-dark);
}

.mg-home a:hover {
	color: var(--mg-accent);
}

/* ---------- Featured grid (top section) ---------- */

.mg-featured-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 40px;
}

.mg-featured-main {
	flex: 1 1 58%;
	position: relative;
	min-width: 300px;
}

.mg-featured-side {
	flex: 1 1 38%;
	min-width: 260px;
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid var(--mg-border);
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.mg-featured-side:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.mg-featured-media {
	display: block;
	position: relative;
	overflow: hidden;
	background: #000;
}

.mg-featured-main .mg-featured-media img,
.mg-featured-side .mg-featured-media img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .3s ease, opacity .2s ease;
}

.mg-featured-media:hover img {
	transform: scale(1.04);
	opacity: 0.92;
}

.mg-no-thumb {
	width: 100%;
	padding-top: 50%;
	background: var(--mg-gradient);
}

.mg-cat-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--mg-accent);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 4px 10px;
	border-radius: 3px;
}

.mg-featured-content {
	padding-top: 12px;
}

.mg-featured-main .mg-featured-title {
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 8px;
}

.mg-featured-side .mg-featured-title {
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 6px;
}

.mg-featured-title a:hover {
	color: var(--mg-accent);
}

.mg-meta {
	font-size: 12px;
	color: var(--mg-gray);
	text-transform: uppercase;
	letter-spacing: .3px;
}

/* ---------- Content wrap: main column + sidebar ---------- */

.mg-content-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.mg-main-col {
	flex: 1 1 66%;
	min-width: 280px;
}

.mg-sidebar {
	flex: 1 1 28%;
	min-width: 240px;
}

.mg-section-title {
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 2px solid var(--mg-accent);
	padding-bottom: 10px;
	margin: 0 0 20px;
}

/* ---------- Latest news list ---------- */

.mg-latest-item {
	display: flex;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--mg-border);
}

.mg-latest-item:first-child {
	padding-top: 0;
}

.mg-latest-media {
	flex: 0 0 140px;
	display: block;
	overflow: hidden;
	background: #000;
}

.mg-latest-media img {
	width: 140px;
	height: 100px;
	object-fit: cover;
	display: block;
}

.mg-latest-body {
	flex: 1 1 auto;
}

.mg-cat-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #ffffff !important;
	background: var(--mg-accent);
	padding: 3px 8px;
	margin-bottom: 6px;
	border-radius: 3px;
}

.mg-cat-label:hover {
	background: var(--mg-accent-dark);
	text-decoration: none !important;
}

.mg-latest-title {
	font-size: 16px;
	margin: 0 0 6px;
	line-height: 1.35;
}

.mg-latest-title a:hover {
	color: var(--mg-accent);
}

.mg-excerpt {
	font-size: 13px;
	color: #4a4a4a;
	margin-top: 6px;
	line-height: 1.5;
}

.mg-view-all {
	text-align: center;
	margin-top: 25px;
}

.mg-btn {
	display: inline-block;
	background: var(--mg-accent);
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 11px 26px;
	text-decoration: none !important;
	border-radius: 3px;
}

.mg-btn:hover {
	background: var(--mg-accent-dark);
}

/* ---------- Sidebar widgets ---------- */

.mg-widget {
	margin-bottom: 35px;
	border: 1px solid var(--mg-border);
	padding: 18px;
	border-radius: 4px;
}

.mg-widget h4 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 2px solid var(--mg-accent);
	padding-bottom: 10px;
	margin: 0 0 15px;
}

.mg-popular-item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eeeeee;
}

.mg-popular-item:first-child {
	padding-top: 0;
}

.mg-popular-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.mg-popular-media {
	flex: 0 0 60px;
}

.mg-popular-media img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	display: block;
	border-radius: 3px;
}

.mg-popular-title {
	font-size: 13px;
	line-height: 1.35;
	margin: 0 0 4px;
}

.mg-popular-title a:hover {
	color: var(--mg-accent);
}

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

.mg-cat-widget li {
	border-bottom: 1px solid #eeeeee;
}

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

.mg-cat-widget a {
	display: flex;
	justify-content: space-between;
	padding: 9px 0;
	font-size: 13px;
	text-decoration: none;
}

.mg-cat-widget a:hover {
	color: var(--mg-accent);
}

.mg-cat-widget span {
	color: #8a8a8a;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	.mg-featured-grid,
	.mg-content-wrap {
		flex-direction: column;
	}
	.mg-latest-media,
	.mg-latest-media img {
		flex-basis: 100px;
		width: 100px;
		height: 80px;
	}
}
