/**
 * Simple Offer Showcase - Admin Styles
 *
 * Styling for admin panel and settings pages
 * Version: 1.0.0
 */

/* ==========================================================================
	ADMIN SETTINGS PAGE
	========================================================================== */

.easypanel-offer-showcase-admin-wrapper {
	max-width: 1200px;
	margin: 20px 20px 20px 0;
}

.easypanel-offer-showcase-admin-header {
	background: #ffffff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	margin-bottom: 25px;
}

.easypanel-offer-showcase-admin-header h1 {
	margin: 0 0 10px 0;
	font-size: 28px;
	color: #333;
}

.easypanel-offer-showcase-admin-header p {
	margin: 0;
	font-size: 15px;
	color: #666;
}

/* ==========================================================================
	TABS NAVIGATION
	========================================================================== */

.easypanel-offer-showcase-tabs-nav {
	display: flex;
	gap: 10px;
	margin-bottom: 0;
	border-bottom: 2px solid #e1e1e1;
}

.easypanel-offer-showcase-tab-button {
	padding: 12px 24px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #666;
	transition: all 0.3s ease;
}

.easypanel-offer-showcase-tab-button:hover {
	color: #007bff;
	background: rgba(0, 123, 255, 0.05);
}

.easypanel-offer-showcase-tab-button.active {
	color: #007bff;
	border-bottom-color: #007bff;
	background: rgba(0, 123, 255, 0.05);
}

/* ==========================================================================
	TAB CONTENT
	========================================================================== */

.easypanel-offer-showcase-tab-content {
	display: none;
	background: #ffffff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.easypanel-offer-showcase-tab-content.active {
	display: block;
}

/* ==========================================================================
	FORM SECTIONS
	========================================================================== */

.easypanel-offer-showcase-admin-disclaimer {
	background: #e8f4fd;
	border-left: 4px solid #2196f3;
	padding: 15px 20px;
	margin-bottom: 20px;
	font-size: 15px;
	color: #333;
	border-radius: 4px;
}

.easypanel-offer-showcase-settings-section {
	margin-bottom: 40px;
}

.easypanel-offer-showcase-settings-section:last-child {
	margin-bottom: 0;
}

.easypanel-offer-showcase-settings-section h2 {
	margin: 0 0 20px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
	font-size: 20px;
	color: #333;
}

.easypanel-offer-showcase-form-table {
	width: 100%;
	max-width: 800px;
}

.easypanel-offer-showcase-form-row {
	display: flex;
	align-items: flex-start;
	padding: 20px 0;
	border-bottom: 1px solid #f5f5f5;
}

.easypanel-offer-showcase-form-row:last-child {
	border-bottom: none;
}

.easypanel-offer-showcase-form-label {
	flex: 0 0 200px;
	padding-right: 20px;
}

.easypanel-offer-showcase-form-label label {
	font-weight: 600;
	color: #333;
	display: block;
	margin-bottom: 5px;
}

.easypanel-offer-showcase-form-label .description {
	font-size: 13px;
	color: #666;
	font-weight: normal;
	line-height: 1.4;
}

.easypanel-offer-showcase-form-field {
	flex: 1;
}

.easypanel-offer-showcase-form-field input[type="text"],
.easypanel-offer-showcase-form-field select {
	width: 100%;
	max-width: 400px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.easypanel-offer-showcase-form-field input[type="color"] {
	width: 80px;
	height: 45px;
	padding: 4px;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
}

.easypanel-offer-showcase-form-field .color-preview {
	display: inline-block;
	margin-left: 10px;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	color: #666;
	vertical-align: middle;
}

/* ==========================================================================
	UPGRADE NOTICE
	========================================================================== */

.easypanel-offer-showcase-upgrade-notice {
	background: #f8f9fa;
	border: 2px solid #e1e4e8;
	color: #24292e;
	padding: 40px;
	border-radius: 8px;
	text-align: center;
}

.easypanel-offer-showcase-upgrade-notice h2 {
	margin: 0 0 10px 0;
	color: #24292e;
	font-size: 28px;
	border: none;
	padding: 0;
}

.easypanel-offer-showcase-upgrade-notice h2::before {
	content: "\f160";
	font-family: dashicons;
	font-size: 32px;
	vertical-align: middle;
	margin-right: 10px;
	color: #d4af37;
}

.easypanel-offer-showcase-upgrade-notice p {
	font-size: 15px;
	margin: 0 0 30px 0;
	color: #586069;
}

.easypanel-offer-showcase-premium-features {
	background: #ffffff;
	border: 1px solid #e1e4e8;
	padding: 30px;
	border-radius: 6px;
	margin: 30px 0;
}

.easypanel-offer-showcase-premium-features h4 {
	margin: 0 0 20px 0;
	color: #24292e;
	font-size: 18px;
	font-weight: 600;
}

.easypanel-offer-showcase-premium-features ul {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left;
	max-width: 600px;
	margin: 0 auto;
}

.easypanel-offer-showcase-premium-features li {
	padding: 8px 0;
	font-size: 14px;
	color: #24292e;
	position: relative;
	padding-left: 30px;
}

.easypanel-offer-showcase-premium-features li::before {
	content: "\f147";
	font-family: dashicons;
	position: absolute;
	left: 0;
	color: #28a745;
	font-size: 20px;
	line-height: 1.4;
}

.easypanel-offer-showcase-upgrade-button {
	display: inline-block;
	background: #0366d6;
	color: #ffffff;
	padding: 12px 28px;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.2s ease;
}

.easypanel-offer-showcase-upgrade-button:hover {
	background: #0256c7;
	color: #ffffff;
	text-decoration: none;
}

/* ==========================================================================
	PREMIUM SHOWCASE GALLERY
	========================================================================== */

/* Wrapper */
.easypanel-offer-showcase-premium-showcase-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Header */
.easypanel-offer-showcase-premium-showcase-header {
	text-align: center;
	margin-bottom: 50px;
}

.easypanel-offer-showcase-premium-showcase-header h2 {
	font-size: 36px;
	color: #1a1f26;
	margin: 0 0 20px 0;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.easypanel-offer-showcase-premium-showcase-header p {
	font-size: 17px;
	color: #586069;
	line-height: 1.7;
	font-weight: 400;
}

/* Gallery - Grid Layout (3 columns) */
.easypanel-offer-showcase-premium-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

/* Screenshot Card */
.easypanel-offer-showcase-premium-screenshot-card {
	background: #ffffff;
	border: 2px solid #e1e4e8;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.easypanel-offer-showcase-premium-screenshot-card:hover {
	border-color: #0366d6;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	transform: translateY(-4px);
}

/* Screenshot Link & Image */
.easypanel-offer-showcase-premium-screenshot-link {
	display: block;
	position: relative;
	overflow: hidden;
	background: #f6f8fa;
	aspect-ratio: 16 / 10; /* Maintain aspect ratio */
	min-height: 250px; /* Fallback for older browsers */
}

.easypanel-offer-showcase-premium-screenshot-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.easypanel-offer-showcase-premium-screenshot-link:hover .easypanel-offer-showcase-premium-screenshot-img {
	transform: scale(1.05);
}

/* Overlay on Hover */
.easypanel-offer-showcase-premium-screenshot-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
}

.easypanel-offer-showcase-premium-screenshot-link:hover .easypanel-offer-showcase-premium-screenshot-overlay {
	opacity: 1;
}

.easypanel-offer-showcase-premium-screenshot-overlay .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
}

/* Placeholder (when image doesn't exist) */
.easypanel-offer-showcase-premium-screenshot-placeholder {
	aspect-ratio: 16 / 10;
	min-height: 250px; /* Fallback for older browsers */
	background: #f6f8fa;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #959da5;
}

.easypanel-offer-showcase-premium-screenshot-placeholder .dashicons {
	font-size: 60px;
	width: 60px;
	height: 60px;
	margin-bottom: 10px;
}

.easypanel-offer-showcase-premium-screenshot-placeholder p {
	margin: 0;
	font-size: 13px;
	font-style: italic;
}

/* Screenshot Info (Title & Description) */
.easypanel-offer-showcase-premium-screenshot-info {
	padding: 24px;
}

.easypanel-offer-showcase-premium-screenshot-info h4 {
	margin: 0 0 12px 0;
	font-size: 19px;
	font-weight: 700;
	color: #1a1f26;
	line-height: 1.3;
}

.easypanel-offer-showcase-premium-screenshot-info p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #586069;
	font-weight: 400;
}


/* Features Summary Section */
.easypanel-offer-showcase-premium-features-summary {
	background: #f6f8fa;
	border: 2px solid #e1e4e8;
	border-radius: 12px;
	padding: 45px;
	margin-bottom: 40px;
}

.easypanel-offer-showcase-premium-features-summary h3 {
	text-align: center;
	font-size: 26px;
	color: #1a1f26;
	margin: 0 0 35px 0;
	font-weight: 700;
}

/* Features Grid */
.easypanel-offer-showcase-premium-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.easypanel-offer-showcase-premium-feature-item {
	background: #ffffff;
	border: 1px solid #e1e4e8;
	border-radius: 8px;
	padding: 22px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	transition: all 0.2s ease;
}

.easypanel-offer-showcase-premium-feature-item:hover {
	border-color: #0366d6;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.easypanel-offer-showcase-premium-feature-item .dashicons {
	color: #28a745;
	font-size: 26px;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	margin-top: 2px;
}

.easypanel-offer-showcase-premium-feature-item div {
	flex: 1;
}

.easypanel-offer-showcase-premium-feature-item strong {
	display: block;
	color: #1a1f26;
	font-size: 16px;
	margin-bottom: 5px;
	font-weight: 600;
}

.easypanel-offer-showcase-premium-feature-item span {
	display: block;
	color: #586069;
	font-size: 14px;
	line-height: 1.5;
}

/* CTA Section */
.easypanel-offer-showcase-premium-cta-section {
	text-align: center;
	padding: 50px;
	background: linear-gradient(135deg, #4A5C6A 0%, #B8784F 100%);
	border-radius: 12px;
	color: #ffffff;
}

.easypanel-offer-showcase-premium-cta-section h3 {
	font-size: 30px;
	margin: 0 0 18px 0;
	color: #ffffff;
	font-weight: 700;
}

.easypanel-offer-showcase-premium-cta-section p {
	color: #ffffff;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
}

.easypanel-offer-showcase-upgrade-button-large {
	padding: 16px 50px !important;
	font-size: 17px !important;
	background: #ffffff !important;
	color: #24292e !important;
	font-weight: 700;
	border: none;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	margin: 10px 0;
}

.easypanel-offer-showcase-upgrade-button-large:hover {
	background: #f8f9fa !important;
	color: #D68A5C !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Lightbox */
.easypanel-offer-showcase-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
}

.easypanel-offer-showcase-lightbox.active {
	display: block;
}

.easypanel-offer-showcase-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

.easypanel-offer-showcase-lightbox-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90%;
	max-height: 90%;
	z-index: 1;
}

.easypanel-offer-showcase-lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	display: block;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.easypanel-offer-showcase-lightbox-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid #e1e4e8;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	color: #24292e;
	transition: all 0.2s ease;
	padding: 0;
}

.easypanel-offer-showcase-lightbox-close:hover {
	background: #ffffff;
	color: #d63638;
	border-color: #d63638;
	transform: scale(1.1);
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
	.easypanel-offer-showcase-premium-gallery {
		grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
	}
}

/* Responsive: Mobile */
@media (max-width: 768px) {
	.easypanel-offer-showcase-premium-gallery {
		grid-template-columns: 1fr; /* Single column on mobile */
		gap: 20px;
	}

	.easypanel-offer-showcase-premium-features-grid {
		grid-template-columns: 1fr;
	}

	.easypanel-offer-showcase-premium-showcase-header h2 {
		font-size: 24px;
	}

	.easypanel-offer-showcase-lightbox-close {
		top: 10px;
		right: 10px;
	}
}

/* ==========================================================================
	SUBMIT BUTTON
	========================================================================== */

.easypanel-offer-showcase-submit-row {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #f0f0f0;
}

.easypanel-offer-showcase-submit-button {
	background: #007bff;
	color: #ffffff;
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.easypanel-offer-showcase-submit-button:hover {
	background: #0056b3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ==========================================================================
	ALIGNMENT BUTTONS
	========================================================================== */

.easypanel-offer-showcase-alignment-buttons {
	display: inline-flex;
	gap: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.easypanel-offer-showcase-align-btn {
	background: #ffffff;
	border: none;
	border-right: 1px solid #ddd;
	padding: 10px 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.easypanel-offer-showcase-align-btn:last-child {
	border-right: none;
}

.easypanel-offer-showcase-align-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #666;
}

.easypanel-offer-showcase-align-btn:hover {
	background: #f5f5f5;
}

.easypanel-offer-showcase-align-btn:hover .dashicons {
	color: #333;
}

.easypanel-offer-showcase-align-btn.active {
	background: #007bff;
}

.easypanel-offer-showcase-align-btn.active .dashicons {
	color: #ffffff;
}

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

@media (max-width: 768px) {
	.easypanel-offer-showcase-form-row {
		flex-direction: column;
	}

	.easypanel-offer-showcase-form-label {
		flex: 1;
		padding-right: 0;
		margin-bottom: 10px;
	}

	.easypanel-offer-showcase-form-field input[type="text"],
	.easypanel-offer-showcase-form-field select {
		max-width: 100%;
	}

	.easypanel-offer-showcase-tabs-nav {
		flex-wrap: wrap;
	}

	.easypanel-offer-showcase-tab-button {
		flex: 1;
		min-width: 120px;
	}
}

/* ==========================================================================
	QUIZ FEATURE
	========================================================================== */

/* Quiz form */
.easypanel-offer-showcase-quiz-form {
	max-width: 800px;
}

.easypanel-offer-showcase-quiz-question {
	margin-bottom: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-left: 4px solid #007bff;
	border-radius: 4px;
}

.easypanel-offer-showcase-quiz-question h3 {
	margin-top: 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
}

.easypanel-offer-showcase-quiz-question label {
	display: block;
	padding: 12px 15px;
	margin: 8px 0;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
}

.easypanel-offer-showcase-quiz-question label:hover {
	border-color: #007bff;
	background: #f8f9fa;
}

.easypanel-offer-showcase-quiz-question input[type="radio"] {
	margin-right: 10px;
}

.easypanel-offer-showcase-quiz-question input[type="radio"]:checked {
	accent-color: #007bff;
}

.easypanel-offer-showcase-quiz-question label:has(input[type="radio"]:checked) {
	border-color: #007bff;
	background: #f0f6fc;
	font-weight: 600;
}

/* Result cards */
.easypanel-offer-showcase-quiz-result {
	padding: 40px 30px;
	margin: 20px 0;
	border-radius: 8px;
	text-align: center;
	max-width: 700px;
}

.easypanel-offer-showcase-quiz-result.free {
	background: #d4edda;
	border: 3px solid #28a745;
}

.easypanel-offer-showcase-quiz-result.basic {
	background: #d1ecf1;
	border: 3px solid #17a2b8;
}

.easypanel-offer-showcase-quiz-result.pro {
	background: #fff3cd;
	border: 3px solid #ffc107;
}

.easypanel-offer-showcase-quiz-result-icon {
	font-size: 48px;
	margin-bottom: 15px;
	display: block;
}

.easypanel-offer-showcase-quiz-result h2 {
	margin: 10px 0 15px;
	font-size: 24px;
}

.easypanel-offer-showcase-quiz-result p {
	font-size: 16px;
	line-height: 1.6;
	margin: 15px 0;
	color: #333;
}

.easypanel-offer-showcase-quiz-result-button {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 24px;
	background: #007bff;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.2s;
}

.easypanel-offer-showcase-quiz-result-button:hover {
	background: #0056b3;
	color: #fff;
}

.easypanel-offer-showcase-quiz-retake {
	margin-top: 30px;
	text-align: center;
}

.easypanel-offer-showcase-quiz-retake button {
	background: #6c757d;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.easypanel-offer-showcase-quiz-retake button:hover {
	background: #5a6268;
}

/* Admin notice */
.easypanel-offer-showcase-quiz-notice {
	position: relative;
	padding: 15px 20px;
}

.easypanel-offer-showcase-quiz-notice h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.easypanel-offer-showcase-quiz-notice p {
	margin: 0 0 15px;
}

.easypanel-offer-showcase-quiz-notice-button {
	display: inline-block;
	padding: 8px 16px;
	background: #007bff;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
}

.easypanel-offer-showcase-quiz-notice-button:hover {
	background: #0056b3;
	color: #fff;
}
