/* custom-app.css - Custom Applications Page Styling */

.apps-hero {
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
}

.apps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 9999px;
  color: #38bdf8;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.apps-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.apps-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* App Filter Tabs */
.apps-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.app-filter-btn {
  padding: 0.55rem 1.5rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-filter-btn:hover, .app-filter-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* App Grid */
.apps-container {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
}

.app-card.reverse {
  direction: ltr;
}

.app-card.reverse > * {
  direction: rtl;
}

.app-badge-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-type-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.app-type-badge.free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.app-type-badge.paid {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.app-tag-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.app-subtitle-text {
  font-size: 1rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.app-desc {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.app-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-feature-item i {
  color: #38bdf8;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.app-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-btn-whatsapp {
  background: #25D366;
  color: #ffffff;
}

.app-btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

.app-img-box {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 380px;
}

.app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.app-img-box:hover .app-img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .app-card, .app-card.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
    direction: rtl;
  }
}
