/* ====================================
   MOBILE RESPONSIVE STYLES
   Optimizations for mobile devices
   ==================================== */

/* Mobile-first responsive breakpoints */
/* xs: 0-575px, sm: 576-767px, md: 768-991px, lg: 992-1199px, xl: 1200px+ */

/* ====================================
   MOBILE OPTIMIZATIONS (xs-sm)
   ==================================== */

@media (max-width: 767px) {
  /* Reduce animations for performance */
  .constellation-bg {
    display: none;
  }
  
  .particles-canvas {
    opacity: 0.3;
  }
  
  /* Container adjustments */
  .container {
    padding: 0 1rem;
  }
  
  .futuristic-journey-section {
    padding: 4rem 0;
    min-height: auto;
  }
  
  /* Header adjustments */
  .journey-header {
    margin-bottom: 2rem;
  }
  
  .journey-title {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
  }
  
  .journey-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 2rem;
  }
  
  .journey-progress {
    max-width: 300px;
    padding: 0.75rem 1.5rem;
  }
  
  /* Navigation optimizations */
  .journey-navigation {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .step-indicators {
    order: -1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .step-indicator {
    padding: 0.25rem;
    min-width: 44px;
    min-height: 44px;
  }
  
  .indicator-number {
    width: 24px;
    height: 24px;
    font-size: var(--font-size-sm);
  }
  
  .nav-btn {
    width: 44px;
    height: 44px;
  }
  
  /* Journey steps mobile layout */
  .journey-steps-container {
    min-height: auto;
  }
  
  .step-card-container {
    max-width: 100%;
    margin: 0;
  }
  
  .step-card {
    height: auto;
    min-height: 400px;
  }
  
  /* Enhanced card header mobile */
  .card-header {
    padding: 1.5rem 1.5rem 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .header-top {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .step-status-badge {
    order: -1;
  }
  
  .step-icon-container {
    order: 1;
  }
  
  .step-number-badge {
    width: 50px;
    height: 50px;
  }
  
  .step-number {
    font-size: var(--font-size-lg);
  }
  
  .step-icon {
    width: 40px;
    height: 40px;
  }
  
  .step-icon svg {
    width: 20px;
    height: 20px;
  }
  
  /* Card image mobile */
  .card-image-container {
    height: 150px;
    margin: 0 1.5rem;
  }
  
  /* Card content mobile */
  .card-content {
    padding: 1.5rem;
  }
  
  .step-title {
    font-size: var(--font-size-xl);
    text-align: center;
  }
  
  .step-description {
    font-size: var(--font-size-sm);
    text-align: center;
  }
  
  .step-stats {
    margin-bottom: 1.5rem;
  }
  
  .stat-item {
    padding: 0.75rem;
    min-width: 100px;
  }
  
  .stat-value {
    font-size: var(--font-size-xl);
  }
  
  /* Enhanced mobile buttons */
  .enhanced-btn {
    padding: 1rem 2rem;
    min-width: 180px;
  }
  
  .btn-text {
    font-size: var(--font-size-sm);
  }
  
  .quick-actions {
    gap: 0.5rem;
  }
  
  .quick-btn {
    width: 40px;
    height: 40px;
  }
  
  /* Mobile stats adjustments */
  .primary-stat {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  
  .stat-value {
    font-size: var(--font-size-2xl);
  }
  
  .secondary-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .mini-stat {
    padding: 0.75rem;
  }
  
  /* Progress ring mobile */
  .progress-ring {
    width: 50px;
    height: 50px;
    bottom: 0.75rem;
    right: 0.75rem;
  }
  
  .ring-percentage {
    font-size: 10px;
  }
  
  /* Enhancement badge mobile */
  .enhancement-badge {
    padding: 0.25rem 0.5rem;
  }
  
  .enhancement-badge span {
    font-size: 9px;
  }
  
  /* Card back mobile */
  .back-content {
    padding: 1.5rem;
  }
  
  .back-title {
    font-size: var(--font-size-lg);
  }
  
  .detailed-info p {
    font-size: var(--font-size-sm);
  }
  
  .tech-specs {
    padding: 1rem;
  }
  
  /* CTA mobile */
  .journey-cta {
    margin-top: 3rem;
    padding: 2rem 1rem;
  }
  
  .cta-title {
    font-size: var(--font-size-2xl);
  }
  
  .cta-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
  }
  
  .trust-indicators {
    gap: 2rem;
    flex-direction: column;
  }
  
  .trust-number {
    font-size: var(--font-size-2xl);
  }
  
  /* Loading overlay mobile */
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
  
  /* Keyboard help mobile */
  .keyboard-help {
    width: 95%;
    max-width: none;
    padding: 1.5rem;
  }
  
  .help-content h4 {
    font-size: var(--font-size-lg);
  }
  
  .help-content li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ====================================
   TOUCH OPTIMIZATIONS
   ==================================== */

@media (pointer: coarse) {
  /* Increase touch targets */
  .nav-btn,
  .step-indicator,
  .flip-card-btn,
  .back-to-front-btn,
  .cta-primary,
  .cta-secondary {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Optimize hover effects for touch */
  .step-card:hover .step-image,
  .step-card:hover .image-overlay,
  .step-card:hover .hologram-effect,
  .step-card:hover .number-glow {
    transform: none;
    opacity: 0;
  }
  
  /* Remove complex hover animations */
  .step-icon:hover,
  .nav-btn:hover svg {
    transform: none;
  }
  
  /* Simplify tilt effects */
  .step-card[data-tilt] {
    transform: none !important;
  }
}

/* ====================================
   SMALL MOBILE (xs: <576px)
   ==================================== */

@media (max-width: 575px) {
  .futuristic-journey-section {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .journey-title {
    font-size: var(--font-size-2xl);
    line-height: 1.1;
  }
  
  .journey-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .journey-progress {
    max-width: 250px;
    padding: 0.5rem 1rem;
  }
  
  .step-indicators {
    gap: 0.125rem;
  }
  
  .step-indicator {
    padding: 0.125rem;
    min-width: 40px;
    min-height: 40px;
  }
  
  .indicator-number {
    width: 20px;
    height: 20px;
    font-size: var(--font-size-xs);
  }
  
  .step-card {
    min-height: 350px;
  }
  
  .card-header {
    padding: 1rem 1rem 0.5rem;
  }
  
  .step-number-badge {
    width: 40px;
    height: 40px;
  }
  
  .step-number {
    font-size: var(--font-size-base);
  }
  
  .step-icon {
    width: 32px;
    height: 32px;
  }
  
  .step-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .card-image-container {
    height: 120px;
    margin: 0 1rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .step-title {
    font-size: var(--font-size-lg);
  }
  
  .step-description {
    font-size: var(--font-size-xs);
    margin-bottom: 1rem;
  }
  
  .stat-item {
    padding: 0.5rem;
    min-width: 80px;
  }
  
  .stat-value {
    font-size: var(--font-size-lg);
  }
  
  .stat-label {
    font-size: var(--font-size-xs);
  }
  
  .flip-card-btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
  }
  
  .back-content {
    padding: 1rem;
  }
  
  .back-title {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
  }
  
  .detailed-info p {
    font-size: var(--font-size-xs);
    margin-bottom: 1rem;
  }
  
  .feature-list {
    margin-bottom: 1rem;
  }
  
  .feature-list li {
    padding: 0.25rem 0;
    font-size: var(--font-size-xs);
    padding-left: 1.5rem;
  }
  
  .tech-specs {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .spec-item {
    font-size: var(--font-size-xs);
  }
  
  .back-to-front-btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
  }
  
  .journey-cta {
    margin-top: 2rem;
    padding: 1.5rem 0.75rem;
  }
  
  .cta-title {
    font-size: var(--font-size-xl);
  }
  
  .cta-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: 1.5rem;
  }
  
  .cta-buttons {
    margin-bottom: 1.5rem;
  }
  
  .cta-primary,
  .cta-secondary {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
  }
  
  .trust-indicators {
    gap: 1.5rem;
  }
  
  .trust-number {
    font-size: var(--font-size-xl);
  }
  
  .trust-label {
    font-size: var(--font-size-xs);
  }
}

/* ====================================
   TABLET PORTRAIT (sm-md: 576-991px)
   ==================================== */

@media (min-width: 576px) and (max-width: 991px) {
  .futuristic-journey-section {
    padding: 6rem 0;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .journey-navigation {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .step-indicators {
    order: 0;
  }
  
  .step-card {
    height: 450px;
  }
  
  .card-header {
    flex-direction: row;
    padding: 2rem 2rem 1rem;
  }
  
  .card-image-container {
    height: 180px;
    margin: 0 2rem;
  }
  
  .trust-indicators {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ====================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ==================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .futuristic-journey-section {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .journey-header {
    margin-bottom: 1rem;
  }
  
  .journey-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
  }
  
  .journey-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
  }
  
  .journey-navigation {
    margin-bottom: 1rem;
  }
  
  .step-card {
    height: 300px;
    min-height: auto;
  }
  
  .card-header {
    padding: 1rem 1.5rem 0.5rem;
  }
  
  .card-image-container {
    height: 100px;
  }
  
  .card-content {
    padding: 1rem 1.5rem;
  }
  
  .step-description {
    margin-bottom: 1rem;
  }
  
  .step-stats {
    margin-bottom: 1rem;
  }
  
  .journey-cta {
    margin-top: 2rem;
    padding: 2rem 1rem;
  }
  
  .trust-indicators {
    flex-direction: row;
    gap: 1rem;
  }
}

/* ====================================
   DARK MODE ADJUSTMENTS
   ==================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: #1a1a2e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
  }
}

/* ====================================
   PERFORMANCE OPTIMIZATIONS
   ==================================== */

@media (max-width: 767px) {
  /* Disable expensive effects on mobile */
  .journey-cta::before,
  .journey-progress::before,
  .progress-bar::after,
  .flip-card-btn::before {
    display: none;
  }
  
  /* Simplify gradients */
  .gradient-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  }
  
  /* Reduce backdrop blur for performance */
  .journey-progress,
  .journey-navigation,
  .journey-cta {
    backdrop-filter: blur(5px);
  }
  
  /* Disable complex animations */
  [data-animate] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ====================================
   ACCESSIBILITY IMPROVEMENTS
   ==================================== */

@media (max-width: 767px) {
  /* Ensure touch targets meet accessibility guidelines */
  button,
  .step-indicator,
  .nav-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Improve text readability */
  .step-description,
  .cta-subtitle,
  .detailed-info p {
    line-height: 1.7;
  }
  
  /* Better focus indicators on mobile */
  button:focus-visible,
  .step-indicator:focus-visible {
    outline: 3px solid var(--wine-accent);
    outline-offset: 3px;
  }
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
  .futuristic-journey-section {
    background: white !important;
    color: black !important;
    padding: 2rem 0;
  }
  
  .journey-background,
  .particles-canvas,
  .constellation-bg,
  .gradient-overlay {
    display: none !important;
  }
  
  .journey-navigation,
  .loading-overlay,
  .keyboard-help {
    display: none !important;
  }
  
  .step-card {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
    margin-bottom: 2rem;
    height: auto;
  }
  
  .card-face {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  
  .step-title,
  .journey-title {
    color: black !important;
  }
  
  .journey-cta {
    page-break-before: always;
  }
}