/* ApksGet02 - Modern Theme v2.0 */
/* New Orange/Coral Design with Glassmorphism */

:root {
  --primary: #ff6b35;
  --primary-dark: #e85a2a;
  --primary-light: #ff8c5a;
  --secondary: #f7c59f;
  --accent: #2ec4b6;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --light: #fafafa;
  --gray: #6b7280;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Light Mode (Default) */
  --bg-body: linear-gradient(135deg, #fdf6f0 0%, #f5ebe0 100%);
  --bg-section: rgba(255, 255, 255, 0.8);
  --bg-section-alt: rgba(255, 243, 235, 0.6);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-header: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
  --bg-hero: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
  --bg-cta: linear-gradient(135deg, #ff6b35, #ff8c5a);
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-hero: #ffffff;
  --border-color: rgba(255, 107, 53, 0.1);
  --shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.08);
  --shadow-md: 0 8px 24px rgba(255, 107, 53, 0.12);
  --shadow-lg: 0 16px 48px rgba(255, 107, 53, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-body: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  --bg-section: rgba(26, 26, 46, 0.9);
  --bg-section-alt: rgba(15, 15, 26, 0.8);
  --bg-card: rgba(30, 30, 50, 0.9);
  --bg-card-hover: rgba(40, 40, 65, 1);
  --bg-header: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  --bg-hero: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #ff6b35 100%);
  --text-primary: #f7fafc;
  --text-secondary: #cbd5e0;
  --text-muted: #a0aec0;
  --border-color: rgba(255, 107, 53, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  transition: all 0.4s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   HEADER - Glassmorphism Style
   ============================================ */
#header {
  background: var(--bg-header);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.nav-menu a:hover {
  background: rgba(255, 107, 53, 0.2);
  color: #fff;
  border-color: rgba(255, 107, 53, 0.3);
}

.nav-menu a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

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

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 107, 53, 0.3);
  transform: scale(1.05);
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

.mobile-menu-btn {
  display: none;
  background: var(--primary);
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  color: #fff;
}

/* ============================================
   HERO SECTION - Vibrant Gradient
   ============================================ */
.hero {
  background: var(--bg-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--text-hero);
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-text h1 span {
  background: linear-gradient(135deg, #fff 0%, #ffd4c4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* ============================================
   BUTTONS - Modern Pill Style
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 70px 0;
  background: var(--bg-section);
  backdrop-filter: blur(10px);
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.view-all {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
}

.view-all:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(5px);
}

/* ============================================
   APP CARDS - Clean Card Design
   ============================================ */
.app-grid, .featured-grid, .game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-sm);
  transition: all 0.35s ease;
  position: relative;
  border: 1px solid var(--border-color);
}

.app-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.25);
}

.app-card:hover::before {
  transform: scaleX(1);
}

/* 卡片图标区域 */
.app-card-img {
  height: 130px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

.app-card-img img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease;
}

.app-card:hover .app-card-img img {
  transform: scale(1.1) rotate(-2deg);
}

/* 卡片内容区域 */
.app-card-body {
  padding: 16px;
  text-align: center;
}

.app-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.app-card:hover .app-card-body h3 {
  color: var(--primary);
}

.app-card-body .category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.app-card-body .rating {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.download-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.app-card:hover .download-btn {
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* 卡片链接 - 上下结构 (apksget结构兼容) */
.app-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 20px 16px;
  gap: 14px;
}

/* 图标区域 */
.app-card-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
  transition: all 0.35s ease;
  position: relative;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card:hover .app-card-icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35);
}

/* 信息区域 */
.app-card-info {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* 标题 */
.app-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.app-card:hover .app-card-title {
  color: var(--primary);
}

/* 简介描述 */
.app-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 元信息区域 */
.app-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* 评分容器 */
.app-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fff5eb, #ffe4cc);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  border: 1px solid rgba(255, 107, 53, 0.15);
}

.app-card-rating .star {
  font-size: 12px;
  line-height: 1;
}

.app-card-rating .star.full {
  color: #f59e0b;
}

/* 大小标签 */
.app-card-size {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* App Badge */
.app-card .app-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ============================================
   GAME CARDS
   ============================================ */
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  text-decoration: none;
  display: block;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.game-card-img {
  height: 180px;
  background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.game-card-img img {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-img img {
  transform: scale(1.15);
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.play-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2ec4b6, #20a39e);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.game-card:hover .play-btn {
  box-shadow: 0 4px 15px rgba(46, 196, 182, 0.4);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: var(--bg-cta);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta .btn {
  background: #fff;
  color: var(--primary);
  padding: 16px 36px;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.cta .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--darker);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-about img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(1.2);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 14px;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: var(--bg-hero);
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-info {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pagination a {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
}

.pagination .dots {
  color: var(--text-muted);
}

.pagination .prev,
.pagination .next {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
}

/* ============================================
   CONTENT BOX (For static pages)
   ============================================ */
.content-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.content-box h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.content-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 15px;
}

.content-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.content-box ul, .content-box ol {
  margin: 15px 0 20px 25px;
  color: var(--text-secondary);
}

.content-box li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ============================================
   DOWNLOAD PAGE
   ============================================ */
.download-hero {
  background: var(--bg-hero);
  padding: 60px 0;
  text-align: center;
}

.download-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}

.download-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: 20px auto 40px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.download-box img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.download-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.download-box .download-btn {
  display: inline-flex;
  padding: 16px 40px;
  font-size: 16px;
  width: auto;
}

.download-box .app-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.download-box .info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.download-box .info-item span {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-box .info-item strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .download-box .app-info {
    gap: 15px;
  }
  .download-box .info-item strong {
    font-size: 14px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
  margin-top: 30px;
  position: relative;
  max-width: 550px;
}

.search-form {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 60px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.search-form input {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  outline: none;
  min-width: 0;
}

.search-form input::placeholder {
  color: #888;
}

.search-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.search-btn {
  padding: 14px 30px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.02);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-top: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  border: 1px solid var(--border-color);
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.search-result-item:hover {
  background: rgba(255, 107, 53, 0.05);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.search-no-results,
.search-loading {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE - Large Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: 2.25rem; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 350px; margin: 0 auto; transform: none; }
  .hero-btns { justify-content: center; }
  .search-box { margin: 25px auto 0; }
  .app-grid, .featured-grid, .game-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 50px 0; }
}

/* ============================================
   RESPONSIVE - Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  
  .nav-menu { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--darker);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-menu.show { display: flex; }
  .nav-menu a { padding: 12px 16px; border-radius: 10px; }
  .mobile-menu-btn { display: block; }
  .theme-toggle { margin-left: 0; padding: 8px 10px; font-size: 14px; }
  
  .hero { padding: 40px 0; }
  .hero-text h1 { font-size: 1.75rem; line-height: 1.3; }
  .hero-text p { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 13px; }
  
  .section { padding: 40px 0; }
  .section-title { font-size: 1.35rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .view-all { padding: 8px 16px; font-size: 13px; }
  
  /* Card Grid - 2 columns on tablet */
  .app-grid, .featured-grid, .game-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 14px; 
  }
  
  .app-card { border-radius: 16px; }
  .app-card-link { padding: 16px 12px; gap: 10px; }
  .app-card-icon { width: 64px; height: 64px; border-radius: 14px; }
  .app-card-title { font-size: 13px; }
  .app-card-desc { font-size: 11px; -webkit-line-clamp: 2; }
  .app-card-meta { gap: 6px; margin-top: 4px; }
  .app-card-rating { padding: 3px 8px; font-size: 10px; }
  .app-card-size { padding: 3px 6px; font-size: 9px; }
  .app-card-img { height: 100px; padding: 18px; }
  .app-card-img img { width: 56px; height: 56px; border-radius: 14px; }
  .app-card-body { padding: 14px; }
  .app-card-body h3 { font-size: 13px; margin-bottom: 6px; }
  .app-card-body .category { font-size: 9px; padding: 3px 8px; margin-bottom: 8px; }
  .app-card-body .rating { font-size: 11px; margin-bottom: 10px; }
  .download-btn { padding: 10px 12px; font-size: 11px; border-radius: 10px; }
  
  .game-card-img { height: 120px; }
  .game-card-img img { width: 65px; height: 65px; }
  .game-card-body { padding: 14px; }
  .game-card-body h3 { font-size: 13px; }
  .game-meta { font-size: 11px; }
  .play-btn { padding: 10px; font-size: 11px; }
  
  .cta { padding: 50px 0; }
  .cta h2 { font-size: 1.5rem; }
  .cta p { font-size: 0.95rem; }
  
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .footer-about { text-align: center; }
  .footer-about img { margin: 0 auto 16px; }
  .footer-links h4 { margin-bottom: 14px; }
  
  .page-header { padding: 35px 0; }
  .page-header h1 { font-size: 1.5rem; }
  .page-header p { font-size: 0.9rem; }
  
  .content-box { padding: 20px; border-radius: var(--radius); }
  .content-box h1 { font-size: 1.35rem; margin-bottom: 18px; padding-bottom: 14px; }
  .content-box h2 { font-size: 1.15rem; margin: 22px 0 12px; }
  .content-box p { font-size: 14px; line-height: 1.7; }
  
  .download-box { padding: 24px 18px; margin: 15px 12px 30px; border-radius: var(--radius-lg); }
  .download-box img { width: 80px; height: 80px; border-radius: 18px; }
  .download-box h2 { font-size: 1.2rem; }
  .download-hero { padding: 40px 0; }
  .download-hero h1 { font-size: 1.5rem; }
  
  .steps { gap: 16px; }
  .step { padding: 20px 16px; }
  .step-num { width: 42px; height: 42px; font-size: 18px; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: 13px; }
  
  .pagination { gap: 6px; margin-top: 30px; }
  .pagination a, .pagination span { padding: 8px 12px; font-size: 13px; }
  
  /* Search Box Mobile */
  .search-box {
    margin-top: 20px;
    max-width: 100%;
  }
  
  .search-form {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }
  
  .search-form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 16px;
  }
  
  .search-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
  }
  
  .search-results {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 60vh;
  }
  
  .search-result-item { padding: 12px 14px; }
  .search-result-item img { width: 44px; height: 44px; }
  .search-result-info h4 { font-size: 14px; }
  .search-result-info span { font-size: 12px; }
}

/* ============================================
   RESPONSIVE - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  
  .logo img { height: 36px; }
  .mobile-menu-btn { padding: 8px 12px; font-size: 18px; }
  
  .hero { padding: 30px 0; }
  .hero-text h1 { font-size: 1.5rem; }
  .hero-text p { font-size: 0.9rem; }
  .hero-image img { max-width: 280px; }
  
  .section { padding: 30px 0; }
  .section-title { font-size: 1.2rem; }
  
  /* Keep 2 columns but smaller */
  .app-grid, .featured-grid, .game-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
  }
  
  .app-card { border-radius: 14px; }
  .app-card-link { padding: 14px 10px; gap: 8px; }
  .app-card-icon { width: 54px; height: 54px; border-radius: 12px; }
  .app-card-title { font-size: 12px; }
  .app-card-desc { font-size: 10px; -webkit-line-clamp: 2; }
  .app-card-meta { gap: 5px; }
  .app-card-rating { padding: 2px 6px; font-size: 9px; }
  .app-card-size { padding: 2px 5px; font-size: 8px; }
  .app-card-img { height: 90px; padding: 16px; }
  .app-card-img img { width: 48px; height: 48px; border-radius: 12px; }
  .app-card-body { padding: 12px; }
  .app-card-body h3 { font-size: 12px; margin-bottom: 5px; }
  .app-card-body .category { font-size: 8px; padding: 3px 7px; margin-bottom: 6px; }
  .app-card-body .rating { font-size: 10px; margin-bottom: 8px; }
  .download-btn { padding: 9px 10px; font-size: 10px; border-radius: 8px; }
  
  .game-card-img { height: 100px; }
  .game-card-img img { width: 55px; height: 55px; border-radius: 14px; }
  .game-card-body { padding: 12px; }
  .game-card-body h3 { font-size: 12px; }
  .game-meta { font-size: 10px; }
  .play-btn { padding: 9px; font-size: 10px; border-radius: 7px; }
  
  .cta { padding: 40px 0; }
  .cta h2 { font-size: 1.3rem; }
  .cta p { font-size: 0.9rem; margin-bottom: 20px; }
  .cta .btn { padding: 14px 28px; font-size: 13px; }
  
  .page-header { padding: 28px 0; }
  .page-header h1 { font-size: 1.3rem; }
  
  .content-box { padding: 16px; }
  .content-box h1 { font-size: 1.2rem; }
  .content-box h2 { font-size: 1.05rem; }
  
  .download-box { padding: 20px 14px; margin: 15px 10px 24px; }
  .download-box img { width: 70px; height: 70px; border-radius: 16px; margin-bottom: 14px; }
  .download-box h2 { font-size: 1.1rem; margin-bottom: 16px; }
  .download-box .download-btn { padding: 14px 30px; font-size: 13px; }
  
  .search-form { padding: 10px; border-radius: 18px; }
  .search-form input { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
  .search-btn { padding: 12px; border-radius: 12px; font-size: 13px; }
}
