/* MindSkribe Blog Styles */

:root {
    --main-color: #1B8996;
    --main-dark: #166c77;
    --secondary-color: #e35123;
    --bg-light: #FAFAFA;
    --text-primary: #374151;
    --text-secondary: #6B7280;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.text-main {
    color: var(--main-color);
}

.bg-main {
    background-color: var(--main-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #1B8996 0%, #166c77 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 137, 150, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 137, 150, 0.4);
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 137, 150, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-science {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.category-ai {
    background-color: #E0F2FE;
    color: #0369A1;
}

.category-habits {
    background-color: #D1FAE5;
    color: #065F46;
}

.category-guides {
    background-color: #FEF3C7;
    color: #92400E;
}

.category-thought-leadership {
    background-color: #EDE9FE;
    color: #5B21B6;
}

/* Blog Post Article Styles */
.blog-article {
    max-width: 720px;
    margin: 0 auto;
}

.blog-article p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.blog-article h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1F2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

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

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

.blog-article li {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.blog-article blockquote {
    border-left: 4px solid var(--main-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #F0FDFA;
    border-radius: 0 8px 8px 0;
}

.blog-article blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: #1F2937;
    margin-bottom: 0;
}

.blog-article img {
    border-radius: 12px;
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

.blog-article a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.blog-article a:hover {
    color: var(--main-dark);
}

.blog-article strong {
    font-weight: 600;
    color: #111827;
}

/* Key Takeaway Box */
.key-takeaway {
    background: linear-gradient(135deg, #F0FDFA 0%, #E0F7FA 100%);
    border: 1px solid #B2DFDB;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.key-takeaway h4 {
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Table of Contents */
.toc {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.toc h4 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--main-color);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--main-dark);
    text-decoration: underline;
}

/* Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: #F3F4F6;
}

.share-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.share-btn-twitter:hover {
    background: #1DA1F2;
}

.share-btn-linkedin:hover {
    background: #0077B5;
}

.share-btn-copy:hover {
    background: var(--main-color);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), #2DD4BF);
    z-index: 100;
    transition: width 0.1s linear;
}

/* Related Posts */
.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 137, 150, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F6F6F6;
}

::-webkit-scrollbar-thumb {
    background: #1B8996;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #166c77;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Hero */
.blog-hero-gradient {
    background: radial-gradient(ellipse at 50% 0%, #f0fdfa 0%, var(--bg-light) 70%);
}

/* Pagination */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: white;
    border: 1px solid #E5E7EB;
}

.page-link:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.page-link.active {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}
