* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Poppins", Arial, sans-serif;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(0, 212, 255, 0.45), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 78, 205, 0.38), transparent 30%),
        linear-gradient(135deg, #020617, #111827 55%, #0f172a);
    background-attachment: fixed;
    padding: 40px 8%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Blog Header */
.blog-header {
    padding: 65px 28px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.container {
    max-width: 980px;
    margin: 0 auto;
}

.blog-category {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    color: #06111f;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, #67e8f9, #a7f3d0);
}

.blog-header h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.12;
    margin-bottom: 24px;
}

.blog-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.blog-info span {
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.10);
}

/* Featured Image */
.featured-image {
    margin-top: 32px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.featured-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 18px;
}

/* Table Of Contents */
.table-of-contents {
    max-width: 980px;
    margin: 32px auto 0;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.table-of-contents h2 {
    font-size: 26px;
    margin-bottom: 18px;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: rgba(255, 255, 255, 0.78);
    transition: 0.3s ease;
}

.table-of-contents a:hover {
    color: #67e8f9;
}

/* Blog Content */
.blog-content {
    max-width: 980px;
    margin: 32px auto 0;
    padding: 36px;
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #ffffff;
    line-height: 1.3;
    margin: 26px 0 14px;
}

.blog-content h2 {
    font-size: 30px;
}

.blog-content h3 {
    font-size: 24px;
}

.blog-content p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.blog-content ul,
.blog-content ol {
    padding-left: 24px;
    margin: 18px 0;
}

.blog-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.blog-content a {
    color: #67e8f9;
    font-weight: 600;
}

.blog-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid #67e8f9;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
}

.blog-content img {
    width: 100%;
    margin: 24px 0;
    border-radius: 18px;
}

/* Code Block */
pre {
    max-width: 980px;
    margin: 32px auto 0;
    padding: 24px;
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

code {
    color: #a7f3d0;
    font-size: 15px;
    line-height: 1.8;
    font-family: Consolas, Monaco, monospace;
}

/* Related Posts */
.related-posts {
    margin-top: 36px;
    padding: 34px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.related-posts h2 {
    font-size: 30px;
    margin-bottom: 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.blog-card {
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.blog-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 16px;
    font-size: 18px;
    line-height: 1.4;
}

/* Share Section */
.share-section {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.share-section a {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    transition: 0.3s ease;
}

.share-section a:first-child {
    color: #ffffff;
    background: #1877f2;
}

.share-section a:last-child {
    color: #ffffff;
    background: #1da1f2;
}

.share-section a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    body {
        padding: 22px 5%;
    }

    .blog-header {
        padding: 48px 20px;
    }

    .blog-info {
        flex-direction: column;
        align-items: center;
    }

    .featured-image,
    .table-of-contents,
    .blog-content,
    .related-posts {
        padding: 22px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 18px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-content p {
        font-size: 16px;
    }

    .share-section a {
        width: 100%;
        text-align: center;
    }
}