/**
 * Warren Cat Offers - Advanced Ads Integration Frontend Styles
 *
 * @package WcatOffers
 * @since 1.0.0
 */

/* Base offer ad styles */
.wcat-offer-ad-wrapper {
	display: block;
	margin: 1em 0;
	position: relative;
}

.wcat-offer-ad-link {
	display: inline-block;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
}

.wcat-offer-ad-link:hover {
	text-decoration: none;
	transform: translateY(-2px);
}

.wcat-offer-ad-link:focus {
	outline: 2px solid #005caa;
	outline-offset: 2px;
}

/* Title only display mode */
.wcat-offer-ad-title-only .wcat-offer-title {
	font-weight: 600;
	font-size: 1.1em;
	line-height: 1.4;
	color: #2c3e50;
}

.wcat-offer-ad-title-only:hover .wcat-offer-title {
	color: #e67e22;
}

/* Title + excerpt display mode */
.wcat-offer-ad-title-excerpt .wcat-offer-title-excerpt {
	display: block;
}

.wcat-offer-ad-title-excerpt .wcat-offer-title {
	display: block;
	font-weight: 600;
	font-size: 1.1em;
	line-height: 1.4;
	color: #2c3e50;
	margin-bottom: 0.5em;
}

.wcat-offer-ad-title-excerpt .wcat-offer-excerpt {
	display: block;
	font-size: 0.95em;
	line-height: 1.5;
	color: #7f8c8d;
}

.wcat-offer-ad-title-excerpt:hover .wcat-offer-title {
	color: #e67e22;
}

.wcat-offer-ad-title-excerpt:hover .wcat-offer-excerpt {
	color: #95a5a6;
}

/* Featured image display mode */
.wcat-offer-ad-image-wrapper {
	max-width: 300px;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.wcat-offer-ad-image-wrapper:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.wcat-offer-ad-featured-image .wcat-offer-featured-image {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.wcat-offer-ad-featured-image:hover .wcat-offer-featured-image {
	transform: scale(1.05);
}

/* Custom text display mode */
.wcat-offer-ad-custom .wcat-offer-custom {
	font-size: 1em;
	line-height: 1.5;
	color: #34495e;
}

.wcat-offer-ad-custom:hover .wcat-offer-custom {
	color: #e67e22;
}

/* Button styling */
.wcat-offer-ad-button-wrapper {
	display: inline-block;
}

.wcat-offer-ad-button {
	display: inline-block;
	padding: 0.75em 1.5em;
	background-color: #f1c40f;
	color: #2c3e50 !important;
	border: 2px solid #f39c12;
	border-radius: 5px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wcat-offer-ad-button:hover {
	background-color: #f39c12;
	border-color: #e67e22;
	color: #2c3e50 !important;
	text-decoration: none !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wcat-offer-ad-button:focus {
	outline: 2px solid #005caa;
	outline-offset: 2px;
}

.wcat-offer-ad-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button with image */
.wcat-offer-ad-button.wcat-offer-ad-featured-image {
	padding: 0;
	background: none;
	border: none;
	border-radius: 8px;
	overflow: hidden;
}

.wcat-offer-ad-button.wcat-offer-ad-featured-image .wcat-offer-featured-image {
	border-radius: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
	.wcat-offer-ad-wrapper {
		margin: 0.75em 0;
	}
	
	.wcat-offer-ad-image-wrapper {
		max-width: 100%;
	}
	
	.wcat-offer-ad-button {
		padding: 0.6em 1.2em;
		font-size: 0.95em;
	}
	
	.wcat-offer-ad-title-excerpt .wcat-offer-title {
		font-size: 1.05em;
	}
	
	.wcat-offer-ad-title-excerpt .wcat-offer-excerpt {
		font-size: 0.9em;
	}
}

@media (max-width: 480px) {
	.wcat-offer-ad-button {
		display: block;
		width: 100%;
		text-align: center;
		padding: 0.75em;
	}
	
	.wcat-offer-ad-image-wrapper {
		text-align: center;
	}
}

/* Error display for debug mode */
.wcat-offer-ad-error {
	display: inline-block;
	padding: 0.5em 1em;
	background-color: #e74c3c;
	color: white;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 500;
	margin: 0.5em 0;
}

/* Warren Cat brand colors and styling */
.wcat-offer-ad-wrapper.wcat-branded {
	border-left: 4px solid #f1c40f;
	padding-left: 1em;
	background-color: #fefefe;
}

.wcat-offer-ad-wrapper.wcat-branded:hover {
	background-color: #fffdf5;
}

/* Accessibility improvements */
.wcat-offer-ad-link:focus-visible {
	outline: 2px solid #005caa;
	outline-offset: 2px;
	border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.wcat-offer-ad-button {
		background-color: #000;
		color: #fff !important;
		border-color: #000;
	}
	
	.wcat-offer-ad-button:hover {
		background-color: #333;
		border-color: #333;
	}
	
	.wcat-offer-title {
		color: #000 !important;
	}
	
	.wcat-offer-excerpt {
		color: #333 !important;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.wcat-offer-ad-link,
	.wcat-offer-ad-button,
	.wcat-offer-featured-image {
		transition: none;
	}
	
	.wcat-offer-ad-link:hover,
	.wcat-offer-ad-button:hover {
		transform: none;
	}
}

/* Print styles */
@media print {
	.wcat-offer-ad-wrapper {
		break-inside: avoid;
		margin: 0.5em 0;
	}
	
	.wcat-offer-ad-button {
		background: none !important;
		color: #000 !important;
		border: 1px solid #000 !important;
		box-shadow: none !important;
	}
	
	.wcat-offer-featured-image {
		max-width: 200px;
		height: auto;
	}
} 