/* MingleTiles Directory Widget Styles */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700;900&display=swap');

.mt-directory-widget {
  font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.mt-directory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.mt-header-content {
  flex: 1;
  text-align: center;
}

.mt-directory-header h2 {
  color: #1800AD;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.mt-directory-header p {
  color: #6B7280;
  font-size: 1.125rem;
  margin: 0;
}

.mt-btn-join {
  background: #FF66C4;
  color: white;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 102, 196, 0.3);
  transition: all 0.3s;
  white-space: nowrap;
}

.mt-btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 196, 0.4);
}

/* Search Section */
.mt-directory-search {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.mt-search-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mt-input,
.mt-select {
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.mt-input {
  flex: 1;
  min-width: 200px;
}

.mt-select {
  min-width: 120px;
}

.mt-input:focus,
.mt-select:focus {
  outline: none;
  border-color: #7ED957;
}

.mt-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.mt-btn-primary {
  background: #7ED957;
  color: white;
  box-shadow: 0 4px 15px rgba(126, 217, 87, 0.3);
}

.mt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 217, 87, 0.4);
}

/* Filter Tabs */
.mt-filter-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.mt-tab {
  padding: 0.5rem 1.5rem;
  border: 2px solid #E5E7EB;
  background: white;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #6B7280;
}

.mt-tab:hover {
  border-color: #1800AD;
  color: #1800AD;
}

.mt-tab.active {
  background: #1800AD;
  border-color: #1800AD;
  color: white;
}

/* Content Layout */
.mt-directory-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .mt-directory-content {
    grid-template-columns: 1fr;
  }
}

/* Map */
.mt-directory-map {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 600px;
}

@media (max-width: 768px) {
  .mt-directory-map {
    height: 400px;
  }
}

/* List */
.mt-directory-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mt-results-count {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
}

.mt-entries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Scrollbar styling */
.mt-entries-list::-webkit-scrollbar {
  width: 8px;
}

.mt-entries-list::-webkit-scrollbar-track {
  background: #F8F9FA;
  border-radius: 4px;
}

.mt-entries-list::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 4px;
}

.mt-entries-list::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* Entry Cards */
.mt-entry-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.mt-entry-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.mt-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.mt-entry-header h3 {
  color: #1800AD;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.mt-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.mt-badge-teacher {
  background: #EEF2FF;
  color: #1800AD;
}

.mt-badge-group {
  background: #F0FDFA;
  color: #0D9488;
}

.mt-entry-location {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.mt-distance {
  color: #7ED957;
  font-weight: 500;
}

.mt-entry-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mt-social-link {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.mt-facebook {
  background: #EFF6FF;
  color: #1877F2;
}

.mt-facebook:hover {
  background: #1877F2;
  color: white;
}

.mt-instagram {
  background: #FEF2F2;
  color: #E4405F;
}

.mt-instagram:hover {
  background: #E4405F;
  color: white;
}

/* Loading & Empty States */
.mt-loading,
.mt-empty,
.mt-error {
  text-align: center;
  padding: 3rem 1rem;
  color: #6B7280;
}

.mt-error {
  color: #DC2626;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .mt-directory-widget {
    padding: 1rem 0.5rem;
  }

  .mt-directory-header {
    flex-direction: column;
    text-align: center;
  }

  .mt-header-content {
    text-align: center;
  }

  .mt-directory-header h2 {
    font-size: 1.5rem;
  }

  .mt-btn-join {
    width: 100%;
  }

  .mt-search-form {
    flex-direction: column;
  }

  .mt-input,
  .mt-select,
  .mt-btn {
    width: 100%;
  }

  .mt-filter-tabs {
    flex-wrap: wrap;
  }

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