/**
 * SaaS Dashboard Page Builder Frontend Styles
 */

/* Container and base spacing */
.saas-pb-frontend-wrapper {
	--pb-accent: var(--color-accent, #3b82f6);
	--pb-accent-light: var(--color-accent-light, #60a5fa);
	--pb-card-bg: var(--card-bg, #111c2f);
	--pb-card-border: var(--card-border, #1e293b);
	--pb-text-primary: var(--color-text-primary, #e5e7eb);
	--pb-text-secondary: var(--color-text-secondary, #9ca3af);

	display: flex;
	flex-direction: column;
	gap: 60px;
	width: 100%;
}

.pb-container {
	width: min(100%, var(--layout-width, 1600px));
	margin: 0 auto;
	padding: 0 var(--space-lg, 24px);
	box-sizing: border-box;
}

.pb-section {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

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

.pb-section-title {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--pb-text-primary);
	margin-bottom: 36px;
	line-height: 1.2;
}

/* Premium Glow Card */
.pb-glow-card {
	background: var(--pb-card-bg);
	border: 1px solid var(--pb-card-border);
	border-radius: 24px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pb-glow-card:hover {
	transform: translateY(-4px);
	border-color: var(--pb-accent);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Hero Section */
.pb-hero-section {
	padding: 100px 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 32px;
	overflow: hidden;
	position: relative;
	background-color: var(--pb-card-bg);
	border: 1px solid var(--pb-card-border);
}
.pb-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
	z-index: 1;
}
.pb-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}
.pb-hero-title {
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	font-weight: 900;
	color: #fff;
	line-height: 1.1;
	margin-bottom: 24px;
	letter-spacing: -0.03em;
}
.pb-hero-subtitle {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	color: var(--pb-text-secondary);
	line-height: 1.6;
}

/* Mission Section */
.pb-mission-card {
	background: var(--pb-card-bg);
	border: 1px solid var(--pb-card-border);
	border-radius: 28px;
	padding: 48px;
}
.pb-mission-content {
	font-size: 1.15rem;
	line-height: 1.8;
	color: var(--pb-text-secondary);
}

/* Stats Section */
.pb-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
.pb-stat-card {
	text-align: center;
	padding: 40px 30px;
}
.pb-stat-icon {
	color: var(--pb-accent-light);
	margin-bottom: 16px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}
.pb-stat-val {
	font-size: 3.25rem;
	font-weight: 800;
	color: #fff;
	line-height: 1;
	margin-bottom: 10px;
}
.pb-stat-lbl {
	font-size: 1rem;
	color: var(--pb-text-secondary);
	font-weight: 500;
}

/* Values Section */
.pb-values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}
.pb-value-card {
	padding: 36px;
}
.pb-value-icon {
	color: var(--pb-accent-light);
	margin-bottom: 20px;
}
.pb-value-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 12px;
}
.pb-value-desc {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--pb-text-secondary);
}

/* Timeline Section */
.pb-timeline-wrapper {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 0;
}
.pb-timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--pb-card-border);
	transform: translateX(-50%);
}
.pb-timeline-item {
	display: flex;
	justify-content: flex-end;
	position: relative;
	margin-bottom: 40px;
	width: 50%;
}
.pb-timeline-item.pb-timeline-right {
	align-self: flex-end;
	margin-left: 50%;
	justify-content: flex-start;
}
.pb-timeline-badge {
	position: absolute;
	right: -45px;
	top: 14px;
	background: var(--pb-accent);
	color: #fff;
	width: 90px;
	height: 36px;
	border-radius: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
	z-index: 2;
}
.pb-timeline-right .pb-timeline-badge {
	left: -45px;
	right: auto;
}
.pb-timeline-panel {
	width: 90%;
	padding: 24px;
}
.pb-timeline-left .pb-timeline-panel {
	margin-right: 40px;
}
.pb-timeline-right .pb-timeline-panel {
	margin-left: 40px;
}
.pb-timeline-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}
.pb-timeline-desc {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--pb-text-secondary);
}

@media (max-width: 768px) {
	.pb-timeline-line {
		left: 20px;
	}
	.pb-timeline-item {
		width: 100%;
		margin-left: 0 !important;
		justify-content: flex-start !important;
	}
	.pb-timeline-badge {
		left: 0 !important;
		right: auto !important;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		font-size: 0.8rem;
		top: 12px;
	}
	.pb-timeline-panel {
		width: calc(100% - 60px);
		margin-left: 60px !important;
		margin-right: 0 !important;
	}
}

/* Team Section */
.pb-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}
.pb-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 36px 24px;
}
.pb-team-avatar-wrap {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 20px;
	border: 3px solid var(--pb-card-border);
	background: #0b1322;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pb-team-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pb-team-avatar-placeholder {
	color: var(--pb-text-secondary);
}
.pb-team-name {
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
}
.pb-team-role {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pb-accent-light);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}
.pb-team-desc {
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--pb-text-secondary);
	margin-bottom: 20px;
}
.pb-team-socials {
	display: flex;
	gap: 12px;
	margin-top: auto;
}
.pb-team-socials a {
	color: var(--pb-text-secondary);
	transition: color 0.2s;
}
.pb-team-socials a:hover {
	color: var(--pb-accent-light);
}

/* CTA Section */
.pb-cta-card {
	padding: 56px 40px;
}
.pb-cta-title {
	font-size: 2.25rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 16px;
}
.pb-cta-desc {
	font-size: 1.1rem;
	color: var(--pb-text-secondary);
	max-width: 600px;
	margin: 0 auto 28px auto;
	line-height: 1.6;
}

/* Contact Info Section */
.pb-contact-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}
.pb-info-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.pb-info-icon {
	color: var(--pb-accent-light);
	background: rgba(59, 130, 246, 0.1);
	width: 54px;
	height: 54px;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}
.pb-info-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 10px;
}
.pb-info-link {
	font-weight: 600;
	color: var(--pb-accent-light);
	font-size: 0.95rem;
}
.pb-info-link:hover {
	text-decoration: underline;
}
.pb-info-text {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--pb-text-secondary);
}

/* Contact Form Section */
.pb-contact-form-card {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px;
}
.pb-custom-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.pb-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
@media (max-width: 576px) {
	.pb-form-row {
		grid-template-columns: 1fr;
	}
}
.pb-form-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: left;
}
.pb-form-field label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pb-text-primary);
}
.pb-form-field input, .pb-form-field textarea {
	background: rgba(7, 17, 32, 0.5);
	border: 1px solid var(--pb-card-border);
	border-radius: 12px;
	padding: 12px 16px;
	color: #fff;
	font-size: 0.95rem;
	transition: all 0.25s;
}
.pb-form-field input:focus, .pb-form-field textarea:focus {
	outline: none;
	border-color: var(--pb-accent);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
	background: rgba(7, 17, 32, 0.8);
}
.pb-form-submit-wrap {
	text-align: center;
	margin-top: 10px;
}
.pb-form-status {
	padding: 12px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	margin-top: 15px;
	text-align: center;
}
.pb-status-loading {
	background: rgba(59, 130, 246, 0.1);
	color: var(--pb-accent-light);
	border: 1px solid rgba(59, 130, 246, 0.2);
}
.pb-status-success {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Map Section */
.pb-map-card {
	padding: 10px;
}
.pb-map-responsive {
	overflow: hidden;
	padding-bottom: 56.25%;
	position: relative;
	height: 0;
	border-radius: 16px;
}
.pb-map-responsive iframe {
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	position: absolute;
	border: 0;
}

/* Socials Section */
.pb-socials-list {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 24px;
}
.pb-social-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 100px;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: all 0.25s;
}
.pb-social-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.pb-social-btn:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
}
.pb-fb:hover {
	background: rgba(24, 119, 242, 0.15);
	border-color: rgba(24, 119, 242, 0.4);
	color: #1877f2;
}
.pb-discord:hover {
	background: rgba(88, 101, 242, 0.15);
	border-color: rgba(88, 101, 242, 0.4);
	color: #5865f2;
}
.pb-yt:hover {
	background: rgba(255, 0, 0, 0.1);
	border-color: rgba(255, 0, 0, 0.3);
	color: #ff0000;
}
.pb-insta:hover {
	background: rgba(225, 48, 108, 0.1);
	border-color: rgba(225, 48, 108, 0.3);
	color: #e1306c;
}
.pb-linkedin:hover {
	background: rgba(10, 102, 194, 0.15);
	border-color: rgba(10, 102, 194, 0.4);
	color: #0a66c2;
}
