/* 
 * WEBRION Technologies - Android Apps Showcase & Play Store Ecosystem Styles
 * Cyber-PlayStore Aesthetic with High-Contrast Dark & Light Theme Adaptability
 */

:root {
  --android-green: #22c55e;
  --android-green-glow: rgba(34, 197, 94, 0.25);
  --android-green-border: rgba(34, 197, 94, 0.35);
  --app-card-bg: var(--bg-navy-card);
  --app-card-hover: var(--bg-navy-hover);
}

/* ============================================================
   1. APPS HERO SECTION
   ============================================================ */
.apps-hero-section {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apps-badge-tag {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--android-green-border);
  color: var(--android-green);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.apps-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  line-height: 1.15;
}

.apps-hero-title .gradient-text {
  background: linear-gradient(135deg, #22c55e 0%, var(--accent-cyan) 60%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.apps-hero-desc {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Hero Trust Stats Pills */
.apps-hero-trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px auto 40px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.trust-item i {
  color: var(--android-green);
}

/* ============================================================
   2. SEARCH & FILTER CONTROLS
   ============================================================ */
.apps-search-wrap {
  max-width: 640px;
  margin: 0 auto 30px;
  position: relative;
}

.apps-search-input {
  width: 100%;
  background: var(--bg-navy-card);
  border: 1px solid var(--border-neon);
  padding: 18px 24px 18px 55px;
  border-radius: 50px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.apps-search-input:focus {
  outline: none;
  border-color: var(--android-green);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

.apps-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.apps-search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: none;
  font-size: 14px;
}

.apps-search-clear:hover {
  color: var(--text-white);
}

/* Category Filter Tabs */
.apps-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.app-filter-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-filter-pill:hover {
  color: var(--text-white);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
  background: rgba(34, 197, 94, 0.08);
}

.app-filter-pill.active {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  font-weight: 700;
}

/* ============================================================
   3. APPS GRID & CARDS
   ============================================================ */
.apps-grid-section {
  padding-bottom: 90px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.app-card {
  background: var(--bg-navy-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--android-green-border);
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.12);
}

.app-card:hover::before {
  opacity: 1;
}

/* Featured Ribbon */
.app-featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--android-green-border);
  color: var(--android-green);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Card Header (Icon + Title + Category + Stars) */
.app-card-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-icon-squircle {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

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

.app-header-info {
  flex: 1;
  min-width: 0;
}

.app-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.app-card-title a:hover {
  color: var(--accent-cyan);
}

.app-card-category {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
}

.app-meta-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.app-meta-rating i {
  color: #fbbf24;
}

.app-rating-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: normal;
}

/* Card Body */
.app-card-pitch {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

/* Quick Specs Row */
.app-specs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.app-spec-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-spec-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  opacity: 0.8;
}

.app-spec-val {
  font-weight: 700;
  color: var(--text-white);
}

/* Card Actions */
.app-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-app-apk {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  border: none;
}

.btn-app-apk:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.btn-app-playstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  border-radius: 12px;
  font-size: 17px;
  text-decoration: none;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-app-playstore:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-app-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-app-details:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Empty State */
.apps-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.apps-empty-state i {
  font-size: 56px;
  color: var(--android-green);
  opacity: 0.6;
  margin-bottom: 18px;
}

.apps-empty-state h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

/* ============================================================
   4. APP DETAILS PAGE
   ============================================================ */
.app-detail-hero {
  padding-top: 140px;
  padding-bottom: 40px;
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.app-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.app-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.app-breadcrumb i {
  font-size: 11px;
  opacity: 0.6;
}

/* Header Card on Details Page */
.app-detail-header-card {
  background: var(--bg-navy-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.app-detail-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.app-detail-info {
  flex: 1;
  min-width: 260px;
}

.app-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.app-detail-package {
  font-family: monospace;
  font-size: 12.5px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: block;
}

.app-detail-pitch {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 700px;
}

.app-detail-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.app-stat-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-stat-unit i {
  color: var(--android-green);
  font-size: 16px;
}

.app-stat-unit .stat-val {
  font-weight: 800;
  color: var(--text-white);
  font-size: 15px;
}

.app-stat-unit .stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Actions in Header */
.app-detail-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}

.btn-detail-apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 26px;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
  text-align: center;
}

.btn-detail-apk:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
}

.btn-detail-playstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-white) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-detail-playstore:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

.app-verified-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--android-green);
  text-align: center;
  font-weight: 600;
}

/* Screenshots Slider */
.app-screenshots-section {
  margin-bottom: 50px;
}

.section-subhead {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subhead i {
  color: var(--android-green);
  font-size: 18px;
}

.swiper-screenshots {
  width: 100%;
  padding-bottom: 45px !important;
}

.screenshot-slide-inner {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  background: #000;
}

.screenshot-slide-inner:hover {
  transform: translateY(-6px);
  border-color: var(--android-green-border);
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.2);
}

.screenshot-slide-inner img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Two Column Details (About & Tech Specs) */
.app-body-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  margin-bottom: 60px;
}

.app-detail-card {
  background: var(--bg-navy-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 26px;
}

.app-desc-content {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}

.app-changelog-box {
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid var(--android-green-border);
  border-radius: 16px;
  padding: 22px;
  margin-top: 24px;
}

.app-changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-changelog-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--android-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-changelog-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-line;
}

/* Tech Specs Table */
.app-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.app-specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.app-specs-table tr:last-child {
  border-bottom: none;
}

.app-specs-table td {
  padding: 13px 0;
  font-size: 13.5px;
}

.app-specs-table td.spec-key {
  color: var(--text-muted);
  width: 45%;
}

.app-specs-table td.spec-val {
  color: var(--text-white);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* ============================================================
   5. CUSTOM APP DEVELOPMENT CTA BANNER
   ============================================================ */
.apps-custom-cta-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--android-green-border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
  margin-bottom: 40px;
}

.apps-custom-cta-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
}

.apps-custom-cta-card p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.apps-custom-cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.5);
}

.btn-cta-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-white) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

/* ============================================================
   6. LIGHT THEME OVERRIDES (Ensures 100% High-Contrast)
   ============================================================ */
[data-theme="light"] .app-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .app-detail-header-card,
[data-theme="light"] .app-detail-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .app-specs-row {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .app-filter-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

[data-theme="light"] .app-filter-pill:hover {
  background: rgba(34, 197, 94, 0.1);
  color: #0f172a;
}

[data-theme="light"] .app-filter-pill.active {
  color: #ffffff;
}

[data-theme="light"] .apps-search-input {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .trust-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

[data-theme="light"] .btn-app-playstore,
[data-theme="light"] .btn-app-details,
[data-theme="light"] .btn-detail-playstore,
[data-theme="light"] .btn-cta-outline {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a !important;
}

[data-theme="light"] .btn-app-playstore:hover,
[data-theme="light"] .btn-app-details:hover,
[data-theme="light"] .btn-detail-playstore:hover,
[data-theme="light"] .btn-cta-outline:hover {
  background: #e2e8f0;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

/* ============================================================
   7. RESPONSIVENESS
   ============================================================ */
@media (max-width: 991px) {
  .app-body-columns {
    grid-template-columns: 1fr;
  }

  .app-detail-header-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .app-detail-stats-bar {
    justify-content: center;
  }

  .app-detail-actions-col {
    width: 100%;
  }

  .apps-custom-cta-card {
    padding: 32px 20px;
  }
}

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

  .apps-hero-section {
    padding-top: 120px;
  }

  .screenshot-slide-inner img {
    height: 380px;
  }
}
