/* Mobile-First Design System for HUB */
/* This file completely replaces mobile styles from other CSS files */

/* ========================================
   Mobile Variables
   ======================================== */
:root {
  /* Mobile-specific sizing */
  --mobile-header-height: 60px;
  --mobile-padding: 16px;
  --mobile-gap: 12px;
  --mobile-radius: 8px;
  
  /* Touch targets */
  --touch-target-min: 44px;
  
  /* Mobile typography scale */
  --mobile-font-hero: 32px;
  --mobile-font-title: 24px;
  --mobile-font-subtitle: 20px;
  --mobile-font-body: 16px;
  --mobile-font-small: 14px;
}

/* ========================================
   Mobile Navigation
   ======================================== */
@media (max-width: 768px) {
  /* Hide desktop navigation completely */
  .navbar,
  .navbar::before,
  .navbar::after,
  .logo-circle,
  .logo-circle::before,
  .title-bar,
  .curved-border,
  .nav-bar-black {
    display: none !important;
  }
  
  /* Mobile Header */
  .mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: var(--primary);
    z-index: 10000;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--mobile-padding);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .mobile-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 4px;
  }
  
  .mobile-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  /* Mobile Menu Button */
  .mobile-menu-btn {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  
  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 0;
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
  .mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
  }
  
  .mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .mobile-nav-item:last-child {
    border-bottom: none;
  }
  
  .mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.1);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Adjust main content for mobile header */
  body {
    padding-top: var(--mobile-header-height);
  }
  
  main {
    min-height: calc(100vh - var(--mobile-header-height));
  }
  
  /* ========================================
     Mobile Typography
     ======================================== */
  h1 {
    font-size: var(--mobile-font-hero);
    line-height: 1.2;
  }
  
  h2 {
    font-size: var(--mobile-font-title);
    line-height: 1.3;
  }
  
  h3 {
    font-size: var(--mobile-font-subtitle);
    line-height: 1.4;
  }
  
  p, .text-body {
    font-size: var(--mobile-font-body);
    line-height: 1.6;
  }
  
  /* ========================================
     Mobile Layout Components
     ======================================== */
  .container {
    padding: 0 var(--mobile-padding);
    max-width: 100%;
  }
  
  section {
    padding: 40px 0;
  }
  
  /* Mobile Cards */
  .mobile-card {
    background: white;
    border-radius: var(--mobile-radius);
    padding: 20px;
    margin-bottom: var(--mobile-gap);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  /* Mobile Buttons */
  .btn {
    min-height: var(--touch-target-min);
    padding: 12px 24px;
    font-size: var(--mobile-font-body);
    width: 100%;
    justify-content: center;
  }
  
  /* Mobile Grid */
  .mobile-grid {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-gap);
  }
  
  /* Horizontal Scroll Container */
  .mobile-scroll-container {
    display: flex;
    gap: var(--mobile-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  
  .mobile-scroll-container > * {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
  
  /* Hide scrollbar but keep functionality */
  .mobile-scroll-container::-webkit-scrollbar {
    height: 4px;
  }
  
  .mobile-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
  }
  
  .mobile-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
  }
  
  /* ========================================
     Mobile Hero Section
     ======================================== */
  .hero {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--mobile-padding);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }
  
  .hero h1 {
    color: white;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .hero-subtitle {
    color: white;
    font-size: var(--mobile-font-body);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  /* ========================================
     Mobile Contact Section
     ======================================== */
  .contact-section {
    background: var(--light-gray);
    padding: 40px 0 20px;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-details {
    margin-top: 20px;
  }
  
  .contact-item {
    margin-bottom: 16px;
  }
  
  .contact-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: var(--mobile-font-small);
  }
  
  .contact-value {
    display: block;
    color: var(--text-primary);
    font-size: var(--mobile-font-body);
  }
  
  /* ========================================
     Mobile Footer
     ======================================== */
  .footer-bottom {
    text-align: center;
    padding: 20px var(--mobile-padding);
    font-size: var(--mobile-font-small);
  }
}

/* ========================================
   Mobile-Only Display Classes
   ======================================== */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none !important;
  }
}

/* ========================================
   Prevent Desktop Styles on Mobile
   ======================================== */
@media (max-width: 768px) {
  /* Override any conflicting desktop styles */
  .logo-placeholder,
  .site-title,
  .nav-menu,
  .nav-hamburger {
    display: none !important;
  }
}
