/* Blog Styles for Kyle's Design Workshop */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #ff6b6b;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Navigation */
.blog-navbar {
    background: rgba(26, 32, 44, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.blog-navbar .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.blog-navbar .nav-logo i {
    color: var(--primary);
    font-size: 1.3rem;
}

.blog-navbar .nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.blog-navbar .nav-link {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.blog-navbar .nav-link:hover,
.blog-navbar .nav-link.active {
    color: var(--primary);
}

.blog-navbar .nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.blog-navbar .nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    padding: 140px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #cbd5e0;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image .card-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
}

.blog-card-image .card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: 25px;
}

.blog-card-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-dark);
}

.blog-card-body h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-body h2 a:hover {
    color: var(--primary);
}

.blog-card-body p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.blog-card-meta .read-time {
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 10px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: gap 0.3s;
}

.read-more-link:hover {
    gap: 10px;
}

/* Article Page Styles */
.article-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    padding: 140px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
}

.article-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #a0aec0;
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article Content */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-light);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-dark);
}

.article-content strong {
    color: var(--text-dark);
}

.key-takeaway {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
}

.key-takeaway h3 {
    color: var(--primary-dark);
    margin-top: 0;
    font-size: 1.1rem;
}

/* CTA Box in Articles */
.article-cta {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.article-cta p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    opacity: 0.95;
    color: white;
}

.article-cta .cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.article-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Related Articles */
.related-articles {
    background: var(--bg-light);
    padding: 60px 20px;
}

.related-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.related-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Blog Footer */
.blog-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 40px 20px;
    text-align: center;
}

.blog-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.blog-footer .footer-logo i {
    color: var(--primary);
}

.blog-footer .footer-links {
    margin: 20px 0;
}

.blog-footer .footer-links a {
    color: #a0aec0;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.blog-footer .footer-links a:hover {
    color: var(--primary);
}

.blog-footer .nview-link {
    color: var(--primary);
    text-decoration: none;
}

.blog-footer .nview-link:hover {
    text-decoration: underline;
}

.blog-footer .footer-bottom {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-navbar .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a202c;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .blog-navbar .nav-menu.active {
        display: flex;
    }

    .blog-navbar .nav-toggle {
        display: flex;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-cta {
        padding: 25px 20px;
    }
}
