/* CaloriesSnap - Professional Mobile Styles (Medium Size Like Normal Apps) */
/* Version: 2.14 - Professional medium sizing with white gradient FAB */

@media (max-width: 768px) {
  :root {
    /* ===== MEDIUM SPACING (Like Instagram, WhatsApp, MyFitnessPal) ===== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 28px;
    
    /* ===== MEDIUM FONT SIZES (Professional & Readable) ===== */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 19px;
    --font-size-2xl: 22px;
    --font-size-3xl: 26px;
    --font-size-4xl: 30px;
    
    /* ===== MEDIUM BORDER RADIUS ===== */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
  }

  /* ===== BODY & TYPOGRAPHY ===== */
  body {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  h1 { 
    font-size: 26px !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
  }
  
  h2 { 
    font-size: 22px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
  }
  
  h3 { 
    font-size: 18px !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
  }
  
  h4 { 
    font-size: 16px !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
  }
  
  p, span, div {
    font-size: 15px !important;
  }

  /* ===== CARDS & CONTAINERS ===== */
  .card,
  .stats-card,
  .food-item,
  .meal-section,
  .goal-section {
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 10px !important;
  }

  /* ===== BUTTONS ===== */
  button:not(.floating-add-btn):not(.nav-item),
  .btn,
  .cta-button {
    padding: 10px 18px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    height: auto !important;
    min-height: 44px !important;
  }

  /* ===== FORM INPUTS ===== */
  input,
  select,
  textarea {
    padding: 10px 12px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    height: 44px !important;
  }

  textarea {
    height: auto !important;
    min-height: 80px !important;
  }

  /* ===== NAVIGATION ===== */
  .bottom-nav {
    height: calc(65px + env(safe-area-inset-bottom)) !important;
    padding-top: 8px !important;
  }

  .nav-item {
    font-size: 10px !important;
    padding: 6px 8px !important;
  }

  .nav-item i {
    font-size: 22px !important;
    margin-bottom: 3px !important;
  }

  /* ===== FLOATING ADD BUTTON (WHITE GRADIENT CIRCLE) ===== */
  .floating-add-btn {
    /* Position: Centered above bottom nav */
    position: fixed !important;
    bottom: 80px !important; /* Above bottom nav */
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    /* Size: Perfect circle */
    width: 60px !important;
    height: 60px !important;
    
    /* Shape: Perfect circle */
    border-radius: 50% !important;
    
    /* Color: White gradient with subtle shine */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    
    /* Border: Subtle purple border */
    border: 2px solid #667eea !important;
    
    /* Icon: Purple color */
    color: #667eea !important;
    
    /* Shadow: Soft professional shadow */
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25), 
                0 2px 8px rgba(0, 0, 0, 0.1) !important;
    
    /* Icon size */
    font-size: 28px !important;
    
    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Z-index */
    z-index: 999 !important;
    
    /* Transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Remove any animations */
    animation: none !important;
  }

  /* FAB active state */
  .floating-add-btn:active {
    transform: translateX(-50%) scale(0.9) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), 
                0 1px 4px rgba(0, 0, 0, 0.1) !important;
  }

  /* Remove any FAB animations */
  @keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
  }

  /* ===== STATS & NUMBERS ===== */
  .stat-number,
  .macro-value,
  .calorie-count {
    font-size: 22px !important;
    font-weight: 700 !important;
  }

  .stat-label,
  .macro-label {
    font-size: 12px !important;
    margin-top: 2px !important;
  }

  /* ===== FOOD ITEMS ===== */
  .food-item {
    padding: 10px !important;
    margin-bottom: 8px !important;
  }

  .food-name {
    font-size: 15px !important;
    font-weight: 500 !important;
  }

  .food-details {
    font-size: 13px !important;
    margin-top: 3px !important;
  }

  .food-calories {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  /* ===== MEAL SECTIONS ===== */
  .meal-header {
    font-size: 17px !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
  }

  .meal-total {
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  /* ===== PROGRESS BARS ===== */
  .progress-bar-container {
    height: 8px !important;
    border-radius: 4px !important;
    margin: 8px 0 !important;
  }

  .progress-bar {
    height: 8px !important;
    border-radius: 4px !important;
  }

  /* ===== BADGES & TAGS ===== */
  .badge,
  .tag {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }

  /* ===== ICON SIZES ===== */
  .icon-sm { font-size: 14px !important; }
  .icon-md { font-size: 18px !important; }
  .icon-lg { font-size: 24px !important; }
  .icon-xl { font-size: 32px !important; }

  /* ===== SPACING UTILITIES ===== */
  .mt-sm { margin-top: 8px !important; }
  .mt-md { margin-top: 12px !important; }
  .mt-lg { margin-top: 16px !important; }
  
  .mb-sm { margin-bottom: 8px !important; }
  .mb-md { margin-bottom: 12px !important; }
  .mb-lg { margin-bottom: 16px !important; }
  
  .p-sm { padding: 8px !important; }
  .p-md { padding: 12px !important; }
  .p-lg { padding: 16px !important; }

  /* ===== PAGE CONTENT ===== */
  .page-content {
    padding: 12px !important;
    padding-bottom: calc(85px + env(safe-area-inset-bottom)) !important; /* Space for nav + FAB */
  }

  /* ===== HEADER ===== */
  .page-header {
    padding: 12px !important;
    margin-bottom: 10px !important;
  }

  .page-title {
    font-size: 24px !important;
    font-weight: 700 !important;
  }

  /* ===== LISTS ===== */
  .list-item {
    padding: 10px 12px !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
  }

  /* ===== MODALS & DIALOGS ===== */
  .modal-content {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .modal-title {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }

  /* ===== CHARTS ===== */
  .chart-container {
    height: 200px !important;
    margin: 12px 0 !important;
  }

  /* ===== LANDING PAGE ===== */
  .hero-icon {
    font-size: 56px !important;
    margin-bottom: 12px !important;
  }

  .hero-title {
    font-size: 28px !important;
    margin-bottom: 8px !important;
  }

  .hero-subtitle {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .hero-tagline {
    font-size: 15px !important;
    margin-bottom: 20px !important;
  }

  .feature-card {
    padding: 14px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }

  .feature-icon {
    font-size: 36px !important;
    margin-bottom: 8px !important;
  }

  /* ===== SETTINGS ===== */
  .settings-section {
    margin-bottom: 16px !important;
  }

  .settings-title {
    font-size: 17px !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
  }

  .settings-item {
    padding: 12px !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
  }

  /* ===== ACHIEVEMENTS & STREAKS ===== */
  .streak-card {
    padding: 14px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }

  .streak-number {
    font-size: 32px !important;
    font-weight: 700 !important;
  }

  .achievement-badge {
    width: 56px !important;
    height: 56px !important;
    font-size: 28px !important;
  }

  /* ===== TABS ===== */
  .tab-button {
    padding: 8px 14px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }

  /* ===== TOAST NOTIFICATIONS ===== */
  .toast {
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }

  /* ===== BOTTOM SHEET ===== */
  .bottom-sheet {
    border-radius: 18px 18px 0 0 !important;
    padding: 16px !important;
  }

  .bottom-sheet-handle {
    width: 36px !important;
    height: 4px !important;
    border-radius: 2px !important;
    margin: 8px auto 12px !important;
  }
}

/* ===== PROFESSIONAL MEDIUM SIZE FOR ALL DEVICES ===== */
/* This ensures consistency across different screen sizes */
