// record-detail.page.scss
@use '/src/app/tab2/tab2.page.scss' as tab2;

:host {
  background: 
      linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(30, 30, 30, 0.95) 100%),
      url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEiLz4KICA8cGF0aCBkPSJNMjAgMjBMODAgODBNODAgMjBMMjAgODAiIHN0cm9rZT0iI2ZmZCIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPg==');
}

.main-content {
  padding: 15px;
  background: transparent;
}

.header-title {
  font-family: "STXingkai", "华文行楷", cursive;
  color: var(--gold);
  text-align: center;
  letter-spacing: 2px;
}

.detail-card {
  background: rgba(197, 177, 177, 0.5);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.record-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  
  .record-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f79422 0%, #debbbb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    border: 2px solid var(--gold);
    font-size: 1.8rem;
  }
  
  .header-text {
    flex: 1;
    
    .record-title {
      font-size: 1.4rem;
      color: var(--gold);
      margin-bottom: 5px;
      font-weight: bold;
    }
    
    .record-meta {
      display: flex;
      gap: 10px;
      
      span {
        font-size: 0.9rem;
        color: rgba(255, 215, 0, 0.8);
      }
    }
  }
}

.record-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  
  .stat-item {
    flex: 1;
    
    .stat-value {
      font-size: 1.5rem;
      color: var(--gold);
      margin-bottom: 5px;
    }
    
    .stat-label {
      font-size: 0.85rem;
      color: rgba(255, 215, 0, 0.7);
    }
  }
}

.detail-section {
  background: rgba(197, 177, 177, 0.3);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  
  .section-title {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  
  .detail-item {
    display: flex;
    align-items: center;
    
    .detail-icon {
      font-size: 1.5rem;
      color: var(--gold);
      margin-right: 10px;
    }
    
    .detail-label {
      font-size: 0.8rem;
      color: rgba(255, 215, 0, 0.7);
    }
    
    .detail-value {
      font-size: 1rem;
      color: var(--gold);
    }
  }
}

.map-placeholder {
  height: 180px;
  background: rgba(197, 177, 177, 0.3);
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  
  .map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    
    .map-icon {
      font-size: 3rem;
      margin-bottom: 10px;
    }
  }
}

.notes-section {
  background: rgba(197, 177, 177, 0.3);
  border-radius: 16px;
  padding: 15px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  
  .notes-content {
    color: rgba(255, 215, 0, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  .notes-footer {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-size: 0.9rem;
    
    .edit-icon {
      margin-right: 5px;
    }
  }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
  .detail-card,
  .detail-section,
  .map-placeholder,
  .notes-section {
    background: rgba(50, 50, 50, 0.5);
  }
}