/**
 * Free Trial Page Styles
 * Mobile-first responsive design
 *
 * Reuses theme variables and patterns from drummertube.css
 * Font: Montserrat (loaded globally by theme)
 *
 * @package DrummerTube
 * @since 2.1.0
 */

/* =============================================================================
   BASE STYLES
   References central design system from variables.css
   ============================================================================= */
.free-trial-page {
	/* Component aliases referencing design system */
	--ft-primary: var(--dt-accent, #00F0FF);
	--ft-bg: var(--dt-bg-darkest, #0a0a0a);
	--ft-card: var(--dt-bg-card-alt, #24272E);
	--ft-card-alt: var(--dt-bg-base, #1a1a1a);
	--ft-border: var(--dt-border-light, #333);
	--ft-text: var(--dt-text-primary, #fff);
	--ft-muted: var(--dt-text-muted, #888);
	--ft-success: var(--dt-success, #00cc66);
	--ft-error: var(--dt-error, #ff4444);

	background-color: var(--ft-bg);
	color: var(--ft-text);
	font-family: var(--dt-font-primary, "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif);
	line-height: 1.6;
	min-height: 100vh;
}

/* CTA button hiding is now handled in PHP (header-menu.php) for reliability */

.free-trial-page *, .free-trial-page *::before, .free-trial-page *::after {
	box-sizing: border-box;
}

.ft-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* =============================================================================
   HERO - Above the fold, conversion focused
   ============================================================================= */
.ft-hero {
	padding: 60px 0 50px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Hero Background Image */
.ft-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ft-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	filter: brightness(0.5);
}

/* Overlay gradient for text readability */
.ft-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to bottom,
		rgba(10, 10, 10, 0.2) 0%,
		rgba(10, 10, 10, 0.5) 50%,
		rgba(10, 10, 10, 0.95) 100%
	);
}

/* Accent glow on top */
.ft-hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 300px;
	z-index: 1;
	background: radial-gradient(ellipse at top, rgba(0,240,255,0.15) 0%, transparent 70%);
	pointer-events: none;
}

.ft-hero .ft-container {
	position: relative;
	z-index: 2;
}

.ft-hero-content {
	max-width: 680px;
	margin: 0 auto;
}

.ft-title {
	font-size: 32px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.ft-subtitle {
	font-size: 18px;
	color: #ccc;
	margin: 0 0 32px;
	font-weight: 400;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* =============================================================================
   FORM - Primary CTA, minimal friction
   Uses theme button pattern: #00F0FF bg, #000 text, 50px radius
   ============================================================================= */
.ft-form {
	max-width: 520px;
	margin: 0 auto 20px;
}

.ft-form-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ft-form input[type="email"] {
	width: 100%;
	height: 56px;
	padding: 0 24px;
	font-size: 16px;
	font-family: inherit;
	border: 2px solid var(--ft-border);
	border-radius: var(--dt-radius-pill, 50px);
	background: var(--ft-card-alt);
	color: var(--ft-text);
	outline: none;
	transition: border-color var(--dt-transition-base, 0.2s), box-shadow var(--dt-transition-base, 0.2s);
}

.ft-form input[type="email"]:focus {
	border-color: var(--ft-primary);
	box-shadow: var(--dt-input-focus-shadow, 0 0 0 3px rgba(0,240,255,0.15));
}

.ft-form input[type="email"]::placeholder {
	color: var(--ft-muted);
}

/* Primary button - matches theme pattern */
.free-trial-page .ft-btn,
.ft-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 56px !important;
	padding: 0 24px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	font-family: inherit !important;
	background-color: #00F0FF !important;
	background: #00F0FF !important;
	color: #000 !important;
	border: none !important;
	border-radius: 50px !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
	position: relative !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

.free-trial-page .ft-btn:hover,
.ft-btn:hover {
	background-color: #00d4e0 !important;
	background: #00d4e0 !important;
	color: #000 !important;
}

.ft-btn:active { transform: translateY(0); }
.ft-btn:disabled { cursor: not-allowed; opacity: 0.7; }

.ft-btn.loading .ft-btn-text { visibility: hidden; }
.ft-btn-loading { display: none; position: absolute; }
.ft-btn.loading .ft-btn-loading { display: block; }

.ft-spinner {
	width: 22px;
	height: 22px;
	animation: ft-spin 1s linear infinite;
}

@keyframes ft-spin { 100% { transform: rotate(360deg); } }

/* Honeypot */
.ft-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.ft-form-note {
	font-size: 13px;
	color: var(--ft-muted);
	margin-top: 12px;
	text-align: center;
}

.ft-error {
	color: var(--ft-error);
	font-size: 14px;
	margin-top: 10px;
	text-align: center;
}

.ft-error:empty { display: none; }
.ft-error a { color: var(--ft-primary); text-decoration: underline; }

/* =============================================================================
   TRUST BADGES - Social proof near CTA
   ============================================================================= */
.ft-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin-top: 24px;
}

.ft-badge {
	font-size: 13px;
	color: var(--ft-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.ft-badge-icon { color: var(--ft-success); font-weight: bold; }

/* =============================================================================
   SUCCESS MODAL
   ============================================================================= */
.ft-success-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.92);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ft-success-modal.active { display: flex; }

.ft-success-content {
	background: var(--ft-card);
	border-radius: 16px;
	padding: 40px 28px;
	text-align: center;
	max-width: 420px;
	width: 100%;
	animation: ft-pop 0.3s ease;
}

@keyframes ft-pop {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.ft-success-icon {
	width: 56px;
	height: 56px;
	background: var(--ft-success);
	color: #fff;
	font-size: 28px;
	font-weight: bold;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.ft-success-content h2 {
	font-size: 26px;
	margin: 0 0 14px;
}

.ft-success-content p {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.5;
}

.ft-success-main {
	color: #fff;
	font-weight: 500;
}

.ft-success-sub {
	color: #ccc;
}

.ft-success-spam {
	color: var(--ft-muted);
	font-size: 13px;
	margin-top: 16px;
}

.ft-btn-success { margin-top: 20px; }

/* =============================================================================
   STATS - Quick value signals
   ============================================================================= */
.ft-stats {
	padding: 36px 0;
	background: var(--ft-card-alt);
}

.ft-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	text-align: center;
}

.ft-stat-number {
	display: block;
	font-size: 34px;
	font-weight: 800;
	color: var(--ft-primary);
	line-height: 1;
}

.ft-stat-label {
	display: block;
	font-size: 13px;
	color: var(--ft-muted);
	margin-top: 6px;
	font-weight: 500;
}

/* =============================================================================
   SECTION COMMON
   ============================================================================= */
.ft-section-title {
	font-size: 26px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 36px;
}

/* =============================================================================
   TESTIMONIALS - Social proof with faces
   ============================================================================= */
.ft-testimonials {
	padding: 56px 0;
}

.ft-testimonials-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.ft-testimonial {
	background: var(--ft-card);
	border-radius: 16px;
	padding: 28px 24px;
	border: 1px solid var(--ft-border);
	transition: border-color 0.2s, transform 0.2s;
}

.ft-testimonial:hover {
	border-color: rgba(0, 240, 255, 0.3);
	transform: translateY(-2px);
}

.ft-testimonial-stars {
	color: #FFD700;
	font-size: 16px;
	letter-spacing: 2px;
	margin-bottom: 14px;
}

.ft-testimonial-quote {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ft-text);
	margin: 0 0 20px;
	font-style: italic;
}

.ft-testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ft-testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--ft-primary);
}

.ft-testimonial-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ft-testimonial-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--ft-text);
}

.ft-testimonial-detail {
	font-size: 12px;
	color: var(--ft-muted);
}

/* =============================================================================
   BENEFITS - Value proposition cards
   Uses theme card style: #24272E bg, 20px radius
   ============================================================================= */
.ft-benefits { padding: 56px 0; }

.ft-benefits-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ft-benefit-card {
	background: var(--ft-card);
	border-radius: 20px;
	padding: 28px 22px;
	text-align: center;
	transition: transform 0.2s;
}

.ft-benefit-card:hover { transform: translateY(-4px); }

.ft-benefit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: rgba(0, 240, 255, 0.1);
	border-radius: 12px;
}

.ft-benefit-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: #00F0FF;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ft-benefit-card h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 8px;
}

.ft-benefit-card p {
	font-size: 14px;
	color: var(--ft-muted);
	margin: 0;
	line-height: 1.5;
}

/* =============================================================================
   FEATURED SONGS - Uses existing song-card component
   ============================================================================= */
.ft-featured {
	padding: 56px 0;
	background: var(--ft-bg);
}

.ft-featured .ft-container {
	max-width: 100%;
	padding: 0 40px;
}

.ft-songs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

@media (min-width: 1200px) {
	.ft-songs-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.ft-featured .ft-container {
		padding: 0 20px;
	}

	.ft-songs-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* Song card styling for free trial page - reuse global --sc-bg variable */
.free-trial-page .song-card,
.free-trial-page article.song-card {
	background: var(--sc-bg, #1a1a1a);
	border: 1px solid var(--ft-border);
}

/* Disable click/link behavior for song cards on free trial page */
.free-trial-page .song-card--no-link {
	cursor: default;
}

.free-trial-page .song-card--no-link:hover {
	transform: none;
	border-color: var(--ft-border);
}

/* Ensure song card text doesn't overflow */
.ft-featured .song-card__title {
	word-break: break-word;
}

.ft-featured .song-card__artist {
	word-break: break-word;
}

/* =============================================================================
   HOW IT WORKS - Reduce uncertainty
   ============================================================================= */
.ft-how-it-works { padding: 56px 0; }

.ft-steps {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.ft-step {
	text-align: center;
	max-width: 260px;
}

.ft-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--ft-primary);
	color: #000;
	font-size: 20px;
	font-weight: 700;
	border-radius: 50%;
	margin: 0 auto 12px;
}

.ft-step h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
}

.ft-step p {
	font-size: 13px;
	color: var(--ft-muted);
	margin: 0;
}

.ft-step-connector {
	width: 2px;
	height: 24px;
	background: var(--ft-border);
}

/* =============================================================================
   FINAL CTA - Second conversion opportunity
   ============================================================================= */
.ft-final-cta {
	padding: 56px 0;
	background: linear-gradient(135deg, rgba(0,240,255,0.1), transparent);
	text-align: center;
}

.ft-final-cta h2 {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 10px;
}

.ft-final-cta > .ft-container > p {
	font-size: 15px;
	color: var(--ft-muted);
	margin: 0 0 28px;
}

/* =============================================================================
   FAQ - Handle objections
   Uses theme accordion style
   ============================================================================= */
.ft-faq {
	padding: 56px 0;
	background: var(--ft-card-alt);
}

.ft-faq-list {
	max-width: 660px;
	margin: 0 auto;
}

.ft-faq-item {
	background: var(--ft-card);
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
}

.ft-faq-item summary {
	padding: 18px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.2s;
}

.ft-faq-item summary:hover { background: rgba(255,255,255,0.02); }
.ft-faq-item summary::-webkit-details-marker { display: none; }

.ft-faq-item summary::after {
	content: '+';
	font-size: 22px;
	font-weight: 300;
	color: var(--ft-primary);
	transition: transform 0.2s;
	flex-shrink: 0;
	margin-left: 14px;
}

.ft-faq-item[open] summary::after { transform: rotate(45deg); }

.ft-faq-item p {
	padding: 0 22px 18px;
	margin: 0;
	font-size: 14px;
	color: #aaa;
	line-height: 1.6;
}

.ft-faq-contact {
	text-align: center;
	margin-top: 28px;
	font-size: 14px;
	color: var(--ft-muted);
}

.ft-faq-contact a {
	color: var(--ft-primary);
	text-decoration: none;
	font-weight: 500;
	transition: opacity 0.2s;
}

.ft-faq-contact a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* =============================================================================
   TABLET (768px+)
   ============================================================================= */
@media (min-width: 768px) {
	.ft-hero { padding: 80px 0 60px; }
	.ft-title { font-size: 42px; }
	.ft-subtitle { font-size: 19px; }

	.ft-form-row {
		flex-direction: row;
		gap: 0;
	}

	.ft-form input[type="email"] {
		flex: 1;
		border-radius: 28px 0 0 28px !important;
		border-right: none !important;
		min-width: 0;
	}

	.ft-form input[type="email"]:focus {
		border-right: none !important;
	}

	.free-trial-page .ft-form .ft-btn,
	.ft-form .ft-btn {
		border-radius: 0 28px 28px 0 !important;
		margin-left: -1px;
	}

	.ft-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
	.ft-benefits-grid { grid-template-columns: repeat(2, 1fr); }
	.ft-songs-grid { grid-template-columns: repeat(2, 1fr); }

	.ft-steps {
		flex-direction: row;
		justify-content: center;
		gap: 0;
	}

	.ft-step {
		flex: 1;
		max-width: none;
		padding: 0 16px;
	}

	.ft-step-connector {
		width: 50px;
		height: 2px;
		margin-top: 24px;
		flex-shrink: 0;
	}
}

/* =============================================================================
   DESKTOP (1024px+)
   ============================================================================= */
@media (min-width: 1024px) {
	.ft-hero { padding: 100px 0 80px; }
	.ft-title { font-size: 50px; }

	.ft-benefits-grid { grid-template-columns: repeat(4, 1fr); }
	.ft-songs-grid { grid-template-columns: repeat(3, 1fr); }

	.ft-step-connector { width: 70px; }
	.ft-final-cta h2 { font-size: 32px; }
}

/* =============================================================================
   LARGE DESKTOP (1440px+)
   ============================================================================= */
@media (min-width: 1440px) {
	.ft-hero { padding: 120px 0 100px; }
	.ft-title { font-size: 56px; }
	.ft-container { max-width: 1200px; }
}

/* =============================================================================
   SMALL MOBILE (max-width: 479px)
   ============================================================================= */
@media (max-width: 479px) {
	.ft-hero { padding: 40px 0 36px; }
	.ft-title { font-size: 26px; }
	.ft-subtitle { font-size: 15px; margin-bottom: 24px; }

	.ft-form input[type="email"] {
		height: 50px;
		padding: 0 18px;
		font-size: 16px; /* Prevents iOS zoom */
	}

	.free-trial-page .ft-btn,
	.ft-btn {
		height: 50px !important;
		padding: 0 18px !important;
		font-size: 14px !important;
	}

	.ft-stats-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.ft-stat-number { font-size: 26px; }
	.ft-stat-label { font-size: 11px; }

	.ft-section-title { font-size: 22px; margin-bottom: 28px; }

	.ft-testimonial { padding: 20px 18px; }
	.ft-testimonial-quote { font-size: 14px; }

	.ft-benefit-card { padding: 22px 18px; }
	.ft-benefit-icon { width: 48px; height: 48px; }

	.ft-step-number { width: 42px; height: 42px; font-size: 18px; }
	.ft-step h3 { font-size: 15px; }
	.ft-step p { font-size: 12px; }

	.ft-final-cta h2 { font-size: 22px; }

	.ft-faq-item summary { padding: 14px 18px; font-size: 14px; }
	.ft-faq-item p { padding: 0 18px 14px; font-size: 13px; }
}

/* =============================================================================
   EXTRA SMALL MOBILE (max-width: 359px)
   ============================================================================= */
@media (max-width: 359px) {
	.ft-container { padding: 0 12px; }
	.ft-hero { padding: 32px 0 28px; }
	.ft-title { font-size: 22px; }
	.ft-subtitle { font-size: 14px; }

	.ft-form input[type="email"] { height: 46px; padding: 0 14px; }

	.free-trial-page .ft-btn,
	.ft-btn {
		height: 46px !important;
		padding: 0 14px !important;
	}

	.ft-stat-number { font-size: 22px; }
	.ft-stat-label { font-size: 10px; }

	.ft-section-title { font-size: 20px; }

	.ft-testimonials-grid { gap: 12px; }

	.ft-success-content { padding: 28px 20px; }
	.ft-success-icon { width: 48px; height: 48px; font-size: 24px; }
	.ft-success-content h2 { font-size: 22px; }
}

/* =============================================================================
   LANDSCAPE MODE ON MOBILE
   ============================================================================= */
@media (max-width: 900px) and (orientation: landscape) {
	.ft-hero { padding: 32px 0 24px; }
	.ft-title { font-size: 28px; }
	.ft-subtitle { font-size: 15px; margin-bottom: 20px; }

	.ft-stats { padding: 24px 0; }
	.ft-stat-number { font-size: 28px; }

	.ft-testimonials,
	.ft-benefits,
	.ft-featured,
	.ft-how-it-works,
	.ft-faq { padding: 36px 0; }

	.ft-section-title { margin-bottom: 24px; }

	.ft-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
	.ft-benefits-grid { grid-template-columns: repeat(2, 1fr); }

	.ft-final-cta { padding: 36px 0; }
}
