/*
 * Remote Code-Pairing Interview Platform
 * Responsive CSS - Mobile-First Design
 * Conservative breakpoints and spacing adjustments
 */

/* ===== MOBILE FIRST BASE STYLES ===== */
/* Base styles are mobile-first, starting from 320px */

/* ===== EXTRA SMALL DEVICES (320px - 575px) ===== */
@media (max-width: 575.98px) {
  /* Container adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography adjustments */
  .hero-title {
    font-size: 1.77rem;
    line-height: 1.2;
  }
  
  .section-title {
    font-size: 1.84rem;
    line-height: 1.2;
  }
  
  h1 {
    font-size: 1.76rem;
  }
  
  h2 {
    font-size: 1.54rem;
  }
  
  h3 {
    font-size: 1.39rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 275px;
}
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.91rem;
  }
  
  /* Section spacing */
  .section {
    padding: 2rem 0;
  }
  
  .section-sm {
    padding: 1.5rem 0;
  }
  
  .section-description {
    font-size: 0.94rem;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .card-footer {
    padding: 1rem;
  }
  
  /* Pricing adjustments */
  .pricing-amount {
    font-size: 1.79rem;
  }
  
  .pricing-currency {
    font-size: 1.39rem;
  }
  
  /* Team card adjustments */
  .team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .team-name {
    font-size: 1rem;
  }
  
  .team-role {
    font-size: 0.87rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 1.00rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.97rem;
  }
  
  /* Decorative shapes - hide on mobile */
  .hero-shape {
    display: none;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer h5 {
    margin-bottom: 0.74rem;
  }
}

/* ===== SMALL DEVICES (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography adjustments */
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 75vh;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  /* Section spacing */
  .section {
    padding: 2.5rem 0;
  }
  
  .section-sm {
    padding: 2rem 0;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1.5rem;
  }
  
  .card-header {
    padding: 1.25rem;
  }
  
  .card-footer {
    padding: 1.25rem;
  }
  
  /* Pricing adjustments */
  .pricing-amount {
    font-size: 2rem;
  }
  
  .pricing-currency {
    font-size: 1.31rem;
  }
  
  /* Team card adjustments */
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .team-name {
    font-size: 1.27rem;
  }
  
  .team-role {
    font-size: 0.90rem;
  }
  
  /* Show decorative shapes but smaller */
  .hero-shape {
    display: block;
    opacity: 0.05;
  }
  
  .hero-shape-1 {
    width: 120px;
    height: 120px;
  }
  
  .hero-shape-2 {
    width: 100px;
    height: 100px;
  }
}

/* ===== MEDIUM DEVICES (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography adjustments */
  .hero-title {
    font-size: 2.63rem;
  }
  
  .section-title {
    font-size: 2.29rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 85vh;
  }
  
  .hero-subtitle {
    font-size: 1.38rem;
  }
  
  .hero-description {
    font-size: 1.21rem;
  }
  
  /* Section spacing */
  .section {
    padding: 3.5rem 0;
  }
  
  .section-sm {
    padding: 2.5rem 0;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 1.75rem;
  }
  
  .card-header {
    padding: 1.5rem;
  }
  
  .card-footer {
    padding: 1.5rem;
  }
  
  /* Pricing adjustments */
  .pricing-amount {
    font-size: 2.58rem;
  }
  
  .pricing-currency {
    font-size: 1.61rem;
  }
  
  /* Team card adjustments */
  .team-avatar {
    width: 110px;
    height: 110px;
  }
  
  .team-name {
    font-size: 1.29rem;
  }
  
  .team-role {
    font-size: 0.96rem;
  }
  
  /* Decorative shapes */
  .hero-shape {
    display: block;
    opacity: 0.08;
  }
  
  .hero-shape-1 {
    width: 150px;
    height: 150px;
  }
  
  .hero-shape-2 {
    width: 120px;
    height: 120px;
  }
}

/* ===== LARGE DEVICES (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Typography - near full size */
  .hero-title {
    font-size: 2.82rem;
  }
  
  .section-title {
    font-size: 2.64rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-subtitle {
    font-size: 1.26rem;
  }
  
  .hero-description {
    font-size: 1.25rem;
  }
  
  /* Section spacing */
  .section {
    padding: 4rem 0;
  }
  
  .section-sm {
    padding: 3rem 0;
  }
  
  /* Card adjustments */
  .card-body {
    padding: 2rem;
  }
  
  .card-header {
    padding: 1.5rem;
  }
  
  .card-footer {
    padding: 1.5rem;
  }
  
  /* Pricing adjustments */
  .pricing-amount {
    font-size: 2.87rem;
  }
  
  .pricing-currency {
    font-size: 1.60rem;
  }
  
  /* Team card adjustments */
  .team-avatar {
    width: 120px;
    height: 120px;
  }
  
  .team-name {
    font-size: 1.34rem;
  }
  
  .team-role {
    font-size: 0.97rem;
  }
  
  /* Decorative shapes */
  .hero-shape {
    display: block;
    opacity: 0.1;
  }
  
  .hero-shape-1 {
    width: 180px;
    height: 180px;
  }
  
  .hero-shape-2 {
    width: 140px;
    height: 140px;
  }
}

/* ===== EXTRA LARGE DEVICES (1200px+) ===== */
@media (min-width: 1200px) {
  /* Full desktop styles - default values from main.css */
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Section spacing */
  .section {
    padding: 5rem 0;
  }
  
  .section-sm {
    padding: 3rem 0;
  }
  
  /* Decorative shapes - full size */
  .hero-shape {
    display: block;
    opacity: 0.1;
  }
  
  .hero-shape-1 {
    width: 200px;
    height: 200px;
  }
  
  .hero-shape-2 {
    width: 150px;
    height: 150px;
  }
}

/* ===== ULTRA WIDE SCREENS (1400px+) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced spacing for ultra-wide */
  .section {
    padding: 6rem 0;
  }
  
  .section-sm {
    padding: 4rem 0;
  }
  
  /* Larger decorative elements */
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 180px;
    height: 180px;
  }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-sm {
    padding: 1.5rem 0;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #c5c1c2;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero-shape {
    display: none;
  }
  
  .navbar {
    display: none;
  }
  
  .footer {
    border-top: 1px solid #f2efef;
  }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi),
       (min-resolution: 2dppx) {
  /* Enhanced text rendering for high DPI */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Sharper borders and shadows */
  .card {
    border: 0.5px solid rgba(0, 0, 0, 0.1);
  }
  
  .form-control {
    border: 0.5px solid #d3d3d3;
  }
} 