/* Fu Xing Shui Fa Professional Card Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

#app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.app-header {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.app-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Control Panel */
.control-panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.mountain-selector,
.angle-slider {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.mountain-selector:focus,
.angle-slider:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.angle-slider {
  height: 40px;
  background: linear-gradient(to right, #667eea, #764ba2);
  border-radius: 20px;
}

.angle-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.calculate-button,
.optimize-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.calculate-button {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
}

.optimize-button {
  background: linear-gradient(45deg, #f7931e, #ff6b35);
  color: white;
}

.calculate-button:hover,
.optimize-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  margin-bottom: 30px;
}

/* Luopan Container */
.luopan-container {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

#luopan-canvas {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}

.luopan-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.direction-arrow {
  position: absolute;
  width: 4px;
  height: 200px;
  transform-origin: bottom center;
  pointer-events: none;
}

.dragon-arrow {
  background: linear-gradient(to top, #2e8b57, rgba(46, 139, 87, 0.3));
  box-shadow: 0 0 10px rgba(46, 139, 87, 0.5);
}

.water-arrow {
  background: linear-gradient(to top, #4169e1, rgba(65, 105, 225, 0.3));
  box-shadow: 0 0 10px rgba(65, 105, 225, 0.5);
}

/* Information Panel */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.info-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 5px;
}

.result-item,
.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.result-item:last-child,
.config-item:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #555;
}

#professional-advice {
  line-height: 1.6;
  color: #666;
}

#professional-advice p {
  margin-bottom: 10px;
}

/* Legend */
.legend {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.legend h4 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1rem;
}

.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .info-panel {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    display: grid;
  }
}

@media (max-width: 768px) {
  #app-container {
    padding: 10px;
  }

  .control-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .app-header h1 {
    font-size: 2rem;
  }

  #luopan-canvas {
    width: 400px;
    height: 400px;
  }

  .legend-items {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight {
  background: linear-gradient(45deg, #fff3cd, #ffeaa7);
  border-left: 4px solid #f7931e;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

/* Status Indicators */
.status-excellent {
  color: #28a745;
  font-weight: bold;
}
.status-good {
  color: #17a2b8;
  font-weight: bold;
}
.status-fair {
  color: #ffc107;
  font-weight: bold;
}
.status-poor {
  color: #dc3545;
  font-weight: bold;
}
