/* Ololo Advertising Platform - Frontend Styles */

.oap-ad-container {
	margin: 20px 0;
	width: 100%;
}

/* Card Style */
.oap-ad-container.oap-style-card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.oap-ad-card {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.oap-ad-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

.oap-ad-header {
	padding: 20px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.oap-ad-header h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.oap-ad-body {
	padding: 20px;
}

.oap-ad-body p {
	margin: 0 0 15px 0;
	color: #666;
	font-size: 14px;
}

.oap-ad-actions {
	display: flex;
	gap: 10px;
}

.oap-ad-link {
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
	display: inline-block;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.btn-primary:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	transform: scale(1.05);
}

/* Banner Style */
.oap-ad-container.oap-style-banner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.oap-ad-banner {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 30px;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.oap-ad-banner-content h3 {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: bold;
}

.oap-ad-banner-content p {
	margin: 0;
	font-size: 14px;
	opacity: 0.9;
}

.oap-ad-banner-cta {
	flex-shrink: 0;
}

.oap-ad-banner-cta .oap-ad-link {
	background: white;
	color: #667eea;
	padding: 12px 24px;
	font-weight: 600;
}

.oap-ad-banner-cta .oap-ad-link:hover {
	background: #f5f5f5;
	transform: scale(1.05);
}

/* List Style */
.oap-ad-container.oap-style-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.oap-ad-list-item {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s ease;
}

.oap-ad-list-item:hover {
	background: #f9f9f9;
	border-color: #667eea;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.oap-ad-list-name {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	flex: 1;
}

.oap-ad-list-type {
	margin: 0 15px;
}

.oap-ad-list-budget {
	font-weight: 600;
	color: #667eea;
	margin: 0 15px;
	min-width: 100px;
	text-align: right;
}

.oap-ad-list-action {
	flex-shrink: 0;
}

.btn-small {
	padding: 8px 16px;
	font-size: 12px;
	background: #667eea;
	color: white;
}

.btn-small:hover {
	background: #764ba2;
}

/* Badge Styles */
.oap-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.oap-badge-product {
	background: #d4edda;
	color: #155724;
}

.oap-badge-service {
	background: #cce5ff;
	color: #004085;
}

.oap-badge-event {
	background: #fff3cd;
	color: #856404;
}

.oap-badge-promotion {
	background: #f8d7da;
	color: #721c24;
}

.oap-badge-other {
	background: #e2e3e5;
	color: #383d41;
}

/* Responsive Design */
@media (max-width: 768px) {
	.oap-ad-container.oap-style-card {
		grid-template-columns: 1fr;
	}

	.oap-ad-banner {
		flex-direction: column;
		text-align: center;
	}

	.oap-ad-banner-cta {
		margin-top: 20px;
	}

	.oap-ad-list-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.oap-ad-list-budget {
		width: 100%;
		text-align: left;
		margin: 0;
	}

	.oap-ad-list-action {
		width: 100%;
	}

	.oap-ad-list-action .oap-ad-link {
		width: 100%;
		text-align: center;
	}
}

/* Loading State */
.oap-ad-item.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.oap-ad-item {
	animation: fadeIn 0.3s ease;
}

/* Accessibility */
.oap-ad-link:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}

.oap-ad-card:focus-within {
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
