/**
 * Responsive CSS for Startup Data Room
 */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 3rem 0;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .d-grid.gap-2.d-md-flex {
    display: grid !important;
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .document-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .document-actions {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .card-header {
    padding: 0.75rem;
  }

  .card-body {
    padding: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }

  .document-item {
    flex-wrap: wrap;
  }

  .document-actions {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-end;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .document-info {
    flex: 0 0 50%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .sticky-top {
    top: 2rem;
  }
}

/* Responsive table adjustments */
@media (max-width: 767.98px) {
  .table-responsive {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }
}

/* Responsive navigation */
@media (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
}

/* Responsive document preview */
@media (max-width: 767.98px) {
  .document-preview-container {
    min-height: 200px;
  }

  .modal-dialog.modal-lg {
    max-width: 95%;
    margin: 0.5rem auto;
  }
}

/* Responsive form elements */
@media (max-width: 575.98px) {
  .input-group {
    flex-direction: column;
  }

  .input-group > .form-control {
    width: 100%;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
  }

  .input-group > .btn {
    width: 100%;
    border-radius: 0.375rem !important;
    margin-top: 0.5rem;
  }
}

/* Responsive data room cards */
@media (max-width: 767.98px) {
  .dataroom-card {
    margin-bottom: 1rem;
  }

  .dataroom-stats {
    flex-direction: column;
  }

  .dataroom-stats span {
    margin-bottom: 0.25rem;
  }
}

/* Responsive footer */
@media (max-width: 767.98px) {
  footer {
    text-align: center;
  }

  footer .col-md-2,
  footer .col-md-4 {
    margin-bottom: 1.5rem;
  }

  footer .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }
}
