/**
 * Travel Buddy Styles
 *
 * Styles for the Workation-Partner:in feature including:
 * - Listing cards
 * - Form styles
 * - Filters
 * - Integration with destination pages
 */

/* Card layouts */
.travel-buddy-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.travel-buddy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.travel-buddy-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.travel-buddy-card .card-footer {
  margin-top: auto;
}

.buddy-meta {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buddy-meta-item {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: #f5f5f5;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.25rem;
}

.buddy-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  background-color: #3273dc;
  color: white;
  margin-right: 0.35rem;
  white-space: nowrap;
}

.buddy-badge.is-primary { 
  background-color: #00d1b2; 
}

.buddy-badge.is-danger { 
  background-color: #ff3860; 
}

.buddy-badge.is-warning { 
  background-color: #ffdd57;
  color: rgba(0, 0, 0, 0.7);
}

.buddy-badge.is-info { 
  background-color: #209cee; 
}

.buddy-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.buddy-timeframe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem;
  font-size: 0.9rem;
}

/* Form layouts */
.travel-buddy-form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.travel-buddy-form-section:last-child {
  border-bottom: none;
}

.destination-item, 
.language-row,
.community-link-row {
  transition: all 0.3s ease;
}

.destination-item {
  position: relative;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.destination-item:hover,
.language-row:hover,
.community-link-row:hover {
  background-color: #f8f8f8;
}

/* Filter styles */
.filter-container {
  background-color: #f8f8f8;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.advanced-filters {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* Destination page integration */
.travel-buddy-destination-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 6px;
  background-color: #f5f8ff;
  border: 1px solid #e5eeff;
}

.travel-buddy-empty-state {
  text-align: center;
  padding: 2rem;
  background-color: #f8f8f8;
  border-radius: 6px;
  margin: 2rem 0;
}

.travel-buddy-empty-state .icon {
  font-size: 2.5rem;
  color: #aaa;
  margin-bottom: 1rem;
}

/* Contact modal */
.contact-modal .modal-card-head {
  background-color: #3273dc;
  color: white;
}

.contact-modal .modal-card-title {
  color: white;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .buddy-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .buddy-meta-item {
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
}

/* Search and filter summary */
.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 1rem;
  font-size: 0.9rem;
}

.active-filter button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem;
  color: #ff3860;
  font-weight: bold;
}

/* Pagination */
.buddy-pagination {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Status badges */
.buddy-status {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  background-color: #3273dc;
  color: white;
}

.buddy-status.is-active {
  background-color: #23d160;
}

.buddy-status.is-paused {
  background-color: #ffdd57;
  color: rgba(0, 0, 0, 0.7);
}

.buddy-status.is-closed {
  background-color: #ff3860;
}

.buddy-status.is-expired {
  background-color: #7a7a7a;
}

/* Empty state for no results */
.no-buddies-found {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #f8f8f8;
  border-radius: 6px;
  margin: 2rem 0;
}

.no-buddies-found h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-buddies-found p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* For destination preview on cards */
.destination-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.destination-preview img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.destination-preview span {
  font-weight: 600;
  font-size: 0.9rem;
}

/**
 * Travel Buddy / Workation-Partner:in Styling
 * Hauptstyling für die Workation-Partner:in-Funktionalität
 */

/* Allgemeines Styling für Travel Buddy Komponenten */
.travel-buddy-container {
  margin-bottom: 2rem;
}

/* Filter-Bereich */
.travel-buddy-filters {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

#advanced-filters {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Destination-Auswahl */
.destination-search-container {
  position: relative;
  margin-bottom: 1.5rem;
}

#destination-results {
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.destination-results-list {
  padding: 0.5rem;
}

.destination-result-item {
  display: flex;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.destination-result-item:hover {
  background-color: #f5f5f5;
}

.destination-result-image {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 4px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.destination-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-result-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #888;
}

.destination-result-details {
  flex-grow: 1;
}

.destination-result-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.destination-result-details p {
  font-size: 0.875rem;
  color: #666;
}

#selected-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.selected-destination {
  display: flex;
  align-items: center;
  background-color: #f0f8ff;
  border: 1px solid #add8e6;
  border-radius: 4px;
  padding: 0.5rem;
}

.selected-destination-details {
  margin-right: 0.5rem;
}

.destination-title {
  font-weight: 600;
}

/* Interessen-Tags */
.interests-input-container {
  margin-bottom: 1.5rem;
}

#interests-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.interest-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f0f8ff;
  border: 1px solid #add8e6;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.interest-name {
  margin-right: 0.5rem;
}

/* Inserate-Karten */
.profile-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-profile-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #aaa;
}

.default-profile-image i {
  font-size: 4rem;
}

.buddy-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.buddy-meta-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #555;
}

.buddy-meta-item .icon {
  margin-right: 0.25rem;
}

.buddy-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1rem;
}

.buddy-interest-tag {
  background-color: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Kontakt-Modal */
.contact-modal-content {
  padding: 2rem;
}

#contact-form-error {
  color: #ff3860;
  margin-bottom: 1rem;
  display: none;
}

#contact-form-success {
  display: none;
}

/* Destination Integration */
.travel-buddies-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f5f5f5;
  border-radius: 6px;
}

.travel-buddies-carousel {
  margin-top: 1rem;
}

.travel-buddies-card {
  padding: 1rem;
  margin: 0 0.5rem;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.buddy-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.buddy-thumbnail-default {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  margin-right: 1rem;
}

.travel-buddy-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.travel-buddy-details {
  flex-grow: 1;
}

/* Responsive Anpassungen */
@media screen and (max-width: 768px) {
  .travel-buddy-filters .columns {
    display: block;
  }
  
  .travel-buddy-filters .column {
    padding: 0.5rem 0;
  }
  
  #selected-destinations {
    flex-direction: column;
  }
  
  .travel-buddy-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .buddy-thumbnail,
  .buddy-thumbnail-default {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Dark Mode Anpassungen */
.darkmode .travel-buddy-filters {
  background-color: #2c2c2c;
}

.darkmode .destination-result-item:hover {
  background-color: #3c3c3c;
}

.darkmode .selected-destination {
  background-color: #2c3e50;
  border-color: #34495e;
}

.darkmode .interest-tag {
  background-color: #2c3e50;
  border-color: #34495e;
}

.darkmode .default-profile-image {
  background-color: #2c2c2c;
  color: #666;
}

.darkmode .buddy-meta-item {
  color: #bbb;
}

.darkmode .buddy-interest-tag {
  background-color: #3c3c3c;
}

.darkmode .travel-buddies-section {
  background-color: #2c2c2c;
}

.darkmode .travel-buddies-card {
  background-color: #383838;
}

.darkmode .buddy-thumbnail-default {
  background-color: #444;
  color: #bbb;
}