/*
Theme Name: MacStore OS26
Theme URI: https://appcenter.i-phone.ir
Description: Modern macOS App Store Style Theme with Dark Mode and Glassmorphism
Version: 2.0.0
Author: Ahora Zahedi | Arian Darvishi
Author URI: https://i-phone.ir
Text Domain: macstore
*/

/* ===================================
   CSS RESET & BASE
   =================================== */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/* ===================================
   FONT FACE - IranYekan
   =================================== */

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 100;
	src: url('./fonts/eot/iranyekanwebthin.eot');
	src: url('./fonts/eot/iranyekanwebthin.eot?#iefix') format('embedded-opentype'),
		url('./fonts/woff/iranyekanwebthin.woff') format('woff'),
		url('./fonts/ttf/iranyekanwebthin.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 300;
	src: url('./fonts/eot/iranyekanweblight.eot');
	src: url('./fonts/eot/iranyekanweblight.eot?#iefix') format('embedded-opentype'),
		url('./fonts/woff/iranyekanweblight.woff') format('woff'),
		url('./fonts/ttf/iranyekanweblight.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: normal;
	src: url('./fonts/eot/iranyekanwebregular.eot');
	src: url('./fonts/eot/iranyekanwebregular.eot?#iefix') format('embedded-opentype'),
		url('./fonts/woff/iranyekanwebregular.woff') format('woff'),
		url('./fonts/ttf/iranyekanwebregular.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 500;
	src: url('./fonts/eot/iranyekanwebmedium.eot');
	src: url('./fonts/eot/iranyekanwebmedium.eot?#iefix') format('embedded-opentype'),
		url('./fonts/woff/iranyekanwebmedium.woff') format('woff'),
		url('./fonts/ttf/iranyekanwebmedium.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: bold;
	src: url('./fonts/eot/iranyekanwebbold.eot');
	src: url('./fonts/eot/iranyekanwebbold.eot?#iefix') format('embedded-opentype'),
		url('./fonts/woff/iranyekanwebbold.woff') format('woff'),
		url('./fonts/ttf/iranyekanwebbold.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 800;
	src: url('./fonts/eot/iranyekanwebextrabold.eot');
	src: url('./fonts/eot/iranyekanwebextrabold.eot?#iefix') format('embedded-opentype'),
		url('./fonts/woff/iranyekanwebextrabold.woff') format('woff'),
		url('./fonts/ttf/iranyekanwebextrabold.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 900;
	src: url('./fonts/eot/iranyekanwebblack.eot');
	src: url('./fonts/eot/iranyekanwebblack.eot?#iefix') format('embedded-opentype'),
		url('./fonts/woff/iranyekanwebblack.woff') format('woff'),
		url('./fonts/ttf/iranyekanwebblack.ttf') format('truetype');
}

/* ===================================
   CSS VARIABLES (Color Palette)
   =================================== */

:root {
	/* Primary Accent */
	--color-accent: #DC3545;
	--color-accent-hover: #C82333;
	--color-accent-subtle: rgba(220, 53, 69, 0.08);

	/* Background Colors */
	--color-bg-primary: #0A0E14;
	--color-bg-secondary: #12171F;
	--color-bg-tertiary: #1A202C;
	--color-bg-card: #151A23;

	/* Text Colors */
	--color-text-primary: #F7F8FA;
	--color-text-secondary: #A0A8B8;
	--color-text-muted: #6B7280;

	/* Borders */
	--color-border: rgba(255, 255, 255, 0.06);
	--color-border-hover: rgba(255, 255, 255, 0.12);

	/* Shadows */
	--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
	--shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5);

	/* Border Radius */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-2xl: 24px;

	/* Transitions */
	--transition-fast: 0.15s ease;
	--transition-normal: 0.25s ease;
	--transition-slow: 0.4s ease;
}

/* ===================================
   BODY & BASE STYLES
   =================================== */

body {
	background: var(--color-bg-primary);
	color: var(--color-text-primary);
	font-family: 'iranyekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 400;
	line-height: 1.6;
	direction: rtl;
	text-align: right;
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Effects */
body::before {
	content: '';
	position: fixed;
	top: -20%;
	right: -15%;
	width: 50%;
	height: 50%;
	background: rgba(255, 255, 255, 0.015);
	border-radius: 50%;
	filter: blur(150px);
	pointer-events: none;
	z-index: -1;
}

body::after {
	content: '';
	position: fixed;
	bottom: -20%;
	left: -10%;
	width: 45%;
	height: 45%;
	background: rgba(255, 255, 255, 0.01);
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: -1;
}

::selection {
	background: rgba(220, 53, 69, 0.25);
	color: white;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition-normal);
}

a:hover {
	color: var(--color-text-primary);
}

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

ul,
ol {
	list-style: none;
}

/* ===================================
   SCROLLBAR
   =================================== */

::-webkit-scrollbar {
	width: 6px;
	background: transparent;
}

::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.15);
}

.scrollbar-hide::-webkit-scrollbar {
	display: none;
}

.scrollbar-hide {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* ===================================
   LAYOUT CONTAINERS
   =================================== */

.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.container-lg {
	max-width: 1440px;
}

.container-sm {
	max-width: 980px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 16px 24px;
	background: rgba(21, 26, 35, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--color-border);
}

.header-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-right {
	display: flex;
	flex-direction: column;
	text-align: right;
}

.header-date {
	font-size: 10px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: 4px;
}

.header-title {
	font-size: 24px;
	font-weight: 700;
	color: white;
	letter-spacing: -0.02em;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Search Bar */
.search-form {
	position: relative;
	width: 224px;
}

.search-form input[type="text"],
.search-form input[type="search"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 10px 40px 10px 16px;
	font-size: 14px;
	font-family: inherit;
	color: white;
	outline: none;
	transition: var(--transition-normal);
}

.search-form input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.search-form input:focus {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
}

.search-form .search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.3);
	pointer-events: none;
}

.search-form button[type="submit"] {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	padding: 4px;
}

/* Profile Button */
.profile-btn {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition-normal);
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
}

.profile-btn:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* Navigation Menu */
.primary-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.primary-nav ul {
	display: flex;
	gap: 4px;
}

.primary-nav li a {
	display: inline-block;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	border-radius: var(--radius-sm);
	transition: var(--transition-normal);
}

.primary-nav li a:hover,
.primary-nav li.current-menu-item a {
	color: white;
	background: rgba(255, 255, 255, 0.06);
}

/* Logo */
.site-logo img {
	height: 40px;
	width: auto;
}

/* ===================================
   GLASS MORPHISM UTILITIES
   =================================== */

.glass {
	background: rgba(21, 26, 35, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.glass-strong {
	background: rgba(21, 26, 35, 0.95);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
	background: rgba(21, 26, 35, 0.7);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: var(--radius-xl);
}

/* ===================================
   BUTTON STYLES
   =================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: var(--transition-normal);
	text-decoration: none;
}

.btn-primary {
	background: var(--color-accent);
	color: white;
	box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-primary:hover {
	background: var(--color-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.06);
	color: var(--color-text-primary);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.15);
}

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

.btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.7);
	padding: 8px 20px;
	border-radius: var(--radius-sm);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

.btn-download {
	background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
	color: white;
	box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.btn-download:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

/* ===================================
   CARDS
   =================================== */

/* Base Card */
.card {
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: var(--transition-normal);
}

.card:hover {
	border-color: var(--color-border-hover);
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

/* App Card */
.app-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	transition: var(--transition-normal);
	cursor: pointer;
}

.app-card:hover {
	background: var(--color-bg-tertiary);
	border-color: var(--color-border-hover);
}

.app-card-icon {
	width: 64px;
	height: 64px;
	border-radius: var(--radius-md);
	object-fit: cover;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--color-border);
	margin-bottom: 16px;
	transition: transform var(--transition-normal);
}

.app-card:hover .app-card-icon {
	transform: scale(1.05);
}

.app-card-info {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.app-card-name {
	font-size: 16px;
	font-weight: 500;
	color: white;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-card-category {
	font-size: 14px;
	color: var(--color-text-muted);
}

.app-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
}

.app-card-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	background: rgba(255, 255, 255, 0.04);
	padding: 4px 8px;
	border-radius: 4px;
	color: var(--color-text-muted);
}

/* Horizontal Scroll Card */
.scroll-card {
	flex-shrink: 0;
	width: 280px;
	padding: 20px;
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	transition: var(--transition-normal);
	cursor: pointer;
}

.scroll-card:hover {
	background: var(--color-bg-tertiary);
	border-color: var(--color-border-hover);
}

.scroll-card-header {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.scroll-card-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md);
	object-fit: cover;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--color-border);
	flex-shrink: 0;
}

.scroll-card-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	text-align: right;
}

.scroll-card-name {
	font-size: 16px;
	font-weight: 500;
	color: white;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.scroll-card-desc {
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.scroll-card-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--color-text-muted);
	margin-top: 4px;
}

.scroll-card-footer {
	margin-top: auto;
	display: flex;
	justify-content: flex-end;
}

/* ===================================
   TODAY CARD / STORY CARD
   =================================== */

.today-card {
	position: relative;
	width: 100%;
	aspect-ratio: 2.4 / 1;
	border-radius: var(--radius-xl);
	overflow: hidden;
	cursor: pointer;
	border: 1px solid var(--color-border);
}

.today-card-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease-out;
}

.today-card:hover .today-card-bg {
	transform: scale(1.05);
}

.today-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--color-bg-primary) 0%, rgba(10, 14, 20, 0.6) 50%, transparent 100%);
}

.today-card-overlay-side {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(10, 14, 20, 0.2) 0%, transparent 100%);
}

.today-card-content {
	position: absolute;
	inset: 0;
	padding: 24px 32px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.today-card-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(12px);
	border-radius: var(--radius-sm);
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.today-card-bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.today-card-title {
	font-size: 28px;
	font-weight: 700;
	color: white;
	line-height: 1.3;
	max-width: 600px;
}

.today-card-app-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 450px;
	padding: 12px 16px;
	background: rgba(18, 23, 31, 0.9);
	backdrop-filter: blur(20px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.today-card-app-info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.today-card-app-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	object-fit: cover;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--color-border);
	flex-shrink: 0;
}

.today-card-app-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	text-align: right;
}

.today-card-app-name {
	font-size: 15px;
	font-weight: 500;
	color: white;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.today-card-app-desc {
	font-size: 12px;
	color: var(--color-text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===================================
   HORIZONTAL SCROLL SECTION
   =================================== */

.scroll-section {
	padding: 16px 0;
}

.scroll-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding: 0 24px;
}

.scroll-section-title {
	font-size: 20px;
	font-weight: 600;
	color: white;
}

.scroll-section-link {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: var(--color-text-muted);
	transition: var(--transition-normal);
}

.scroll-section-link:hover {
	color: rgba(255, 255, 255, 0.7);
}

.scroll-section-link i {
	transition: transform var(--transition-normal);
}

.scroll-section-link:hover i {
	transform: translateX(-4px);
}

.scroll-container {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 0 24px 24px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
	display: none;
}

.scroll-container>* {
	scroll-snap-align: center;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
	text-align: center;
	padding: 48px 24px;
}

.hero-title {
	font-size: 32px;
	font-weight: 700;
	color: white;
	margin-bottom: 16px;
	line-height: 1.3;
}

.hero-subtitle {
	font-size: 18px;
	color: var(--color-text-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ===================================
   CATEGORY GRID
   =================================== */

.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.category-card {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	cursor: pointer;
	transition: var(--transition-normal);
}

.category-card:hover {
	background: var(--color-bg-tertiary);
	border-color: var(--color-border-hover);
}

.category-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transition: var(--transition-normal);
}

.category-card:hover .category-icon {
	background: rgba(255, 255, 255, 0.08);
}

.category-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text-secondary);
	text-align: center;
	transition: var(--transition-normal);
}

.category-card:hover .category-name {
	color: white;
}

/* ===================================
   ESSENTIAL CARDS GRID
   =================================== */

.essential-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.essential-card {
	padding: 24px;
	background: rgba(21, 26, 35, 0.7);
	backdrop-filter: blur(16px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	cursor: pointer;
	transition: var(--transition-normal);
}

.essential-card:hover {
	border-color: var(--color-border-hover);
}

.essential-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transition: transform var(--transition-normal);
}

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

.essential-icon.apps {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
	border: 1px solid rgba(59, 130, 246, 0.2);
	color: #60A5FA;
}

.essential-icon.games {
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
	border: 1px solid rgba(168, 85, 247, 0.2);
	color: #C084FC;
}

.essential-icon.tutorials {
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
	border: 1px solid rgba(34, 197, 94, 0.2);
	color: #4ADE80;
}

.essential-title {
	font-size: 18px;
	font-weight: 600;
	color: white;
	margin-bottom: 8px;
}

.essential-desc {
	font-size: 14px;
	color: var(--color-text-muted);
	line-height: 1.5;
}

/* ===================================
   APP GRID
   =================================== */

.apps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	padding: 24px;
}

.apps-heading {
	margin: 32px 24px 16px;
	font-size: 28px;
	font-weight: 700;
	color: white;
}

/* ===================================
   SINGLE PAGE LAYOUT
   =================================== */

.single-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 24px;
}

.single-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
}

/* Sidebar */
.single-sidebar {
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	padding: 24px;
	height: fit-content;
	position: sticky;
	top: 100px;
}

.single-app-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 24px;
}

.single-app-logo img {
	width: 140px;
	height: 140px;
	border-radius: var(--radius-xl);
	object-fit: cover;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--color-border);
}

.single-app-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.single-app-info-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-border);
}

.single-app-info-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.single-app-info-label {
	font-weight: 500;
	color: var(--color-text-secondary);
}

.single-app-info-value {
	color: white;
	text-align: left;
}

.single-app-info-value a {
	color: var(--color-accent);
}

.single-app-info-value a:hover {
	text-decoration: underline;
}

.single-download {
	margin-top: 24px;
}

.single-download .btn {
	width: 100%;
	font-size: 16px;
	padding: 16px 24px;
}

/* Main Content */
.single-main {
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
}

.single-section {
	padding: 24px;
	border-bottom: 1px solid var(--color-border);
}

.single-section:last-child {
	border-bottom: none;
}

.single-section-title {
	font-size: 18px;
	font-weight: 600;
	color: white;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-border);
}

.single-section-content {
	font-size: 15px;
	color: var(--color-text-secondary);
	line-height: 1.8;
}

.single-section-content p {
	margin-bottom: 12px;
}

.single-section-content ul {
	list-style: disc;
	margin-right: 20px;
	margin-bottom: 12px;
}

.single-section-content li {
	margin-bottom: 8px;
}

/* Screenshots */
.single-screenshots {
	padding: 24px;
}

.screenshots-scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 16px;
}

.screenshots-scroll::-webkit-scrollbar {
	display: none;
}

.screenshots-scroll img {
	max-width: 600px;
	height: auto;
	border-radius: var(--radius-lg);
	flex-shrink: 0;
}

/* ===================================
   SEARCH PAGE
   =================================== */

.search-page {
	padding: 32px 24px;
	max-width: 1100px;
	margin: 0 auto;
}

.search-page-header {
	text-align: center;
	margin-bottom: 32px;
}

.search-page-title {
	font-size: 28px;
	font-weight: 700;
	color: white;
	margin-bottom: 24px;
}

.search-page-form {
	max-width: 600px;
	margin: 0 auto;
}

.search-page-form input {
	width: 100%;
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	padding: 16px 56px 16px 24px;
	font-size: 16px;
	font-family: inherit;
	color: white;
	outline: none;
	transition: var(--transition-normal);
}

.search-page-form input:focus {
	border-color: rgba(255, 255, 255, 0.2);
	background: var(--color-bg-tertiary);
}

.search-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
	margin-top: 80px;
	padding: 48px 24px;
	background: var(--color-bg-secondary);
	border-top: 1px solid var(--color-border);
	text-align: center;
}

.footer-text {
	font-size: 14px;
	color: var(--color-text-muted);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 1024px) {
	.essential-grid {
		grid-template-columns: 1fr;
	}

	.single-layout {
		grid-template-columns: 1fr;
	}

	.single-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.site-header {
		padding: 12px 16px;
	}

	.header-title {
		font-size: 20px;
	}

	.search-form {
		display: none;
	}

	.today-card {
		aspect-ratio: 16 / 10;
	}

	.today-card-content {
		padding: 16px 20px;
	}

	.today-card-title {
		font-size: 20px;
	}

	.today-card-app-bar {
		padding: 10px 12px;
	}

	.today-card-app-icon {
		width: 40px;
		height: 40px;
	}

	.hero-title {
		font-size: 24px;
	}

	.hero-subtitle {
		font-size: 16px;
	}

	.scroll-section-header,
	.scroll-container,
	.apps-heading {
		padding-left: 16px;
		padding-right: 16px;
	}

	.apps-grid {
		padding: 16px;
		grid-template-columns: 1fr;
	}

	.category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse-soft {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.7;
	}
}

.animate-fadeIn {
	animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse-soft {
	animation: pulse-soft 4s ease-in-out infinite;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.text-right {
	text-align: right;
}

.text-left {
	text-align: left;
}

.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-center {
	justify-content: center;
}

.gap-4 {
	gap: 16px;
}

.gap-8 {
	gap: 32px;
}

.mt-4 {
	margin-top: 16px;
}

.mt-8 {
	margin-top: 32px;
}

.mb-4 {
	margin-bottom: 16px;
}

.mb-8 {
	margin-bottom: 32px;
}

.p-4 {
	padding: 16px;
}

.p-6 {
	padding: 24px;
}

.w-full {
	width: 100%;
}

.max-w-4xl {
	max-width: 896px;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.hidden {
	display: none;
}

.block {
	display: block;
}

@media (min-width: 768px) {
	.md\:flex {
		display: flex;
	}

	.md\:block {
		display: block;
	}

	.md\:hidden {
		display: none;
	}
}