/**
 * Linktree Template - Custom Styling
 * Mengikuti style FUNJI dengan tema dark minimalis
 */

/* ============================================
   RESET & BASE (linktree-specific)
   ============================================ */
.linktree-template {
	background: #1a1f2e !important;
	color: #fff;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	overflow-x: hidden;
}

.linktree-template .nv-content-wrap {
	padding: 0 !important;
	margin: 0 !important;
}

.linktree-template .header-menu-sidebar,
.linktree-template .site-header,
.linktree-template .site-footer {
	display: none !important;
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.linktree-main-wrapper {
	min-height: 100vh;
	background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 100%);
	padding: 40px 20px;
}

.linktree-content-container {
	max-width: 680px;
	margin: 0 auto;
}

.linktree-content-column {
	width: 100%;
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.linktree-profile {
	text-align: center;
	margin-bottom: 32px;
	animation: fadeInUp 0.6s ease-out;
}

.linktree-avatar {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linktree-avatar:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.linktree-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.linktree-name {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #fff;
	line-height: 1.2;
}

.linktree-tagline {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	line-height: 1.5;
}

/* ============================================
   MAIN LINK (Featured)
   ============================================ */
.linktree-main-link {
	margin-bottom: 32px;
	animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.linktree-link-card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 20px 24px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	text-decoration: none;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.linktree-link-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.linktree-link-card:hover::before {
	opacity: 1;
}

.linktree-link-card:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	color: #dddddd;
}

.linktree-link-card.linktree-main {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: transparent;
	font-weight: 600;
	font-size: 17px;
	padding: 24px;
}

.linktree-link-card.linktree-main:hover {
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4);
}

.linktree-link-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.linktree-link-number {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	flex-shrink: 0;
}

.linktree-link-text {
	flex: 1;
	text-align: left;
}

.linktree-main .linktree-link-text {
	text-align: center;
}

/* ============================================
   DIVIDER
   ============================================ */
.linktree-divider {
	text-align: center;
	margin: 40px 0;
	position: relative;
	animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.linktree-divider::before,
.linktree-divider::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 30%;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2));
}

.linktree-divider::before {
	left: 0;
}

.linktree-divider::after {
	right: 0;
	background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.2));
}

.linktree-divider span {
	display: inline-block;
	padding: 0 20px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
	background: #1a1f2e;
}

/* ============================================
   OTHER LINKS
   ============================================ */
.linktree-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 40px;
}

.linktree-links .linktree-link-card {
	animation: fadeInUp 0.6s ease-out backwards;
}

.linktree-links .linktree-link-card:nth-child(1) {
	animation-delay: 0.3s;
}

.linktree-links .linktree-link-card:nth-child(2) {
	animation-delay: 0.35s;
}

/* ============================================
   SOCIAL MEDIA SECTION
   ============================================ */
.linktree-social {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 40px;
}

.linktree-social-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	transition: all 0.3s ease;
	animation: fadeInUp 0.6s ease-out backwards;
}

.linktree-social-card:nth-child(1) {
	animation-delay: 0.4s;
}

.linktree-social-card:nth-child(2) {
	animation-delay: 0.45s;
}

.linktree-social-card:nth-child(3) {
	animation-delay: 0.5s;
}

.linktree-social-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
}

.linktree-social-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #fff;
	transition: transform 0.3s ease;
}

.linktree-social-card:hover .linktree-social-icon {
	transform: scale(1.1);
}

.linktree-social-icon svg {
	width: 24px;
	height: 24px;
}

.linktree-tiktok-icon {
	background: #000 !important;
}

.linktree-youtube-icon {
	background: #ff0000 !important;
}

.linktree-social-info {
	flex: 1;
}

.linktree-social-name {
	font-weight: 600;
	font-size: 16px;
	color: #fff;
	margin-bottom: 2px;
}

.linktree-social-handle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}

.linktree-social-btn {
	padding: 10px 24px;
	background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.linktree-social-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(240, 148, 51, 0.3);
}

.linktree-tiktok-btn {
	background: #000 !important;
}

.linktree-tiktok-btn:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

.linktree-youtube-btn {
	background: #ff0000 !important;
}

.linktree-youtube-btn:hover {
	box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4) !important;
}

/* ============================================
   BRAND ENDORSEMENT SECTION
   ============================================ */
.linktree-brand-section {
	text-align: center;
	padding: 32px 24px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	margin-bottom: 40px;
	animation: fadeInUp 0.6s ease-out 0.55s backwards;
}

.linktree-brand-text {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 16px 0;
	line-height: 1.6;
}

.linktree-brand-btn {
	display: inline-block;
	padding: 14px 32px;
	background: #10b981;
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
}

.linktree-brand-btn:hover {
	background: #059669;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
	color: #dddddd;
}

/* ============================================
   FOOTER
   ============================================ */
.linktree-footer {
	text-align: center;
	padding: 24px 0;
	animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.linktree-footer p {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
	.linktree-main-wrapper {
		padding: 32px 16px;
	}

	.linktree-name {
		font-size: 24px;
	}

	.linktree-tagline {
		font-size: 15px;
	}

	.linktree-link-card {
		padding: 16px 20px;
		font-size: 15px;
	}

	.linktree-link-card.linktree-main {
		padding: 20px;
		font-size: 16px;
	}

	.linktree-social-card {
		padding: 16px;
	}

	.linktree-social-icon {
		width: 48px;
		height: 48px;
	}

	.linktree-social-icon svg {
		width: 22px;
		height: 22px;
	}

	.linktree-brand-section {
		padding: 24px 20px;
	}

	.linktree-brand-text {
		font-size: 14px;
	}

	.linktree-divider::before,
	.linktree-divider::after {
		width: 25%;
	}
}

@media (max-width: 480px) {
	.linktree-avatar {
		width: 100px;
		height: 100px;
	}

	.linktree-name {
		font-size: 22px;
	}

	.linktree-link-icon {
		font-size: 20px;
	}

	.linktree-social-btn {
		padding: 8px 20px;
		font-size: 13px;
	}
}
