/* NYLA GO PWA - Tab Navigation Styles */

.tab-navigation {
  display: flex;
  background: rgba(26, 26, 26, 0.3);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tab-button {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #cccccc;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button:hover {
  color: #ffffff;
  background: rgba(42, 42, 42, 0.4);
}

.tab-button.active {
  background: #FF6B35;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #FF6B35;
  border-radius: 2px;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

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

/* Raid Tab Styles */
.raid-categories {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.raid-categories::-webkit-scrollbar {
  width: 6px;
}

.raid-categories::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.raid-categories::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 3px;
}

.raid-categories::-webkit-scrollbar-thumb:hover {
  background: #FF6B35;
}

.raid-category {
  margin-bottom: 24px;
}

.raid-category h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #333333;
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 1;
}

.raid-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.raid-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #FF6B35;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.2);
}

.raid-list-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.list-info {
  flex: 1;
}

.list-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.list-description {
  font-size: 13px;
  color: #cccccc;
  line-height: 1.3;
}

.list-action {
  margin-left: 16px;
  display: flex;
  align-items: center;
}

.open-icon {
  font-size: 18px;
  color: #FF6B35;
  font-weight: bold;
  transition: all 0.2s ease;
}

.raid-list-item:hover .open-icon {
  transform: translateX(4px) scale(1.1);
  color: #ffffff;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .tab-button {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  .raid-list-item {
    padding: 14px;
  }
  
  .list-name {
    font-size: 14px;
  }
  
  .list-description {
    font-size: 12px;
  }
  
  .open-icon {
    font-size: 16px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .tab-content {
    animation: none;
  }
  
  .raid-list-item {
    transition: none;
  }
  
  .raid-list-item:hover {
    transform: none;
  }
  
  .open-icon {
    transition: none;
  }
  
  .raid-list-item:hover .open-icon {
    transform: none;
  }
}

/* App Tab Styles */
.app-showcase, .raid-showcase {
  /* Remove height restriction for better UX - let content flow naturally */
  padding-bottom: 20px;
}

.app-intro, .raid-intro {
  text-align: center;
  margin-bottom: 28px;
  padding: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 12px;
  border: 1px solid #333333;
}

.app-intro h3, .raid-intro h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.app-intro p, .raid-intro p {
  color: #cccccc;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.app-category {
  margin-bottom: 28px;
}

.app-category h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-item {
  display: flex;
  align-items: center;
  padding: 18px;
  background: rgba(26, 26, 26, 0.4);
  border: 1px solid #333333;
  border-radius: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.app-item:hover {
  background: #2a2a2a;
  border-color: #FF6B35;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.app-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.app-icon {
  font-size: 28px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #333333;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.app-item:hover .app-icon {
  background: #FF6B35;
  transform: scale(1.1);
}

.app-info {
  flex: 1;
}

.app-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.app-author {
  font-size: 12px;
  color: #FF6B35;
  font-weight: 600;
  margin-bottom: 6px;
}

.app-description {
  font-size: 13px;
  color: #cccccc;
  line-height: 1.3;
}

.app-action {
  margin-left: 16px;
  display: flex;
  align-items: center;
}

.play-icon {
  font-size: 20px;
  color: #FF6B35;
  font-weight: bold;
  transition: all 0.3s ease;
}

.app-item:hover .play-icon {
  transform: translateX(4px) scale(1.2);
  color: #ffffff;
}


/* Mobile optimizations for App tab */
@media (max-width: 480px) {
  .app-showcase {
    padding-bottom: 16px;
  }
  
  .app-item {
    padding: 14px;
  }
  
  .app-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    margin-right: 12px;
  }
  
  .app-name {
    font-size: 15px;
  }
  
  .app-description {
    font-size: 12px;
  }
}