/**
 * 蔬食心得詳細頁面樣式
 */

/* 文章英雄區塊 */
.story-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.story-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

/* 文章容器 */
.story-article .container {
    max-width: 800px;
    padding: 40px 20px;
}

/* 返回連結 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #27ae60;
}

/* 文章標題區 */
.story-header {
    margin-bottom: 32px;
}

.story-header .story-mood {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.story-header .story-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 24px;
}

/* 文章元資訊 */
.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #bdc3c7;
    font-size: 20px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.publish-date {
    font-size: 14px;
    color: #95a5a6;
}

.story-stats {
    font-size: 14px;
    color: #95a5a6;
}

.story-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 作者操作按鈕 */
.owner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.private-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffeaa7;
    color: #d68910;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 身心改善區塊 */
.health-benefits {
    background: #f8fff8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.health-benefits h3 {
    font-size: 16px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.benefits-list .benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 14px;
}

.benefits-list .benefit-tag i {
    color: #27ae60;
}

/* 文章內容 */
.story-body {
    font-size: 17px;
    line-height: 1.9;
    color: #34495e;
    margin-bottom: 40px;
}

.story-body p {
    margin-bottom: 1.5em;
}

/* 分享區塊 */
.share-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.share-label {
    font-size: 14px;
    color: #7f8c8d;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-facebook {
    background: #1877f2;
}

.share-line {
    background: #00b900;
}

.share-copy {
    background: #7f8c8d;
}

/* 相關心得 */
.related-stories {
    margin-top: 40px;
}

.related-stories h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.related-cover {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f5f5f5;
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.related-cover-placeholder i {
    font-size: 32px;
    color: rgba(255,255,255,0.8);
}

.related-info {
    padding: 16px;
}

.related-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 12px;
    color: #95a5a6;
}

/* 響應式 */
@media (max-width: 768px) {
    .story-hero {
        height: 250px;
    }
    
    .story-header .story-title {
        font-size: 24px;
    }
    
    .story-body {
        font-size: 16px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}
