/* Apps Page Specific Styles */

.fse-nav__link--active {
  color: var(--primary-emerald) !important;
}

.fse-nav__link--active::after {
  width: 100%;
}

/* Apps Hero Section */
.fse-apps-hero {
  background: var(--primary-gradient);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  text-align: center;
}

.fse-apps-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease-out;
}

.fse-apps-hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Ad Placeholders Section */
.fse-ads-section {
  padding: var(--spacing-2xl) 0;
  background: var(--gray-50);
}

.fse-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1600px;
  margin: 0 auto;
}

.fse-ad-placeholder {
  width: 320px;
  height: 400px;
  background: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  animation: fadeIn 0.6s ease-out;
}

.fse-ad-placeholder:hover {
  border-color: var(--primary-emerald);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.fse-ad-placeholder__content {
  text-align: center;
  padding: var(--spacing-lg);
}

.fse-ad-placeholder__skeleton {
  width: 280px;
  height: 200px;
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-base);
  margin-bottom: var(--spacing-lg);
}

.fse-ad-placeholder__label {
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Platform Cards */
.fse-platforms {
  padding: var(--spacing-3xl) 0;
}

.fse-platform-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base);
  margin-bottom: var(--spacing-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

.fse-platform-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.fse-platform-card__header {
  background: var(--primary-gradient);
  color: var(--white);
  padding: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fse-platform-card__title {
  font-size: 1.5rem;
  margin: 0;
}

.fse-platform-card__rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.fse-stars {
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.fse-rating-text {
  font-weight: 600;
  font-size: 1.125rem;
}

.fse-platform-card__content {
  padding: var(--spacing-xl);
}

.fse-platform-card__description {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  color: var(--gray-700);
  line-height: 1.7;
}

.fse-platform-card__features {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--spacing-xl);
}

.fse-feature-toggle {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.fse-toggle-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  border-radius: var(--radius-base);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.fse-toggle-btn--active {
  border-color: var(--primary-emerald);
  background: var(--primary-emerald);
  color: var(--white);
}

.fse-toggle-btn:hover:not(.fse-toggle-btn--active) {
  border-color: var(--primary-emerald);
  color: var(--primary-emerald);
}

.fse-feature-content ul {
  list-style: none;
  padding: 0;
}

.fse-feature-content li {
  padding: var(--spacing-sm) 0;
  position: relative;
  padding-left: var(--spacing-lg);
  color: var(--gray-700);
}

.fse-feature-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-emerald);
  font-weight: bold;
}

.fse-feature-content[data-content="cons"] li::before {
  content: '✗';
  color: #EF4444;
}

/* Comparison Table */
.fse-comparison {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.fse-comparison-table {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-base);
  background: var(--white);
}

.fse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.fse-table th {
  background: var(--primary-gradient);
  color: var(--white);
  padding: var(--spacing-lg);
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.fse-table td {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
  transition: background-color var(--transition-fast);
}

.fse-table tbody tr:hover {
  background: var(--gray-50);
}

.fse-table tbody tr:hover td {
  background: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fse-ads-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .fse-platform-card__header {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .fse-feature-toggle {
    justify-content: center;
  }
  
  .fse-table {
    font-size: 0.875rem;
  }
  
  .fse-table th,
  .fse-table td {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .fse-ad-placeholder {
    width: 100%;
    max-width: 320px;
  }
  
  .fse-ad-placeholder__skeleton {
    width: 100%;
    max-width: 280px;
  }
}
