/* Blog Article Common Styles */

/* Table of Contents */
.toc {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border, #2e2e4a);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.toc h3 {
    margin: 0 0 12px !important;
    font-size: 1rem;
    color: var(--muted, #888);
    border: none !important;
    padding: 0 !important;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--accent, #007aff);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border, #2e2e4a);
    border-radius: 12px;
    padding: 20px;
    margin: 32px 0;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text, #fff);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted, #888);
    line-height: 1.6;
}

/* KizunaLabs Insight Box */
.kizuna-insight {
    background: linear-gradient(135deg, rgba(238, 43, 91, 0.1) 0%, rgba(43, 238, 206, 0.1) 100%);
    border-left: 4px solid #ee2b5b;
    border-radius: 0 12px 12px 0;
    padding: 20px;
    margin: 24px 0;
}

.kizuna-insight h3 {
    margin: 0 0 12px !important;
    font-size: 1.1rem;
    color: #ee2b5b;
    border: none !important;
    padding: 0 !important;
}

.kizuna-insight p {
    margin: 0;
    line-height: 1.8;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border, #2e2e4a);
}

.share-buttons span {
    font-size: 0.9rem;
    color: var(--muted, #888);
    margin-right: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn.line {
    background: #00c300;
    color: #fff;
}

/* Last Updated */
.last-updated {
    font-size: 0.85rem;
    color: var(--muted, #888);
    margin-top: 4px;
}

/* Reading Time */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--muted, #888);
}

/* Interactive Elements */
.audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent, #007aff);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.audio-btn:hover {
    background: #ee2b5b;
}

/* Quiz Section for Blog */
.blog-quiz {
    background: var(--card-bg, #1a1a2e);
    border: 2px solid var(--accent, #007aff);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    text-align: center;
}

.blog-quiz h3 {
    margin: 0 0 16px !important;
    border: none !important;
    padding: 0 !important;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.quiz-option {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border, #2e2e4a);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--accent, #007aff);
    background: rgba(0, 122, 255, 0.1);
}

.quiz-option.correct {
    border-color: #34c759;
    background: rgba(52, 199, 89, 0.1);
}

.quiz-option.wrong {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
}
