@font-face {
  font-family: 'PPPangaia';
  src: url('/fonts/PPPangaia-Bold.otf') format('opentype');
  font-weight: bold;
}

@font-face {
  font-family: 'PPPangaia';
  src: url('/fonts/PPPangaia-Ultralight.otf') format('opentype');
  font-weight: 100;
}

body {
  font-family: 'PPPangaia', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #000;
  overflow: hidden;
  height: 100vh;
}

.background {
  position: fixed;
  top: -100px;
  left: -100px;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
  z-index: -1;
  background: url('/img/explore_bg.webp') no-repeat center center;
  background-size: cover;
  opacity: 1;
  will-change: transform;
}

.container {
  max-width: 100%;
  padding: 20px;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
  font-weight: bold;
}

/* 全屏搜索遮罩 */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-input-container {
  position: relative;
  width: 80%;
  max-width: 800px;
}

.search-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid white;
  padding: 20px 10px;
  font-size: 32px;
  color: white;
  font-family: 'PPPangaia', sans-serif;
  font-weight: 100;
}

.search-overlay input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-overlay input:focus {
  outline: none;
}

.search-button {
  position: fixed;
  width: 40vh;
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 10;
  bottom: -1vh;
  right: 15vh;
  transform: rotate(88deg);
}

.search-button:hover {
  transform: rotate(85deg) scale(1.1) translateX(-5vh);
}

/* 清除按钮样式 */
.clear-button {
  position: fixed;
  width: 40vh;
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 10;
  bottom: -1vh;
  right: 30vh;
  transform: rotate(80deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.clear-button.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.clear-button:hover {
  transform: rotate(75deg) scale(1.1) translateX(-5vh);
}

.gardens-container {
  position: relative;
  height: 70vh;
  overflow: visible;
}

.gardens-grid {
  display: flex;
  position: absolute;
  height: auto;
  min-height: 60vh;
  transition: transform 0.5s ease;
  padding-top: 10vh;
}

.garden-card {
  width: 20vh;
  height: 60vh;
  flex: 0 0 auto;
  margin-right: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.garden-preview {
  flex: 1;
  position: relative;
  overflow: hidden;
}

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

.garden-info {
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.garden-card:hover .garden-info {
  transform: translateY(0);
}

.garden-name {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
}

.garden-owner {
  color: #7f8c8d;
  margin: 0 0 5px 0;
  font-size: 12px;
  font-weight: 100;
}

.garden-stats {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #95a5a6;
  font-weight: 100;
}

.loading-indicator {
  text-align: center;
  padding: 40px 0;
  color: #7f8c8d;
}

.error-message {
  text-align: center;
  padding: 20px;
  color: #e74c3c;
  background-color: #fadbd8;
  border-radius: 6px;
  margin: 20px 0;
}

.back-button {
  bottom: -1vh;
  right: 0vh;
  transform: rotate(97deg);
  position: fixed;
  width: 40vh;
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.back-button:hover {
  transform: rotate(105deg) scale(1.1) translateX(-5vh);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .search-overlay input {
    font-size: 24px;
  }
  
  .container {
    padding: 15px;
  }
  
  .search-button, .back-button, .clear-button {
    width: 30vh;
  }
  
  .clear-button {
    right: 25vh;
  }
}

@media (max-width: 480px) {
  .search-overlay input {
    font-size: 18px;
  }
  
  .search-button {
    right: 5vh;
    width: 20vh;
  }
  
  .clear-button {
    right: 15vh;
    width: 20vh;
  }
  
  .back-button {
    width: 20vh;
  }
} 