/* ===== Blog Styles - deeptools.io ===== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --bg: #0a0a1a;
    --bg-card: #14142a;
    --bg-card-hover: #1c1c3a;
    --text: #e0e0f0;
    --text-muted: #8888aa;
    --border: #2a2a4a;
    --gradient: linear-gradient(135deg, #6c5ce7, #00cec9);
    --shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.blog-header {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.blog-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-nav {
    display: flex;
    gap: 25px;
}

.blog-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-nav a:hover,
.blog-nav a.active {
    color: var(--text);
}

.blog-nav a.active {
    color: var(--secondary);
}

/* ===== Hero Section ===== */
.blog-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, transparent 100%);
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== Posts Grid ===== */
.blog-posts {
    padding: 40px 0 80px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.post-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text);
}

.post-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.post-read-more:hover {
    gap: 10px;
}

/* ===== Post Page Styles ===== */
.post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.post-article .post-header {
    margin-bottom: 40px;
}

.post-article .post-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 15px 0;
    color: var(--text);
}

.post-article .post-header .post-meta {
    border: none;
    padding: 0;
}

.post-article .post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 35px 0 15px;
    color: var(--text);
}

.post-article .post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 25px 0 12px;
    color: var(--text);
}

.post-article .post-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-article .post-content ul,
.post-article .post-content ol {
    margin: 15px 0 20px 25px;
    color: var(--text-muted);
}

.post-article .post-content li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-article .post-content strong {
    color: var(--text);
}

.post-article .post-content a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.post-article .post-content a:hover {
    border-bottom-color: var(--secondary);
}

/* ===== FAQ Section ===== */
.faq-section {
    margin: 40px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
}

.faq-section h2 {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.faq-question::before {
    content: '❓';
    font-size: 1rem;
}

.faq-answer {
    color: var(--text-muted);
    padding-left: 28px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.cta-section h2 {
    margin-top: 0 !important;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

/* ===== Back Button ===== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-button:hover {
    color: var(--secondary);
}

/* ===== Footer ===== */
.blog-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-article .post-header h1 {
        font-size: 1.6rem;
    }
    
    .blog-nav {
        gap: 15px;
    }
    
    .blog-nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-hero {
        padding: 40px 0 30px;
    }
    
    .blog-hero h1 {
        font-size: 1.6rem;
    }
    
    .post-card {
        padding: 20px;
    }
}
