/* BlueStream Entertainment - Fixed Styles
   Comprehensive fix for layout issues
   Created 2025
*/

/* ===== MOBILE MENU FIXES ===== */
@media (max-width: 768px) {
  /* Mobile Menu Button */
  .mobile-menu-btn {
    display: block !important;
    position: absolute;
    right: 20px;
    top: 25px;
    z-index: 100;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 5px;
  }
  
  /* Navigation Menu */
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  
  .nav-menu.active {
    display: flex !important;
  }
  
  .nav-menu li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-menu li a {
    display: block;
    padding: 10px;
    width: 100%;
  }
  
  /* Header Container */
  .header-container {
    position: relative;
    padding: 0 15px;
  }
  
  .logo {
    max-width: 70%;
  }
  
  .logo img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== HEADER FIXES ===== */
.header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 var(--spacing-lg);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* ===== FORM FIXES ===== */
.form-container {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: var(--gray-50);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: white;
}

.form-control.invalid {
  border-color: var(--error);
}

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== FOOTER FIXES ===== */
.footer {
  background-color: var(--gray-800);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo p {
  color: var(--gray-300);
  margin-top: var(--spacing-md);
}

.footer h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-links ul, .footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-services li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a, .footer-services a, .footer-contact a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover, .footer-services a:hover, .footer-contact a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-300);
}

.footer-contact i {
  margin-right: var(--spacing-sm);
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--spacing-md);
}

.footer-legal a {
  color: var(--gray-400);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: white;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .footer-legal {
    justify-content: center;
  }
}

/* ===== PATH FIXES ===== */
/* This ensures images and assets load correctly regardless of path */
img[src^="/assets/"] {
  max-width: 100%;
  height: auto;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .mobile-menu-btn {
    right: 15px;
    top: 20px;
  }
  
  .form-container {
    padding: var(--spacing-lg);
  }
}

/* ===== GENERAL LAYOUT FIXES ===== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

/* Fix for service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content .btn {
  margin-top: auto;
}

/* Fix for testimonial slider */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-300);
  border: none;
  padding: 0;
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--primary);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}