/* tab1.page.scss */

/* 自定义头部样式 */
.custom-header {
    --background: #ffffff;
    --color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
  }
  
  .logo span {
    margin-left: 0.5rem;
  }
  
  .nav-btn {
    margin-left: 0.5rem;
    color: #333;
  }
  
  /* 搜索栏样式 */
  .search-card {
    margin: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .search-row {
    align-items: center;
  }
  
  .search-input {
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.5rem;
  }
  
  .search-btn {
    --background: #2dd55b;;
    --color: white;
  }
  
  /* 分类网格样式 */
  .category-grid {
    margin: 1rem;
  }
  
  .category-card {
    margin-bottom: 1rem;
  }
  
  .card-hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
  }
  
  .card-hover:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .category-icon {
    font-size: 2rem;
    color: #2dd55b;;
    margin-bottom: 0.5rem;
  }
  
  .category-title {
    font-size: 1rem;
    font-weight: bold;
  }
  
  /* 推荐食谱样式 */
  .recommend-card {
    margin: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .section-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .recipe-card {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .recipe-card-hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
  }
  
  .recipe-card-hover:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .recipe-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
  }
  
  .recipe-meta {
    font-size: 0.8rem;
    color: #666;
  }
  
  /* 用户信息样式 */
  .user-info-card {
    margin: 1rem;
    border-radius: 0.5rem;
    background-color: #2dd55b;;
    color: white;
  }
  
  .greeting {
    font-size: 1rem;
  }
  
  .username {
    font-weight: bold;
  }
  
  .user-avatar {
    width: 3rem;
    height: 3rem;
    background-color: white;
    color: #2dd55b;;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
  }
/* tab1.page.scss */
/* 全局样式 */
ion-content {
  --background: #f8f9fa;
}

/* 头部样式 */
.header-toolbar {
  --background: #2dd55b;
  --color: white;
}

.header-title {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.logo-icon {
  font-size: 1.5rem;
  margin-right: 8px;
}

.logo-text {
  font-family: 'Arial Rounded MT Bold', sans-serif;
}

/* 搜索栏样式 */
.search-container {
  padding: 16px;
}

.search-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-item {
  --padding-start: 12px;
  --inner-padding-end: 8px;
}

.search-input {
  --placeholder-color: #adb5bd;
  --color: #495057;
  font-size: 0.9rem;
}

.search-button {
  --color: #2dd55b;;
}

/* 分类部分样式 */
.section-container {
  padding: 0 16px 16px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #343a40;
  margin-bottom: 16px;
  padding-left: 8px;
  border-left: 4px solid #2dd55b;
}

.category-grid {
  padding: 0;
}

.category-card {
  margin: 0;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  &:active {
    transform: scale(0.98);
  }
}

.category-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
}

.category-icon-container {
  width: 48px;
  height: 48px;
  background: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.category-icon {
  font-size: 1.5rem;
  color: #ff6b6b;
}

.category-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  margin: 0;
  text-align: center;
}

/* 推荐食谱样式 */
.recipe-grid {
  padding: 0;
}

.recipe-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  
  &:active {
    transform: scale(0.98);
  }
}

.recipe-image-container {
  position: relative;
  height: 160px;
  overflow: hidden;
}

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

.recipe-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.recipe-time {
  --background: rgba(0, 0, 0, 0.7);
  --color: white;
  font-weight: 500;
  
  ion-icon {
    margin-right: 4px;
  }
}

.recipe-title {
  font-size: 1rem;
  font-weight: 600;
  color: #343a40;
}

.recipe-content {
  padding-top: 0;
}

.recipe-rating {
  display: flex;
  align-items: center;
}

.rating-icon {
  color: #ffc107;
  margin-right: 4px;
}

.rating-value {
  font-size: 0.9rem;
  color: #6c757d;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .section-container {
    padding: 0 24px 24px;
  }
  
  .recipe-image-container {
    height: 200px;
  }
}
  