/**
 * StockAI - Additional Styles
 * Mobile-first optimization with centered card layout
 */

/* Mobile-first: Centered card layout */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  padding: 0 !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 100% !important;
  width: 100% !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  border-radius: 24px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
  min-height: fit-content;
  max-height: 100vh;
  height: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
  max-width: 680px;
  margin: 0;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Optimization - Fit content in one screen */
@media (max-width: 768px) {
  html {
    height: 100%;
    overflow: hidden;
  }

  body {
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card {
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    min-height: calc(100vh - 20px);
    height: auto;
    padding: 24px 18px;
    width: calc(100% - 20px);
    margin: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .logo {
    margin-bottom: 20px;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .logo-text {
    font-size: 32px;
  }

  h1 {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1.15;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
  }

  .features {
    margin: 24px 0;
    gap: 12px;
  }

  .feature {
    padding: 16px 10px;
  }

  .feature i {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .feature-text {
    font-size: 14px;
    font-weight: 500;
  }

  .step-indicator {
    margin: 24px 0;
    gap: 10px;
  }

  .step {
    width: 12px;
    height: 12px;
  }

  .step.active {
    width: 32px;
  }

  .input-container {
    margin-bottom: 18px;
  }

  .code-input {
    padding: 16px 18px;
    font-size: 16px;
    border-radius: 16px;
  }

  .input-hint {
    font-size: 14px;
    margin-top: 10px;
  }

  .btn {
    padding: 16px 22px;
    font-size: 17px;
    border-radius: 16px;
  }

  .trust-badges {
    gap: 16px;
    margin-top: 18px;
    font-size: 14px;
  }

  .disclaimer {
    font-size: 12px;
    margin-top: 18px;
    line-height: 1.5;
  }

  .loading-spinner {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }

  #step2 h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  #step2 .subtitle {
    font-size: 13px;
    margin-bottom: 0;
  }

  .success-animation {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }

  .success-animation .checkmark {
    width: 60px;
    height: 60px;
  }

  #step3 h2 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .result-message {
    margin: 12px 0;
    font-size: 16px;
  }

  #step3 .subtitle {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .btn-whatsapp {
    margin-bottom: 12px;
  }

  #step3 .trust-badges {
    margin-top: 12px;
  }

  #step3 .disclaimer {
    margin-top: 12px;
  }
}

/* Extra small screens - further optimization */
@media (max-width: 480px) {
  html {
    height: 100%;
    overflow: hidden;
  }

  body {
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh;
    overflow: hidden;
  }

  .card {
    padding: 20px 16px;
    border-radius: 24px !important;
    min-height: calc(100vh - 16px);
    height: auto;
    width: calc(100% - 16px);
    margin: 8px;
    max-height: calc(100vh - 16px);
    justify-content: flex-start;
  }

  .logo {
    margin-bottom: 18px;
  }

  .logo-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .logo-text {
    font-size: 28px;
  }

  h1 {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.15;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .features {
    margin: 22px 0;
    gap: 10px;
  }

  .feature {
    padding: 14px 8px;
  }

  .feature i {
    font-size: 24px;
    margin-bottom: 7px;
  }

  .feature-text {
    font-size: 13px;
    font-weight: 500;
  }

  .step-indicator {
    margin: 22px 0;
  }

  .input-container {
    margin-bottom: 16px;
  }

  .code-input {
    padding: 14px 16px;
    font-size: 15px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 16px;
  }

  .trust-badges {
    gap: 14px;
    margin-top: 16px;
    font-size: 13px;
  }

  .disclaimer {
    font-size: 11px;
    margin-top: 16px;
    line-height: 1.5;
  }
}

/* Page Content Styles (for pages directory) */
.page-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

.page-content .container {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #212529;
}

.page-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #495057;
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #6c757d;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content a {
  color: #007bff;
  text-decoration: none;
}

.page-content a:hover,
.page-content a:focus {
  text-decoration: underline;
}

.contact-info {
  margin: 1.5rem 0;
}

.contact-info h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

