/* All Yono Apps Manager — Public Styles */

:root {
	--aya-primary: #6a3df5;
	--aya-secondary: #0f172a;
	--aya-download-btn: #22c55e;
	--aya-radius: 16px;
	--aya-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
	--aya-shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.16);
}

@media (prefers-color-scheme: dark) {
	:root {
		--aya-card-bg: #161a24;
		--aya-card-text: #f1f5f9;
		--aya-card-border: #262b38;
	}
}
:root {
	--aya-card-bg: #ffffff;
	--aya-card-text: #0f172a;
	--aya-card-border: #eef0f4;
}

.aya-apps-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(4, 1fr);
	margin: 24px 0;
}
.aya-cols-1 { grid-template-columns: repeat(1, 1fr); }
.aya-cols-2 { grid-template-columns: repeat(2, 1fr); }
.aya-cols-3 { grid-template-columns: repeat(3, 1fr); }
.aya-cols-4 { grid-template-columns: repeat(4, 1fr); }
.aya-cols-5 { grid-template-columns: repeat(5, 1fr); }
.aya-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
	.aya-apps-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
	.aya-apps-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
	.aya-apps-grid { grid-template-columns: repeat(1, 1fr) !important; }
}

.aya-app-card {
	position: relative;
	background: var(--aya-card-bg);
	color: var(--aya-card-text);
	border: 1px solid var(--aya-card-border);
	border-radius: var(--aya-radius);
	box-shadow: var(--aya-shadow);
	padding: 18px;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}
.aya-app-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--aya-shadow-hover);
}

.aya-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 20px;
	color: #fff;
	z-index: 2;
}
.aya-badge-featured { background: var(--aya-primary); top: 10px; right: 10px; }
.aya-badge-trending { background: #f97316; top: 36px; right: 10px; }

.aya-card-link { text-decoration: none; color: inherit; flex: 1; display: flex; flex-direction: column; align-items: center; }

.aya-card-logo {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	overflow: hidden;
	margin: 0 auto 12px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
}
.aya-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.aya-card-logo-placeholder { color: #94a3b8; font-size: 28px; }

.aya-card-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.3;
}
.aya-card-rating { font-size: 13px; color: #f59e0b; font-weight: 600; margin-bottom: 6px; }
.aya-card-meta { display: flex; gap: 8px; justify-content: center; font-size: 12px; color: #64748b; margin-bottom: 8px; }
.aya-card-bonus { font-size: 12px; font-weight: 600; color: var(--aya-primary); margin-bottom: 8px; }

.aya-card-download-btn {
	display: block;
	margin-top: auto;
	background: var(--aya-download-btn);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 10px;
	transition: filter 0.2s ease;
}
.aya-card-download-btn:hover { filter: brightness(0.92); }

.aya-no-apps { text-align: center; padding: 40px 0; color: #94a3b8; }

/* Breadcrumb */
.aya-breadcrumb { font-size: 13px; color: #64748b; margin: 16px 0; }
.aya-breadcrumb a { color: var(--aya-primary); text-decoration: none; }

/* Single App Page */
.aya-single-app-wrap { max-width: 980px; margin: 0 auto; padding: 20px 0 80px; }

.aya-app-hero { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.aya-app-hero-logo { width: 110px; height: 110px; border-radius: 24px; overflow: hidden; box-shadow: var(--aya-shadow); flex-shrink: 0; }
.aya-app-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.aya-app-hero-info { flex: 1; min-width: 260px; }
.aya-app-title { font-size: 28px; margin: 0 0 8px; }
.aya-app-short-desc { color: #64748b; margin-bottom: 14px; }

.aya-app-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.aya-stat { display: flex; flex-direction: column; }
.aya-stat strong { font-size: 16px; }
.aya-stat span { font-size: 12px; color: #94a3b8; }

.aya-bonus-box {
	background: linear-gradient(90deg, var(--aya-primary), #9b5cf9);
	color: #fff;
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 16px;
	font-size: 14px;
}

.aya-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.aya-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 12px;
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
	transition: filter 0.2s ease;
}
.aya-btn-download { background: var(--aya-download-btn); color: #fff !important; }
.aya-btn-telegram { background: #229ED9; color: #fff !important; }
.aya-btn:hover { filter: brightness(0.92); }

.aya-share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.aya-icon-btn {
	background: #f1f5f9;
	color: #0f172a !important;
	border: none;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 12px;
	cursor: pointer;
	text-decoration: none;
}
.aya-qr-code { width: 50px; height: 50px; border-radius: 6px; }

.aya-app-info-list p { margin: 4px 0; font-size: 13px; color: #475569; }

.aya-gallery-slider {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 6px 0 16px;
	scroll-snap-type: x mandatory;
}
.aya-gallery-slider img {
	height: 340px;
	border-radius: 14px;
	scroll-snap-align: start;
	flex-shrink: 0;
	box-shadow: var(--aya-shadow);
}

.aya-section { margin: 32px 0; }
.aya-section h2 { font-size: 20px; margin-bottom: 12px; }
.aya-content { line-height: 1.7; color: #334155; }
.aya-list { padding-left: 20px; line-height: 1.9; }
.aya-list-ordered li { margin-bottom: 6px; }

.aya-faq-item { border: 1px solid var(--aya-card-border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.aya-faq-item summary { cursor: pointer; font-weight: 600; }

.aya-sticky-download {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	box-shadow: 0 -6px 20px rgba(0,0,0,0.1);
	padding: 10px 16px;
	display: none;
	z-index: 999;
	text-align: center;
}
.aya-sticky-download .aya-btn { width: 100%; max-width: 420px; }
@media (max-width: 768px) {
	.aya-sticky-download.aya-visible { display: block; }
}

/* Archive page */
.aya-archive-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 0 60px; }
.aya-archive-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.aya-search-box { position: relative; width: 280px; max-width: 100%; }
.aya-search-box input {
	width: 100%;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid var(--aya-card-border);
}
.aya-live-search-results {
	position: absolute;
	top: 110%;
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 10px;
	box-shadow: var(--aya-shadow-hover);
	z-index: 50;
	max-height: 320px;
	overflow-y: auto;
	display: none;
}
.aya-live-search-results.aya-visible { display: block; }
.aya-live-search-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: #0f172a; }
.aya-live-search-item:hover { background: #f8fafc; }
.aya-live-search-item img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }

.aya-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.aya-filter-pill {
	padding: 8px 16px;
	border-radius: 20px;
	background: #f1f5f9;
	color: #334155 !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}
.aya-filter-pill.active { background: var(--aya-primary); color: #fff !important; }

.aya-ad-slot { text-align: center; margin: 24px 0; overflow-x: auto; }
.aya-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }

/* Disabled download state — shown only when neither an APK nor an External Download URL is set. */
.aya-card-download-disabled,
.aya-btn-download-disabled {
	background: #cbd5e1 !important;
	color: #64748b !important;
	cursor: not-allowed;
	filter: none !important;
}
