﻿/**
 * AllyonoLinks Stylesheet — Premium Redesign v2.0
 * Ultra-sharp Mobile-Locked Light Theme
 *
 * @package AllyonoLinks
 */

/* ==========================================================================
   0. Google Font Import
   ========================================================================== */
/* Google Fonts are enqueued directly in functions.php with preconnect hints in header.php for optimal performance */

/* ==========================================================================
   1. CSS Variables & Design Tokens
   ========================================================================== */
:root {
	/* Colors */
	--bg-page:          #eef0f5;
	--bg-container:     #ffffff;
	--bg-card:          #ffffff;
	--bg-card-hover:    #f8faff;
	--border-color:     #e4e8f0;
	--border-card:      #dde3ee;

	--text-primary:     #0d0f1a;
	--text-secondary:   #4a5272;
	--text-muted:       #8b93af;

	/* Brand Colors */
	--blue-vivid:       #0085e9;
	--blue-deep:        #0058b0;
	--blue-light:       #e8f4ff;
	--accent-red:       #e0163a;
	--accent-red-bg:    #fff0f2;
	--accent-green:     #0b9e5e;
	--accent-green-bg:  #edfaf4;
	--tg-blue:          #0088cc;
	--gold:             #f59e0b;

	/* Notice */
	--notice-bg:        #fffbf0;
	--notice-border:    #d97706;

	/* Gradients */
	--gradient-header:  linear-gradient(135deg, #0a6edb 0%, #05153a 100%);
	--gradient-btn:     linear-gradient(135deg, #0085e9 0%, #0a3880 100%);
	--gradient-btn-tg:  linear-gradient(135deg, #0088cc 0%, #005580 100%);
	--gradient-footer:  linear-gradient(160deg, #0a1e50 0%, #000d24 100%);
	--gradient-rank:    linear-gradient(135deg, #f59e0b 0%, #e85d04 100%);
	--gradient-card-top:linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);

	/* Shadows */
	--shadow-xs:        0 1px 3px rgba(10,30,80,0.06);
	--shadow-sm:        0 2px 8px rgba(10,30,80,0.08);
	--shadow-md:        0 4px 16px rgba(10,30,80,0.10);
	--shadow-lg:        0 8px 28px rgba(10,30,80,0.14);
	--shadow-card:      0 2px 12px rgba(0,85,233,0.07), 0 1px 3px rgba(0,0,0,0.05);
	--shadow-card-hover:0 8px 32px rgba(0,85,233,0.14), 0 2px 8px rgba(0,0,0,0.07);
	--shadow-btn:       0 4px 14px rgba(0,85,233,0.35);

	/* Typography */
	--font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-heading:     'Outfit', 'Inter', sans-serif;

	/* Radii */
	--radius-xs:        4px;
	--radius-sm:        6px;
	--radius-md:        10px;
	--radius-lg:        14px;
	--radius-xl:        20px;
	--radius-full:      999px;

	/* Transition */
	--transition:       all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Global Layout
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	background-color: var(--bg-page);
}

body {
	margin: 0;
	background-color: var(--bg-page);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--blue-vivid);
	text-decoration: none;
	transition: var(--transition);
}
a:hover { color: var(--blue-deep); }

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 800;
	color: var(--text-primary);
	margin-top: 0;
	margin-bottom: 0.4em;
	line-height: 1.2;
}

ul, ol {
	padding-left: 20px;
	margin-top: 0;
	margin-bottom: 15px;
}

/* ==========================================================================
   3. Site Wrapper — Mobile Frame
   ========================================================================== */
.site-wrapper {
	max-width: 480px;
	margin: 0 auto;
	background-color: var(--bg-container);
	min-height: 100vh;
	box-shadow: 0 0 0 1px var(--border-color), 0 20px 60px rgba(0,0,0,0.12);
	display: flex;
	flex-direction: column;
	position: relative;
	/* overflow:clip clips visual bleed WITHOUT creating a scroll container.
	   Unlike overflow:hidden, it does NOT break position:sticky on children. */
	overflow: clip;
}

.container {
	width: 100%;
	padding-left: 14px;
	padding-right: 14px;
}

/* ==========================================================================
   DESKTOP-NAVIGATION: Hidden — this is a mobile-frame theme.
   The horizontal-nav-scroll bar below the header serves as navigation.
   Showing this would double all nav links in the header.
   ========================================================================== */
.desktop-navigation {
	display: none !important;
}

/* ==========================================================================
   4. Sticky Header
   ========================================================================== */
.main-header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 200;
	background: var(--gradient-header);
	color: #ffffff;
	box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 62px; /* Taller premium header */
	padding-left: 14px;
	padding-right: 14px;
}

.site-branding .custom-logo-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.site-logo {
	max-height: 42px;
	width: 42px; /* Significantly bigger header logo */
	border-radius: 10px;
	border: 2px solid rgba(255,255,255,0.35);
	box-shadow: 0 3px 10px rgba(0,0,0,0.25), inset 0 1px 2px rgba(255,255,255,0.3);
	object-fit: cover;
	transition: var(--transition);
}

.site-logo:hover {
	border-color: rgba(255,255,255,0.7);
	box-shadow: 0 5px 15px rgba(0,0,0,0.35), inset 0 1px 2px rgba(255,255,255,0.4);
}

.site-title-text {
	font-family: var(--font-heading);
	font-size: 21px; /* Larger premium site title */
	font-weight: 900;
	color: #ffffff;
	letter-spacing: -0.5px;
	text-shadow: 0 2px 6px rgba(0,0,0,0.45);
	transition: var(--transition);
}

.site-title-text:hover {
	opacity: 0.95;
}

.header-right-action {
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-tg-header {
	background: rgba(255,255,255,0.15);
	border: 1.5px solid rgba(255,255,255,0.3);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	font-family: var(--font-heading);
	padding: 5px 11px;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	gap: 5px;
	backdrop-filter: blur(4px);
	transition: var(--transition);
}
.btn-tg-header:hover {
	background: rgba(255,255,255,0.28);
	color: #ffffff;
	transform: translateY(-1px);
}

.mobile-menu-toggle {
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.2);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 7px 8px;
	border-radius: var(--radius-sm);
}
.mobile-menu-toggle .bar {
	width: 18px;
	height: 2px;
	background-color: #ffffff;
	border-radius: 2px;
	transition: 0.2s ease;
}

/* ==========================================================================
   5. Horizontal Scroll Navigation Bar
   ========================================================================== */
.horizontal-nav-scroll {
	width: 100%;
	background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
	border-bottom: 2px solid var(--border-color);
	overflow-x: auto;
	white-space: nowrap;
	padding: 0 6px;
	scrollbar-width: none;
}
.horizontal-nav-scroll::-webkit-scrollbar { display: none; }

.horizontal-nav-list {
	display: flex;
	justify-content: center;       /* Center all nav items */
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.horizontal-nav-list li {
	display: flex;
	flex: 1;                        /* Each item takes equal width */
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.horizontal-nav-list a {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 12px;
	color: var(--text-secondary);
	padding: 11px 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	border-bottom: 2.5px solid transparent;
	transition: var(--transition);
	letter-spacing: 0.1px;
	white-space: nowrap;
}
.horizontal-nav-list a:hover,
.horizontal-nav-list li.current-menu-item a {
	color: var(--blue-vivid);
	border-bottom-color: var(--blue-vivid);
	background: rgba(0,133,233,0.04);
}

/* TG Join — special styling in nav bar */
.horizontal-nav-list li:last-child a {
	color: var(--tg-blue);
	font-weight: 800;
}
.horizontal-nav-list li:last-child a:hover {
	color: var(--tg-blue);
	border-bottom-color: var(--tg-blue);
	background: rgba(0,136,204,0.06);
}

/* ==========================================================================
   6. Mobile Navigation Drawer
   ========================================================================== */
.mobile-navigation-drawer {
	position: absolute;
	top: 0;
	right: -290px;
	width: 290px;
	height: 100%;
	background-color: #ffffff;
	z-index: 1000;
	box-shadow: -8px 0 30px rgba(0,0,0,0.12);
	display: flex;
	flex-direction: column;
	transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-navigation-drawer.active { right: 0; }

.drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 15px;
	background: var(--gradient-header);
}
.drawer-logo {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 16px;
	color: #ffffff;
}
.drawer-close {
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: var(--radius-sm);
	font-size: 20px;
	color: #ffffff;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.drawer-body { padding: 16px 15px; flex-grow: 1; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li { margin-bottom: 2px; }
.mobile-nav-list a {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	transition: var(--transition);
}
.mobile-nav-list a:hover {
	color: var(--blue-vivid);
	background: var(--blue-light);
}

.drawer-tg-cta {
	margin-top: 18px;
	padding: 14px;
	background: linear-gradient(135deg, #e8f4ff, #dceeff);
	border-radius: var(--radius-lg);
	border: 1px solid #c5deff;
}
.drawer-tg-cta p {
	font-size: 12px;
	color: var(--text-secondary);
	margin: 0 0 10px;
	font-weight: 600;
}

.drawer-backdrop {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(5,15,40,0.55);
	backdrop-filter: blur(2px);
	z-index: 999;
	display: none;
}
.drawer-backdrop.active { display: block; }

/* ==========================================================================
   7. Homepage: Intro Block
   ========================================================================== */
.home-intro-block {
	padding: 16px 14px 14px;
	background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--border-color);
	position: relative;
}
.home-intro-block::after {
	content: '';
	position: absolute;
	bottom: 0; left: 14px; right: 14px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border-card), transparent);
}

.home-intro-title {
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 900;
	margin-bottom: 6px;
	color: var(--text-primary);
	line-height: 1.25;
	background: linear-gradient(135deg, #0a1e50, #0085e9);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.home-intro-text {
	color: var(--text-secondary);
	font-size: 12.5px;
	margin: 0;
	line-height: 1.55;
}

/* Site Description — small text block showing all app names */
.site-description {
	background: #ffffff;
	padding: 10px 14px;
	font-size: 7px;
	color: var(--text-muted);
	line-height: 1.6;
	border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   8. Homepage: Tab Filter Toggles
   ========================================================================== */
.home-tabs-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #f4f7fd;
	border-bottom: 1px solid var(--border-color);
	padding: 6px 8px;
	gap: 6px;
}

.home-tab-btn {
	background: transparent;
	border: none;
	padding: 9px 12px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 12.5px;
	color: var(--text-muted);
	cursor: pointer;
	text-align: center;
	border-radius: var(--radius-sm);
	transition: var(--transition);
	letter-spacing: 0.2px;
}
.home-tab-btn:hover {
	color: var(--blue-vivid);
	background: rgba(0,133,233,0.08);
}
.home-tab-btn.active {
	color: var(--blue-vivid);
	background: #ffffff;
	box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   9. App Cards — Ultra Premium Redesign
   ========================================================================== */
.apps-grid-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	background-color: #edf0f8;
}

/* ── Card Shell ── */
.app-card {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 50%, #f2f7fc 100%);
	border: 1.5px solid #dce4f2;
	border-radius: 14px;
	position: relative;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0,50,150,0.06), 0 1px 3px rgba(0,0,0,0.03);
	overflow: hidden;
	min-height: 86px;
}

/* Left colored stripe - elegant multi-tone blue/indigo highlight */
.app-card::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 50%, #1e3a8a 100%);
	border-radius: 0;
	z-index: 2;
}

.app-card:hover {
	border-color: #b0cdfa;
	box-shadow: 0 12px 32px rgba(0,85,233,0.14), 0 4px 10px rgba(0,0,0,0.05);
	transform: translateY(-2.5px);
}

/* ── Rank Badge (Metallic, classy 3D plate) ── */
.app-card-num {
	position: absolute;
	top: 0; left: 0;
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 10px;
	font-weight: 900;
	padding: 4px 9px 4px 7px;
	border-radius: 0 0 12px 0;
	z-index: 3;
	letter-spacing: 0.5px;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.app-card:nth-child(1) .app-card-num { 
	background: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #b45309 100%); /* Gold */
	box-shadow: 2px 2px 6px rgba(245,158,11,0.4);
}
.app-card:nth-child(2) .app-card-num { 
	background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #64748b 100%); /* Silver */
	box-shadow: 2px 2px 6px rgba(100,116,139,0.3);
}
.app-card:nth-child(3) .app-card-num { 
	background: linear-gradient(135deg, #ffedd5 0%, #fdba74 50%, #c2410c 100%); /* Bronze */
	box-shadow: 2px 2px 6px rgba(194,65,12,0.3);
}
.app-card:nth-child(n+4) .app-card-num {
	background: linear-gradient(135deg, #475569 0%, #334155 100%); /* Default Slate */
}

/* ── Logo Area — Large 3D Icon styling ── */
.app-card-logo {
	width: 66px;
	height: 66px;
	border-radius: 14px;
	overflow: hidden;
	flex-shrink: 0;
	display: block;
	margin: auto 0 auto 16px;
	position: relative;
	box-shadow: 0 4px 14px rgba(0,50,150,0.12), 0 0 0 2px rgba(0,133,233,0.12);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(255,255,255,0.7);
}
.app-card-logo img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.app-card:hover .app-card-logo {
	box-shadow: 0 8px 24px rgba(0,85,233,0.22), 0 0 0 3px rgba(0,133,233,0.3);
}

/* ── Info Block ── */
.app-card-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	flex-grow: 1;
	min-width: 0;
	padding: 12px 10px 12px 14px;
}

/* App Name */
.app-card-name {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 15.5px; /* Bigger name for better user interaction */
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: -0.3px;
}

/* NEW badge — Modern Flat Premium Tag (no animation) */
.card-new-tag {
	display: inline-flex;
	align-items: center;
	background: #f43f5e; /* Rich rose-red */
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 8.5px;
	font-weight: 900;
	letter-spacing: 0.6px;
	padding: 1.5px 5px;
	border-radius: 4px; /* Classy rounded rectangle */
	text-transform: uppercase;
	flex-shrink: 0;
	box-shadow: 0 1px 2px rgba(244, 63, 94, 0.2);
	margin-left: 5px;
}

/* Bonus & Withdraw badges — Clean Modern Outline Plates */
.app-card-bonus,
.app-card-withdraw {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 10.5px;
	padding: 3px 8px;
	border-radius: 6px; /* Classy modern rounding */
	width: fit-content;
	transition: var(--transition);
}
.app-card:hover .app-card-bonus,
.app-card:hover .app-card-withdraw {
	transform: translateX(2px);
}

.app-card-bonus {
	background: rgba(220, 38, 38, 0.04);
	color: #dc2626;
	border: 1px solid rgba(220, 38, 38, 0.12);
}
.app-card-bonus i {
	font-size: 10px;
	color: #ef4444;
}

.app-card-withdraw {
	background: rgba(16, 185, 129, 0.04);
	color: #059669;
	border: 1px solid rgba(16, 185, 129, 0.12);
}
.app-card-withdraw i {
	font-size: 10px;
	color: #10b981;
}

/* ── Download CTA Button — ULTRA-PREMIUM GREEN-WHITE GRADIENT ── */
.app-card-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 82px;
	flex-shrink: 0;
	align-self: stretch;          /* Full card height */
	margin: 0;
	border-radius: 0 12px 12px 0; /* Flush right edge of card */
	background: linear-gradient(135deg, #11998e 0%, #10b981 60%, #38ef7d 100%); /* Premium green-light-green gradient */
	color: #ffffff;
	font-family: var(--font-heading);
	font-size: 9px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	position: relative;
	overflow: hidden;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	border-left: 1px solid rgba(255,255,255,0.15);
	box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Shimmer sweep effect */
.app-card-btn::before {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 60%; height: 100%;
	background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.3) 50%, transparent 80%);
	transition: left 0.6s ease;
}
.app-card-btn:hover::before { left: 160%; }

/* Top glass shine line */
.app-card-btn::after {
	content: '';
	position: absolute;
	top: 0; left: 10%; right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
	border-radius: 999px;
}

.app-card-btn-icon {
	font-size: 24px;
	line-height: 1;
	color: #ffffff;
	filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
	transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-card-btn-text {
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ffffff;
}

.app-card-btn:hover {
	background: linear-gradient(135deg, #13ab9f 0%, #12d192 60%, #4cfa90 100%);
	box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.35), 0 4px 15px rgba(16, 185, 129, 0.35);
	color: #ffffff;
	width: 84px; /* Expand slightly on hover */
}
.app-card-btn:hover .app-card-btn-icon {
	transform: translateY(-3px) scale(1.15);
}

/* ==========================================================================
   10. Homepage Article & Notice Box — Premium
   ========================================================================== */
.homepage-article-wrapper {
	padding: 18px 14px;
	background: #ffffff;
	border-top: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.homepage-article {
	font-size: 13.5px;
	color: var(--text-secondary);
	line-height: 1.65;
}

.homepage-article h2 {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 800;
	color: var(--text-primary);
	margin-top: 20px;
	margin-bottom: 10px;
	position: relative;
	padding-left: 12px;
}

.homepage-article h2::before {
	content: '';
	position: absolute;
	left: 0; top: 3px; bottom: 3px;
	width: 4px;
	background: linear-gradient(180deg, #10b981 0%, #059669 100%);
	border-radius: var(--radius-full);
}

.homepage-article p {
	margin-top: 0;
	margin-bottom: 12px;
}

.homepage-article a {
	color: #0b9e5e;
	font-weight: 700;
	text-decoration: none;
}
.homepage-article a:hover {
	text-decoration: underline;
}

.homepage-article ul {
	padding-left: 20px;
	margin-bottom: 15px;
}
.homepage-article li {
	margin-bottom: 6px;
}

/* Notice Box styling */
.notice-box {
	background: #fffbeb; /* Soft warning tint */
	border: 1.5px dashed #f59e0b;
	border-radius: 12px;
	padding: 14px 16px;
}

.notice-box-title {
	font-family: var(--font-heading);
	font-size: 13.5px;
	font-weight: 900;
	color: #b45309;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.notice-box-body p {
	font-size: 11.5px;
	line-height: 1.55;
	color: #78350f;
	margin: 0 0 8px;
}
.notice-box-body p:last-child {
	margin-bottom: 0;
}

.notice-box-body a {
	color: #b45309;
	font-weight: 700;
	text-decoration: underline;
}

.notice-box-body strong {
	color: #92400e;
}

/* ==========================================================================
   11. App Hero — Single Post
   ========================================================================== */
.app-hero-card {
	padding: 20px 16px 18px;
	background: linear-gradient(180deg, #f3f6fc 0%, #ffffff 100%);
	border-bottom: 1.5px solid var(--border-color);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.app-hero-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.app-hero-logo {
	width: 78px;
	height: 78px;
	border-radius: 18px;
	overflow: visible;
	position: relative;
	flex-shrink: 0;
	box-shadow: 0 8px 24px rgba(0, 85, 233, 0.12);
}
.app-hero-logo img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 18px;
	border: 2.5px solid #ffffff;
	box-shadow: 0 0 0 1.5px rgba(0, 133, 233, 0.15);
}

.app-verified-badge-overlay {
	position: absolute;
	bottom: -4px;
	right: -4px;
	background: #ffffff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	z-index: 5;
}
.app-verified-badge-overlay i {
	color: #0b9e5e;
	font-size: 18px;
	line-height: 1;
}

.app-hero-title-wrapper { flex-grow: 1; min-width: 0; }

.app-hero-title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 900;
	margin-bottom: 6px;
	color: var(--text-primary);
	line-height: 1.25;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.app-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(11, 158, 94, 0.08);
	color: #0b9e5e;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2.5px 7px;
	border-radius: 6px;
	border: 1px solid rgba(11, 158, 94, 0.18);
}
.app-verified-badge i { font-size: 11px; }

.app-hero-subtitle {
	color: var(--text-secondary);
	font-size: 12.5px;
	line-height: 1.45;
	margin: 0;
	opacity: 0.9;
}

/* Info Grid Boxes */
.app-info-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}

.info-box {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.info-box-icon-wrapper {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
	font-size: 13px;
	transition: var(--transition);
}

.info-box-label {
	font-size: 9px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	font-weight: 700;
}
.info-box-value {
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 800;
	color: var(--text-primary);
}

/* Rating box styles */
.info-box-rating {
	border-color: rgba(245, 158, 11, 0.18);
	background: rgba(245, 158, 11, 0.03);
}
.info-box-rating .info-box-icon-wrapper {
	background: rgba(245, 158, 11, 0.1);
	color: #d97706;
}
.info-box-rating .info-box-value { color: #d97706; }
.info-box-rating:hover {
	border-color: #f59e0b;
	background: rgba(245, 158, 11, 0.06);
	transform: translateY(-2px);
}

/* Size box styles */
.info-box-size {
	border-color: rgba(59, 130, 246, 0.18);
	background: rgba(59, 130, 246, 0.03);
}
.info-box-size .info-box-icon-wrapper {
	background: rgba(59, 130, 246, 0.1);
	color: #2563eb;
}
.info-box-size .info-box-value { color: #2563eb; }
.info-box-size:hover {
	border-color: #3b82f6;
	background: rgba(59, 130, 246, 0.06);
	transform: translateY(-2px);
}

/* Price box styles */
.info-box-price {
	border-color: rgba(16, 185, 129, 0.18);
	background: rgba(16, 185, 129, 0.03);
}
.info-box-price .info-box-icon-wrapper {
	background: rgba(16, 185, 129, 0.1);
	color: #059669;
}
.info-box-price .price-free { color: #059669; }
.info-box-price:hover {
	border-color: #10b981;
	background: rgba(16, 185, 129, 0.06);
	transform: translateY(-2px);
}

/* Bonus box styles */
.info-box-bonus {
	border-color: rgba(244, 63, 94, 0.18);
	background: rgba(244, 63, 94, 0.03);
}
.info-box-bonus .info-box-icon-wrapper {
	background: rgba(244, 63, 94, 0.1);
	color: #e11d48;
}
.info-box-bonus .bonus-value { color: #e11d48; }
.info-box-bonus:hover {
	border-color: #f43f5e;
	background: rgba(244, 63, 94, 0.06);
	transform: translateY(-2px);
}

.app-hero-ctas {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Buttons */
.btn-large {
	padding: 14px 24px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 800;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	width: 100%;
	border: none;
	cursor: pointer;
}

.btn-icon-large {
	font-size: 20px;
	line-height: 1;
}

.btn-download-hero {
	background: linear-gradient(135deg, #11998e 0%, #10b981 60%, #38ef7d 100%);
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
	position: relative;
	overflow: hidden;
}
.btn-download-hero::before {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 60%; height: 100%;
	background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.3) 50%, transparent 80%);
	transition: left 0.6s ease;
}
.btn-download-hero:hover::before { left: 160%; }
.btn-download-hero:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #13ab9f 0%, #12d192 60%, #4cfa90 100%);
	box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
	color: #ffffff;
}

.btn-tg-hero {
	background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}
.btn-tg-hero:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #0099e6 0%, #0077b3 100%);
	box-shadow: 0 8px 24px rgba(0, 136, 204, 0.45);
	color: #ffffff;
}

/* ==========================================================================
   12. App Review Article Body
   ========================================================================== */
.app-review-article {
	padding: 16px 14px;
	background: #ffffff;
}

.app-review-article h2 {
	font-family: var(--font-heading);
	font-size: 15.5px;
	font-weight: 900;
	position: relative;
	padding-left: 14px;
	margin-top: 24px;
	margin-bottom: 12px;
	color: var(--text-primary);
	line-height: 1.3;
}
.app-review-article h2::before {
	content: '';
	position: absolute;
	left: 0; top: 3px; bottom: 3px;
	width: 4px;
	background: var(--gradient-btn);
	border-radius: var(--radius-full);
}

.app-review-article p {
	color: var(--text-secondary);
	font-size: 13.5px;
	line-height: 1.65;
	margin-bottom: 14px;
}

.pros-list, .cons-list {
	list-style: none !important;
	padding-left: 0 !important;
}
.pros-list li, .cons-list li {
	position: relative;
	padding: 8px 12px 8px 36px;
	font-size: 13px;
	margin-bottom: 6px;
	border-radius: 8px;
}
.pros-list li {
	background: var(--accent-green-bg);
	color: #0a6e42;
	border: 1px solid rgba(11,158,94,0.15);
}
.cons-list li {
	background: var(--accent-red-bg);
	color: #b8102e;
	border: 1px solid rgba(224,22,58,0.12);
}
.pros-list li::before {
	content: '\F272';
	font-family: 'bootstrap-icons';
	position: absolute;
	left: 12px; top: 8px;
	color: var(--accent-green);
	font-size: 14px;
}
.cons-list li::before {
	content: '\F5C0';
	font-family: 'bootstrap-icons';
	position: absolute;
	left: 12px; top: 8px;
	color: var(--accent-red);
	font-size: 14px;
}

/* ==========================================================================
   13. Disclaimer Card
   ========================================================================== */
.app-disclaimer-card {
	background: var(--notice-bg);
	border: 1px solid rgba(217, 119, 6, 0.2);
	border-left: 4px solid var(--notice-border);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 16px 14px;
	box-shadow: 0 2px 8px rgba(217, 119, 6, 0.03);
}
.disclaimer-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.disclaimer-warning-icon {
	color: var(--notice-border);
	font-size: 16px;
}
.disclaimer-card-title {
	font-family: var(--font-heading);
	font-size: 13.5px;
	color: var(--notice-border);
	margin: 0;
	font-weight: 900;
	letter-spacing: 0.2px;
}
.disclaimer-card-body p {
	font-size: 12px;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.55;
	opacity: 0.9;
}

/* Breadcrumbs */
.app-breadcrumbs {
	padding: 10px 14px;
	font-size: 11.5px;
	color: var(--text-muted);
	background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	gap: 6px;
}
.app-breadcrumbs a {
	color: var(--text-secondary);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.app-breadcrumbs a:hover { color: var(--blue-vivid); }
.app-breadcrumbs a i { font-size: 12px; }
.breadcrumb-separator {
	font-size: 8px;
	color: var(--text-muted);
	opacity: 0.6;
}
.active-crumb {
	color: var(--text-primary);
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   21. FAQ Accordion — Redesign
   ========================================================================== */
.app-faq-section {
	padding: 24px 16px;
	background: #ffffff;
	border-top: 1.5px solid var(--border-color);
	border-bottom: 1.5px solid var(--border-color);
}

.faq-accordion-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: none;
	border: none;
	text-align: left;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--text-primary);
	cursor: pointer;
	gap: 12px;
	transition: var(--transition);
}
.faq-question:hover {
	background: rgba(0, 133, 233, 0.03);
	color: var(--blue-vivid);
}

.faq-icon {
	font-size: 16px;
	font-weight: 700;
	color: var(--blue-vivid);
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(0, 133, 233, 0.15);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.25s ease;
	flex-shrink: 0;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease-out, padding 0.25s ease-out;
	background: #ffffff;
	border-top: 0px solid transparent;
}
.faq-answer p {
	font-size: 12.5px;
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
	padding: 0 16px 14px;
}

/* Active FAQ Item styling */
.faq-item.active {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
	background: #ffffff;
}
.faq-item.active .faq-question {
	color: var(--blue-vivid);
}
.faq-item.active .faq-icon {
	background: var(--blue-vivid);
	color: #ffffff;
	border-color: var(--blue-vivid);
	transform: scale(1.05);
}
.faq-item.active .faq-answer {
	max-height: 200px;
	border-top: 1px solid #f1f5f9;
	padding-top: 12px;
}

/* ==========================================================================
   22. Related Lobbies — Redesign
   ========================================================================== */
.app-related-section {
	padding: 24px 0 16px;
	background: none;
	margin-left: -14px;
	margin-right: -14px;
}
.related-section-title {
	font-family: var(--font-heading);
	font-size: 15px;
	margin-bottom: 16px;
	font-weight: 800;
	color: var(--text-primary);
	border-bottom: 2.5px solid var(--blue-vivid);
	padding-bottom: 6px;
	display: block;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.app-related-section .apps-grid-container {
	padding: 10px;
	background: none;
	gap: 8px;
}

/* Article Card Down Related Apps */
.article-card {
	padding: 20px 14px;
	background: #ffffff;
	border-top: 1.5px solid var(--border-color);
	border-bottom: 1.5px solid var(--border-color);
}
.article-card h2 {
	font-family: var(--font-heading);
	font-size: 15.5px;
	font-weight: 900;
	position: relative;
	padding-left: 14px;
	margin-top: 24px;
	margin-bottom: 12px;
	color: var(--text-primary);
	line-height: 1.3;
}
.article-card h2::before {
	content: '';
	position: absolute;
	left: 0; top: 3px; bottom: 3px;
	width: 4px;
	background: var(--gradient-btn);
	border-radius: var(--radius-full);
}
.article-card p,
.article-card ol,
.article-card ul {
	color: var(--text-secondary);
	font-size: 13px;
	line-height: 1.65;
	margin-bottom: 14px;
}
.article-card ol,
.article-card ul {
	padding-left: 20px;
}
.article-card li {
	margin-bottom: 6px;
}
.article-card h3 {
	font-family: var(--font-heading);
	font-size: 13.5px;
	font-weight: 800;
	color: var(--text-primary);
	margin-top: 18px;
	margin-bottom: 8px;
}

/* ==========================================================================
   14. Static Page Templates
   ========================================================================== */
.page-main-layout {
	padding: 16px 14px;
	background: #ffffff;
}
.page-title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 900;
	margin-bottom: 16px;
	color: var(--text-primary);
}
.page-content-wrapper {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.65;
}

/* ==========================================================================
   15. SEO Block (Section removed)
   ========================================================================== */

/* ==========================================================================
   16. Footer (Section removed)
   ========================================================================== */

/* ==========================================================================
   17. Main Footer
   ========================================================================== */
.main-footer {
	background: var(--gradient-footer);
	color: #ffffff;
	padding: 24px 14px 16px;
	border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr; /* Compact 2-column layout to save height */
	gap: 16px;
	margin-bottom: 16px;
}

.footer-about {
	grid-column: span 2; /* Span about block across top of grid */
}

.footer-column-title {
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #64748b; /* Soft gray instead of stark white */
	margin-bottom: 8px;
	padding-bottom: 0;
	border-bottom: none;
}

.footer-about-text {
	font-size: 11px;
	color: rgba(255,255,255,0.45);
	margin: 0 0 10px;
	line-height: 1.5;
}

.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 4px; }
.footer-links-list a {
	color: rgba(255,255,255,0.55);
	font-size: 11px;
	transition: var(--transition);
	display: inline-flex;
	align-items: center;
	gap: 0;
}
.footer-links-list a::before {
	content: ''; /* Removed raw indicator bullets for a cleaner premium feel */
}
.footer-links-list a:hover { color: var(--blue-vivid); }

.footer-disclaimer-wrapper {
	border-top: 1px solid rgba(255,255,255,0.05);
	padding-top: 12px;
	margin-top: 12px;
}
.footer-disclaimer-text {
	font-size: 10px;
	color: rgba(255,255,255,0.35);
	line-height: 1.45;
	margin: 0;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.05);
	padding-top: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 10px;
	color: rgba(255,255,255,0.3);
	gap: 8px;
	flex-wrap: wrap;
}
.footer-bottom-links a {
	color: rgba(255,255,255,0.45);
	transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--blue-vivid); }

/* ==========================================================================
   18. Utility Buttons (shared)
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: var(--font-heading);
	font-weight: 800;
	padding: 9px 16px;
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: var(--transition);
	font-size: 12.5px;
	line-height: 1;
}
.btn-tg {
	background: var(--gradient-btn-tg);
	color: #ffffff;
}
.btn-tg:hover { color: #ffffff; transform: translateY(-1px); }

/* ==========================================================================
   19. Archive Page (Category Listing)
   ========================================================================== */
.archive-header {
	padding: 14px;
	background: linear-gradient(180deg, #eef4ff, #ffffff);
	border-bottom: 1px solid var(--border-color);
}
.archive-title {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 900;
	margin-bottom: 4px;
}
.archive-description {
	font-size: 12.5px;
	color: var(--text-secondary);
	margin: 0;
}

/* ==========================================================================
   20. Scrollbar & Misc Polish
   ========================================================================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5d0ea; border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #a0b0d0; }

/* Smooth page load fade-in */

/* Pulse animation for top CTA download buttons */
@keyframes pulse-glow {
	0%, 100% { box-shadow: var(--shadow-btn); }
	50%       { box-shadow: 0 0 0 5px rgba(0,133,233,0.15), var(--shadow-btn); }
}
.app-card-btn { animation: pulse-glow 3s ease-in-out infinite; }
.app-card:hover .app-card-btn { animation: none; }

/* Ad Section placeholder styling */
.ad-section {
	padding: 8px 0;
	text-align: center;
}
