/* ==============================================
   QSL Multi Activity - Frontend Styles
============================================== */

.qsl-public-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Search Form */
.qsl-search-container {
  text-align: center;
  margin-bottom: 40px;
}

.qsl-search-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.qsl-search-form {
  margin: 0 auto;
  max-width: 600px;
}

.qsl-search-input-group {
  display: flex;
  gap: 10px;
}

.qsl-search-input {
  flex: 1;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.qsl-search-input:focus {
  outline: none;
  border-color: #2271b1;
}

.qsl-search-button {
  padding: 12px 30px;
  font-size: 16px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qsl-search-button:hover {
  background: #135e96;
}

.qsl-search-button .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* No Results */
.qsl-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.qsl-no-results .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #f0b849;
  margin-bottom: 15px;
}

.qsl-no-results p {
  font-size: 16px;
  color: #666;
  margin: 10px 0;
}

.qsl-no-results-hint {
  font-size: 14px !important;
  color: #999 !important;
}

/* Results */
.qsl-results-container {
  margin-top: 40px;
}

.qsl-results-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

/* Table */
.qsl-results-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qsl-results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.qsl-results-table thead {
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
}

.qsl-results-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.qsl-results-table tbody tr {
  border-bottom: 1px solid #eee;
}

.qsl-results-table tbody tr:last-child {
  border-bottom: none;
}

.qsl-results-table tbody tr:hover {
  background: #f9f9f9;
}

.qsl-results-table td {
  padding: 15px;
  color: #333;
  font-size: 14px;
}

.qsl-activity-name {
  font-weight: 600;
  color: #2271b1;
}

/* Badges */
.qsl-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.qsl-badge-band {
  background: #e3f2fd;
  color: #1976d2;
}

.qsl-badge-mode {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* Download Button */
.qsl-download-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #00a32a;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s;
}

.qsl-download-button:hover {
  background: #008a20;
  color: white;
}

.qsl-download-button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Responsive */
@media screen and (max-width: 782px) {
  .qsl-public-wrapper {
    padding: 0 15px;
  }

  .qsl-search-title {
    font-size: 22px;
  }

  .qsl-search-input-group {
    flex-direction: column;
  }

  .qsl-search-input,
  .qsl-search-button {
    width: 100%;
  }

  .qsl-results-title {
    font-size: 18px;
  }

  .qsl-results-table-wrapper {
    border-radius: 4px;
  }

  .qsl-results-table {
    font-size: 13px;
  }

  .qsl-results-table th,
  .qsl-results-table td {
    padding: 10px 8px;
  }
}

@media screen and (max-width: 480px) {
  .qsl-search-title {
    font-size: 20px;
  }

  .qsl-no-results {
    padding: 40px 15px;
  }

  .qsl-results-table {
    font-size: 12px;
  }

  .qsl-activity-name {
    font-size: 13px;
  }

  .qsl-download-button {
    padding: 6px 12px;
    font-size: 12px;
  }
}
