/* Grownode CSS Framework - Layout Styles */
/* Grid systems, containers, and layout components */

/* Main Layout System */
.detail-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-main-content {
  flex: 1;
  min-width: 0;
}

.detail-sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* Detail Item Cards */
.detail-item {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  padding: 24px;
  margin-bottom: 24px;
}

/* Detail Grid System */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section.full-width {
  grid-column: 1 / -1;
}

.detail-section h4 {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
  font-size: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* Detail Rows */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 4px 0;
  gap: 16px;
}

.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 120px;
}

.detail-value {
  color: var(--text-primary);
  text-align: right;
  flex: 1;
}

.detail-value a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.detail-value a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* Record Sections (notes, plants, animals, etc.) */
.notes-section,
.plants-section,
.animals-section,
.child-nodes-section,
.child-plants-section,
.harvests-section {
  margin-top: 30px;
}

.notes-section h3,
.plants-section h3,
.animals-section h3,
.child-nodes-section h3,
.child-plants-section h3,
.harvests-section h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* Record Lists */
.notes-list,
.plants-list,
.animals-list,
.child-nodes-list,
.child-plants-list,
.harvests-list {
  display: grid;
  gap: 15px;
}

/* Record Items */
.note-item,
.plant-item,
.animal-item,
.child-node-item,
.child-plant-item,
.harvest-item {
  background: var(--background-light);
  padding: 15px;
  border-radius: 8px;
}

/* Record Headers */
.note-header,
.plant-header,
.animal-header,
.child-node-header,
.child-plant-header,
.harvest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

/* Record Titles */
.note-title a,
.plant-title a,
.animal-title a,
.child-node-title a,
.child-plant-title a,
.harvest-title a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.note-title a:hover,
.plant-title a:hover,
.animal-title a:hover,
.child-node-title a:hover,
.child-plant-title a:hover,
.harvest-title a:hover {
  text-decoration: underline;
}

/* Note Image Indicator */
.note-image-indicator {
  font-size: 14px;
  opacity: 0.7;
  margin-left: 6px;
}

/* Record Meta */
.note-meta,
.plant-meta,
.animal-meta,
.child-node-meta,
.child-plant-meta,
.harvest-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

/* Record Content */
.note-content,
.plant-content,
.animal-content,
.child-node-content,
.child-plant-content,
.harvest-content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

/* Special Content Displays */
.content-display {
  background: var(--background-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 15px;
}

.notes-content {
  background: var(--background-light);
  padding: 12px;
  border-radius: 4px;
  margin-top: 8px;
}

/* Type Icon Containers */
.plant-type-with-icon,
.animal-type-with-icon,
.node-type-with-icon,
.harvest-type-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plant-title-with-icon,
.animal-title-with-icon,
.child-node-type-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .detail-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .detail-sidebar {
    width: 100%;
    order: -1;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .detail-label,
  .detail-value {
    text-align: left;
  }
}