/* App Detail Page Styles */

/* App Hero Section */
.app-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  position: relative;
}

.app-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15), transparent 400px);
  z-index: 0;
}

.app-hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.app-hero-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--card-bg);
}

.app-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-hero-info {
  flex: 1;
}

.app-hero-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.app-developer {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.app-rating-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.app-downloads {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-category-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

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

/* App Details Section */
.app-details {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.app-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.tab {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab:hover {
  color: var(--text-light);
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
}

.tab-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.tab-content.hidden {
  display: none;
}

.app-description h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.app-description p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.app-screenshots h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.screenshot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.screenshot:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.app-info-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.app-info-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.app-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-info-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.app-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: right;
  font-weight: 500;
}

.whats-new-content p {
  margin-bottom: 1rem;
}

.whats-new-content ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.whats-new-content li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .tab-content {
    grid-template-columns: 1fr;
  }
  
  .app-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .app-hero {
    padding: 120px 0 40px;
  }
  
  .app-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .app-hero-image {
    margin-bottom: 1rem;
  }
  
  .app-rating-container {
    justify-content: center;
  }
  
  .app-buttons {
    justify-content: center;
  }
  
  .app-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
  
  .tab {
    padding: 0.75rem 1rem;
  }
  
  .app-sidebar {
    grid-template-columns: 1fr;
  }
  
  .app-info-card, .app-screenshots {
    text-align: center;
  }
  
  .app-info-list li {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .info-value {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .app-hero-info h1 {
    font-size: 2rem;
  }
  
  .app-rating-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .app-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .app-buttons .btn {
    width: 100%;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
} 