/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.8rem;
    letter-spacing: 6px;
  }

  .logo-icon {
    width: 45px;
    height: 45px;
  }

  .elegant-table {
    min-width: 700px;
  }

  .elegant-table th,
  .elegant-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }

  .modal {
    max-width: 90%;
  }

  .modal-thread {
    max-width: 90%;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-section {
    width: 100%;
  }

  .logo {
    font-size: 1.6rem;
    letter-spacing: 4px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .tagline {
    font-size: 0.75rem;
  }

  .country-selector {
    width: 100%;
    justify-content: space-between;
  }

  .elegant-select {
    flex: 1;
    max-width: 250px;
  }

  .actions-bar {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .table-container {
    padding: 20px 15px;
    border-radius: 10px;
  }

  .elegant-table {
    min-width: 650px;
  }

  .elegant-table th,
  .elegant-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .thread-info-row {
    grid-template-columns: 1fr;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 20px;
  }

  .thread-votes {
    flex-direction: column;
  }

  .vote-btn {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }

  #toast-container {
    right: 10px;
    left: 10px;
    top: 10px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .header {
    padding: 15px 0;
  }

  .logo {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }

  .tagline {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .country-label {
    font-size: 0.85rem;
  }

  .elegant-select {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .icon {
    font-size: 1rem;
  }

  .table-container {
    padding: 15px 10px;
  }

  .elegant-table {
    min-width: 600px;
  }

  .elegant-table th {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .elegant-table td {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .modal {
    border-radius: 15px;
    max-height: 95vh;
  }

  .modal-header {
    padding: 15px;
    border-radius: 15px 15px 0 0;
  }

  .modal-header h2 {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .modal-close {
    font-size: 1.8rem;
  }

  .modal-body {
    padding: 15px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .elegant-input,
  .elegant-textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .thread-info {
    padding: 15px;
  }

  .thread-info-item {
    font-size: 0.85rem;
  }

  .vote-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .vote-icon {
    font-size: 1.1rem;
  }

  .vote-count {
    font-size: 0.85rem;
    padding: 2px 8px;
  }

  .thread-comments h3 {
    font-size: 1.1rem;
  }

  .comment-card {
    padding: 12px;
  }

  .comment-header {
    font-size: 0.8rem;
  }

  .comment-text {
    font-size: 0.85rem;
  }

  .proof-img {
    width: 60px;
    height: 60px;
  }

  .comment-form {
    padding: 15px;
  }

  .empty-icon {
    font-size: 2.5rem;
  }

  .empty-message p {
    font-size: 0.9rem;
  }

  .toast {
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  .toast-icon {
    font-size: 1.2rem;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
  .logo {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .elegant-table {
    min-width: 550px;
  }

  .btn-text {
    font-size: 0.85rem;
  }
}

/* Landscape móvil */
@media (max-height: 600px) and (orientation: landscape) {
  .modal {
    max-height: 95vh;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .thread-votes {
    flex-direction: row;
  }
}

/* Impresión */
@media print {
  .header,
  .actions-bar,
  .modal-overlay,
  #toast-container {
    display: none !important;
  }

  .table-container {
    box-shadow: none;
    border: 1px solid var(--border-gray);
  }

  body {
    background: white;
  }
}
