/**
 * Pay Per Profile - Frontend Styles
 */

:root {
	--ppp-primary: #4f46e5;
	--ppp-primary-hover: #4338ca;
	--ppp-success: #10b981;
	--ppp-warning: #f59e0b;
	--ppp-danger: #ef4444;
	--ppp-dark: #1f2937;
	--ppp-light: #f9fafb;
	--ppp-border: #e5e7eb;
	--ppp-radius: 12px;
	--ppp-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.ppp-profile-container {
	max-width: 1000px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ppp-dark);
}

/* Alerts */
.ppp-alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-radius: var(--ppp-radius);
	margin-bottom: 24px;
	font-size: 15px;
}
.ppp-alert-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.ppp-alert-icon {
	font-size: 20px;
	font-weight: bold;
}

/* Profile Header */
.ppp-profile-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ppp-border);
}
.ppp-tagline {
	font-size: 18px;
	color: #6b7280;
	margin: 4px 0 12px 0;
}
.ppp-meta-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.ppp-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 9999px;
}
.ppp-badge-meta {
	background: #f3f4f6;
	color: #374151;
}
.ppp-badge-unlocked {
	background: #d1fae5;
	color: #065f46;
}
.ppp-badge-locked {
	background: #fee2e2;
	color: #991b1b;
}

/* Sections */
.ppp-section {
	margin-bottom: 35px;
}
.ppp-section h3 {
	font-size: 20px;
	margin-bottom: 15px;
	font-weight: 700;
	color: #111827;
}

/* Free & HD Gallery Grid */
.ppp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.ppp-gallery-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: var(--ppp-radius);
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ppp-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.ppp-gallery-thumb:hover {
	transform: translateY(-3px);
	box-shadow: var(--ppp-shadow);
}
.ppp-gallery-thumb:hover img {
	transform: scale(1.05);
}
.ppp-view-hd-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0,0,0,0.75);
	color: #fff;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
}

/* Locked Paywall Container */
.ppp-locked-teaser-wrapper {
	position: relative;
	margin-top: 40px;
	padding: 40px 20px;
	background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
	overflow: hidden;
}

.ppp-paywall-box {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
	background: #ffffff;
	padding: 40px 30px;
	border-radius: 16px;
	box-shadow: var(--ppp-shadow);
	position: relative;
	z-index: 2;
}

.ppp-lock-icon {
	font-size: 42px;
	margin-bottom: 12px;
}

.ppp-paywall-box h2 {
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 10px;
	color: #111827;
}

.ppp-paywall-sub {
	color: #4b5563;
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 24px;
}

.ppp-price-tag {
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.ppp-price-amount {
	font-size: 38px;
	font-weight: 900;
	color: var(--ppp-primary);
}

.ppp-price-duration {
	font-size: 13px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

/* Checkout Form */
.ppp-input-group {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.ppp-email-input {
	flex: 1;
	padding: 14px 16px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ppp-email-input:focus {
	border-color: var(--ppp-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.ppp-submit-btn {
	background: var(--ppp-primary);
	color: #ffffff;
	border: none;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.1s ease;
}
.ppp-submit-btn:hover {
	background: var(--ppp-primary-hover);
}
.ppp-submit-btn:active {
	transform: scale(0.98);
}
.ppp-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ppp-form-feedback {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 12px;
	text-align: left;
}
.ppp-form-feedback.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.ppp-form-feedback.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.ppp-guarantee-note {
	font-size: 12px;
	color: #6b7280;
	margin-top: 10px;
}

/* Restore Access */
.ppp-restore-access {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--ppp-border);
}
.ppp-restore-btn {
	background: none;
	border: none;
	color: var(--ppp-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.ppp-restore-box {
	margin-top: 15px;
	padding: 15px;
	background: #f9fafb;
	border-radius: 8px;
	text-align: left;
}
.ppp-restore-box p {
	font-size: 13px;
	margin-bottom: 10px;
	color: #4b5563;
}
.ppp-restore-submit-btn {
	background: #374151;
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
}

/* Unlocked Card Content */
.ppp-unlocked-card {
	background: #ffffff;
	border: 2px solid #a7f3d0;
	border-radius: 16px;
	padding: 30px;
	margin-top: 30px;
	box-shadow: var(--ppp-shadow);
}
.ppp-unlocked-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}
.ppp-unlocked-badge {
	display: inline-block;
	background: #ecfdf5;
	color: #047857;
	font-weight: 700;
	font-size: 14px;
	padding: 6px 14px;
	border-radius: 9999px;
	margin-bottom: 6px;
}

/* Contact Details */
.ppp-contact-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}
.ppp-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	color: #fff;
	transition: opacity 0.2s ease;
}
.ppp-contact-btn:hover {
	opacity: 0.9;
	color: #fff;
}
.ppp-btn-call {
	background: #2563eb;
}
.ppp-btn-whatsapp {
	background: #16a34a;
}
.ppp-btn-email {
	background: #4b5563;
}
.ppp-socials-list ul {
	margin: 8px 0 0 20px;
	padding: 0;
}
.ppp-socials-list li {
	margin-bottom: 6px;
}

/* Grid Shortcode */
.ppp-profiles-grid {
	display: grid;
	gap: 24px;
	margin: 20px 0;
}
.ppp-cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ppp-cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ppp-cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.ppp-profile-card {
	background: #ffffff;
	border: 1px solid var(--ppp-border);
	border-radius: var(--ppp-radius);
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}
.ppp-profile-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ppp-shadow);
}
.ppp-card-image {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f3f4f6;
	overflow: hidden;
}
.ppp-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ppp-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: #9ca3af;
}
.ppp-card-overlay-badge {
	position: absolute;
	top: 12px;
	right: 12px;
}
.ppp-card-badge {
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 9999px;
}
.ppp-badge-price {
	background: rgba(17, 24, 39, 0.85);
	color: #fff;
	backdrop-filter: blur(4px);
}
.ppp-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.ppp-card-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px 0;
}
.ppp-card-title a {
	color: #111827;
	text-decoration: none;
}
.ppp-card-tagline {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 10px 0;
}
.ppp-card-location {
	font-size: 13px;
	color: #4b5563;
	margin: 0 0 16px 0;
}
.ppp-card-action {
	margin-top: auto;
}
.ppp-btn-view {
	display: block;
	text-align: center;
	background: var(--ppp-primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s ease;
}
.ppp-btn-view:hover {
	background: var(--ppp-primary-hover);
	color: #fff;
}

/* My Profiles Account Bar */
.ppp-account-bar {
	background: #f3f4f6;
	padding: 14px 20px;
	border-radius: 8px;
	margin-bottom: 24px;
}
.ppp-lookup-box {
	max-width: 500px;
	margin: 40px auto;
	padding: 30px;
	background: #ffffff;
	border: 1px solid var(--ppp-border);
	border-radius: var(--ppp-radius);
	text-align: center;
	box-shadow: var(--ppp-shadow);
}

@media (max-width: 640px) {
	.ppp-input-group {
		flex-direction: column;
	}
	.ppp-submit-btn {
		width: 100%;
	}
	.ppp-contact-grid {
		flex-direction: column;
	}
}
