/* ============================================
   SkinGuard Blog — Shared Styles
   ============================================ */

/* Reading Typography */
.blog-content {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
    color: #374151;
}

.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1F2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.blog-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content a {
    color: #4ECDC4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: #3BBDB4;
}

.blog-content strong {
    font-weight: 700;
    color: #111827;
}

.blog-content img {
    border-radius: 1rem;
    margin: 1.5rem 0;
}

/* TL;DR Box */
.tldr-box {
    background: linear-gradient(135deg, #F0FDFA 0%, #ECFDF5 100%);
    border-left: 4px solid #4ECDC4;
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.tldr-box h3 {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4ECDC4;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tldr-box p {
    color: #1F2937;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Warning/Alert Boxes */
.alert-forbidden {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFF1F2 100%);
    border-left: 4px solid #EF4444;
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.alert-forbidden .alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #EF4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.alert-caution {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-left: 4px solid #F59E0B;
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.alert-tip {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border-left: 4px solid #10B981;
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

/* Severity Table */
.severity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.severity-table thead {
    background: #F9FAFB;
}

.severity-table th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7280;
    border-bottom: 2px solid #E5E7EB;
}

.severity-table td {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}

.severity-table tbody tr:hover {
    background: #F9FAFB;
}

.severity-table tbody tr:last-child td {
    border-bottom: none;
}

/* Severity Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-forbidden { background: #FEE2E2; color: #991B1B; }
.badge-high { background: #FEE2E2; color: #B91C1C; }
.badge-medium { background: #FEF3C7; color: #92400E; }
.badge-low { background: #D1FAE5; color: #065F46; }
.badge-synergy { background: #DBEAFE; color: #1E40AF; }
.badge-myth { background: #E0E7FF; color: #3730A3; }

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #F3F4F6;
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #9CA3AF;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 0.75rem;
}

.faq-answer p {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Blog Card */
.blog-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background: white;
    border: 1px solid #F3F4F6;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
    border-color: #E5E7EB;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.blog-card-category {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    width: fit-content;
}

.cat-conflicts { background: #FEE2E2; color: #991B1B; }
.cat-beauty { background: #FCE7F3; color: #9D174D; }
.cat-cycle { background: #DBEAFE; color: #1E40AF; }
.cat-knowledge { background: #D1FAE5; color: #065F46; }
.cat-recommendations { background: #F3E8FF; color: #6B21A8; }

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 500;
    padding-top: 0.75rem;
    border-top: 1px solid #F9FAFB;
}

/* Table of Contents sidebar */
.toc-link {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.85rem;
    color: #6B7280;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s;
}

.toc-link:hover,
.toc-link.active {
    color: #4ECDC4;
    border-left-color: #4ECDC4;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-banner h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.cta-banner p {
    color: #9CA3AF;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cta-banner a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4ECDC4;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-banner a:hover {
    background: #3BBDB4;
    transform: translateY(-1px);
}

/* Medical Disclaimer */
.medical-disclaimer {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #6B7280;
    line-height: 1.6;
}

.medical-disclaimer strong {
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-content h2 { font-size: 1.5rem; }
    .blog-content h3 { font-size: 1.2rem; }
    .blog-content p { font-size: 1rem; }
    .severity-table { font-size: 0.85rem; }
    .severity-table th, .severity-table td { padding: 0.625rem 0.75rem; }
    .cta-banner { padding: 1.5rem; }
    .cta-banner h3 { font-size: 1.25rem; }
}
