/* Enhanced Mobile Tabs for Latest News and BB on Web */
.mobile-tabs {
  display: none; /* Hidden by default, shown only on mobile */
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.87); /* 87% opacity white background */
  backdrop-filter: blur(15px); /* Enhanced glassmorphism effect */
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-buttons {
  display: flex;
  width: 100%;
  position: relative;
}

.tab-button {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #111; /* Black text for readability */
  position: relative;
  overflow: hidden;
  font-size: 16px;
  border: none;
  background: transparent;
  min-height: 44px; /* Touch-friendly height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-button:not(.active):hover {
  background: rgba(255, 140, 0, 0.1);
  color: #993300;
}

.tab-button.active {
  background: linear-gradient(135deg, #993300, #FF8C00); /* Enhanced burnt orange gradient */
  color: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.5);
}

/* Content sections */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Enhanced content split layout */
.content-split {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.articles-column {
  flex: 0 0 60%;
}

.bbonweb-column {
  flex: 0 0 40%;
}

/* Mobile-specific styles */
@media (max-width: 900px) {
  .mobile-tabs {
    display: block;
    margin: 0 0.75rem 1.5rem 0.75rem;
  }
  
  /* Hide both columns by default on mobile */
  .articles-column, 
  .bbonweb-column {
    display: none;
  }
  
  /* Show active column */
  .articles-column.active,
  .bbonweb-column.active {
    display: block;
    width: 100%; /* Full width on mobile */
    flex: none;
  }
  
  /* Adjust content split to be full width */
  .content-split {
    flex-direction: column;
    gap: 0;
  }
  
  /* Enhanced mobile tab styling */
  .tab-button {
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
  }
}

@media (max-width: 600px) {
  .mobile-tabs {
    margin: 0 0.5rem 1rem 0.5rem;
    border-radius: 10px;
  }
  
  .tab-button {
    padding: 14px 0;
    font-size: 15px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .tab-button {
    min-height: 48px; /* Larger touch target */
  }
  
  .tab-button:not(.active):active {
    background: rgba(255, 140, 0, 0.2);
    transform: scale(0.98);
  }
}
