/* share-detail.page.scss */
@use '../../../theme/variables.scss';// 引入首页的变量

.content-bg {
  background: linear-gradient(135deg, #bca3a3dd 0%, #ff951cdd 100%);
}

.custom-header {
  --background: rgb(255, 213, 5);
  --border-color: var(--gold);
  
  ion-title {
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(198, 160, 160, 0.5);
    letter-spacing: 2px;
  }
}

.gold-back-button {
  --color: var(--gold);
  --icon-font-size: 24px;
}

.image-container {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 217, 0, 0.3);
  
  .placeholder-image {
    height: 60vh;
    background: linear-gradient(45deg, #e48519 0%, #bea8a8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    
    .placeholder-icon {
      font-size: 60px;
      color: rgba(255, 217, 0, 0.5);
    }
  }
}

.content-section {
  margin-bottom: 25px;
  
  .content-title {
    font-family: "STXingkai", cursive;
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(198, 160, 160, 0.3);
  }
  
  .content-tag {
    background: rgba(255, 217, 0, 0.2);
    color: var(--gold);
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--gold);
  }
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  
  .avatar-container {
    position: relative;
    
    .user-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: #b2adad;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--gold);
      
      ion-icon {
        font-size: 30px;
        color: var(--gold);
      }
    }
  }
  
  .user-meta {
    margin-left: 15px;
    
    .username {
      color: var(--gold);
      margin: 0;
      font-size: 1.2rem;
    }
    
    .post-time {
      color: rgba(255, 217, 0, 0.8);
      margin: 5px 0 0;
      font-size: 0.9rem;
    }
  }
}

.content-text {
  color: var(--gold);
  line-height: 1.6;
  padding: 0 15px;
  
  .training-list {
    list-style-type: none;
    padding: 15px 0;
    
    li {
      padding: 8px 0;
      position: relative;
      padding-left: 25px;
      
      &::before {
        content: "⚔️";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
      }
    }
  }
  
  .tip-text {
    font-style: italic;
    color: rgba(255, 217, 0, 0.8);
    margin-top: 20px;
  }
}

.action-buttons {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 217, 0, 0.3);
  border-bottom: 1px solid rgba(255, 217, 0, 0.3);
  margin: 25px 0;
  
  .action-button {
    margin: 0 15px;
    
    .count {
      color: var(--gold);
      font-size: 0.9rem;
      margin-left: 5px;
    }
  }
  
  .gold-icon {
    color: var(--gold);
    font-size: 24px;
  }
}

.comment-section {
  .comment-title {
    color: var(--gold);
    font-family: "STXingkai", cursive;
    border-left: 3px solid var(--gold);
    padding-left: 15px;
    margin-bottom: 20px;
  }
  
  .comment-item {
    --background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    
    .comment-user {
      color: var(--gold);
      font-size: 1rem;
    }
    
    .comment-text {
      color: rgba(255, 217, 0, 0.9);
      white-space: normal;
    }
  }
  
  .comment-input {
    --background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin-top: 15px;
    
    ion-textarea {
      color: var(--gold);
      --placeholder-color: rgba(255, 217, 0, 0.6);
    }
    
    .send-button {
      --padding-end: 0;
      
      .gold-icon {
        font-size: 28px;
      }
    }
  }
}