/* 
 * Couponology Theme Main CSS
 */

:root {
	--primary-color: #0b2e59; /* Deep blue from Couponology */
	--secondary-color: #f37021; /* Orange CTA */
	--text-color: #333333;
	--bg-color: #f4f6f8;
	--white: #ffffff;
	--border-color: #e1e5eb;
	--font-primary: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	font-family: var(--font-primary);
	color: var(--text-color);
	background-color: var(--bg-color);
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.text-center {
	text-align: center;
}

.section-padding {
	padding: 60px 0;
}

.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.pb-0 { padding-bottom: 0; }

.bg-light {
	background-color: var(--white);
}

/* Header */
.site-header {
	background-color: var(--primary-color);
	color: var(--white);
}

.header-top {
	padding: 15px 0;
}

.header-top .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-title a {
	color: var(--white);
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
}

.header-search form {
	display: flex;
	width: 100%;
	max-width: 500px;
}

.header-search input[type="search"] {
	width: 100%;
	padding: 10px 15px;
	border: none;
	border-radius: 4px 0 0 4px;
}

.header-search button {
	padding: 10px 20px;
	background-color: var(--secondary-color);
	color: var(--white);
	border: none;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	font-weight: bold;
}

.header-actions .btn-login {
	color: var(--white);
	font-weight: 500;
}

.mobile-menu-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
}

.mobile-menu-toggle .bar {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--white);
	margin: 5px 0;
}

.header-bottom {
	background-color: rgba(0,0,0,0.1);
	padding: 10px 0;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}

.main-navigation a {
	color: var(--white);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 14px;
}

/* Hero Section */
.hero-section {
	background-color: var(--primary-color);
	color: var(--white);
	padding: 80px 0;
	text-align: center;
}

.hero-content h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
}

.hero-search form {
	display: flex;
	max-width: 600px;
	margin: 30px auto 0;
}

.hero-search input {
	flex-grow: 1;
	padding: 15px;
	border: none;
	border-radius: 4px 0 0 4px;
	font-size: 16px;
}

.hero-search button {
	padding: 15px 30px;
	background-color: var(--secondary-color);
	color: var(--white);
	border: none;
	border-radius: 0 4px 4px 0;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
}

/* Grids */
.store-grid, .coupon-grid, .lookbook-grid {
	display: grid;
	gap: 20px;
}

.store-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.coupon-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lookbook-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Cards */
.store-card, .coupon-card, .lookbook-card {
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	overflow: hidden;
	transition: transform 0.3s ease;
}

.store-card:hover, .coupon-card:hover {
	transform: translateY(-3px);
	text-decoration: none;
}

.store-card {
	padding: 15px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 1px solid var(--border-color);
}

.store-logo img {
	max-width: 100%;
	height: auto;
}

.placeholder-logo {
	width: 80px;
	height: 80px;
	background: #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 12px;
	color: #666;
}

.store-title {
	font-size: 14px;
	margin-top: 10px;
	color: var(--text-color);
}

/* Coupon Card */
.coupon-card {
	display: flex;
	padding: 20px;
	border: 1px solid var(--border-color);
}

.coupon-store-logo {
	width: 80px;
	margin-right: 20px;
}

.coupon-store-logo img {
	width: 100%;
	height: auto;
}

.coupon-details {
	flex-grow: 1;
}

.coupon-title {
	font-size: 18px;
	margin: 0 0 10px;
}

.coupon-title a {
	color: var(--text-color);
}

.coupon-excerpt {
	font-size: 14px;
	color: #666;
}

.coupon-action {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	min-width: 120px;
}

.btn-deal, .btn-code {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
}

.btn-deal {
	background-color: var(--primary-color);
	color: var(--white);
}

.btn-deal:hover { background-color: #082140; color: var(--white); text-decoration: none; }

.btn-code {
	background-color: var(--secondary-color);
	color: var(--white);
}

.btn-code:hover { background-color: #d95e13; color: var(--white); text-decoration: none; }

.reveal-wrapper {
	position: relative;
	overflow: hidden;
	border: 2px dashed #ccc;
	border-radius: 4px;
	display: flex;
}

.code-hidden {
	padding: 10px;
	color: #999;
	background: #f9f9f9;
}

.reveal-wrapper .btn-code {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* Lookbook Card */
.lookbook-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.lookbook-content {
	padding: 20px;
}

/* Coupon Reveal Page */
.coupon-reveal-container {
	max-width: 700px;
	margin: 0 auto;
}
.coupon-reveal-card {
	background: var(--white);
	padding: 40px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.promo-code-box {
	background: #fdf6f2;
	border: 2px dashed var(--secondary-color);
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}
.code-wrapper {
	display: flex;
	margin-top: 10px;
}
.code-wrapper input {
	flex-grow: 1;
	padding: 15px;
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 4px 0 0 4px;
}
.btn-copy {
	background: var(--secondary-color);
	color: var(--white);
	border: none;
	padding: 0 30px;
	font-size: 18px;
	font-weight: bold;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
}
.btn-primary {
	background: var(--primary-color);
	color: var(--white);
	padding: 15px 30px;
	display: inline-block;
	border-radius: 4px;
	font-weight: bold;
}
.btn-primary:hover {
	text-decoration: none;
	background: #082140;
}
.btn-outline {
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: bold;
	display: inline-block;
}

/* Footer */
.site-footer {
	background-color: #222;
	color: #ccc;
}
.footer-newsletter {
	background-color: var(--secondary-color);
	color: var(--white);
	padding: 40px 0;
	text-align: center;
}
.newsletter-form {
	display: flex;
	max-width: 500px;
	margin: 20px auto 0;
}
.newsletter-form input {
	flex-grow: 1;
	padding: 12px;
	border: none;
	border-radius: 4px 0 0 4px;
}
.newsletter-form button {
	background: #222;
	color: var(--white);
	border: none;
	padding: 0 20px;
	border-radius: 0 4px 4px 0;
	font-weight: bold;
	cursor: pointer;
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	padding: 60px 15px;
}
.footer-widget h3 {
	color: var(--white);
	margin-bottom: 20px;
}
.footer-widget a {
	color: #ccc;
}
.footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-widget ul li {
	margin-bottom: 10px;
}
.social-icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	background: #444;
	line-height: 40px;
	text-align: center;
	border-radius: 50%;
	margin-right: 10px;
}
.site-info {
	background: #111;
	padding: 20px 0;
	text-align: center;
	font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
	.header-top .container {
		flex-wrap: wrap;
	}
	.header-search {
		order: 3;
		width: 100%;
		margin-top: 15px;
	}
	.mobile-menu-toggle {
		display: block;
	}
	.header-bottom {
		display: none;
	}
	.coupon-card {
		flex-direction: column;
	}
	.coupon-store-logo {
		margin-bottom: 15px;
	}
	.coupon-action {
		margin-top: 15px;
		align-items: flex-start;
	}
	.code-wrapper {
		flex-direction: column;
	}
	.code-wrapper input {
		border-radius: 4px;
		margin-bottom: 10px;
	}
	.btn-copy {
		border-radius: 4px;
		padding: 15px;
	}
}
