/* Blog Post Styles */

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, #0A192F, #112240, #1a365d, #0d2847);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #8892B0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0,102,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,212,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0,102,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(0,212,255,0.1) 0%, transparent 50%);
    animation: particlesFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particlesFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

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

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: #FFF;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    transition: 0.3s;
}

.logo a:hover {
    color: #0066FF;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #8892B0;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0066FF, #00D4FF);
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #0066FF;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post {
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.post-header {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 58, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 60px 0 40px;
    position: relative;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: #3498db;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #5dade2;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.post-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #3498db;
}

.author-name {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.post-date {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.post-stats {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-stats i {
    color: #3498db;
}

.post-featured-image {
    max-width: 1200px;
    margin: -50px auto 60px;
    padding: 0 20px;
}

.post-featured-gradient {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-featured-gradient.code-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.post-featured-gradient.marketing-bg {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.post-featured-gradient.game-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.post-featured-gradient.community-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.post-featured-gradient i {
    font-size: 180px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.post-featured-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.post-content {
    padding: 60px 0 100px;
    background: #0a0e27;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.8;
}

.lead {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(52, 152, 219, 0.05);
    border-left: 4px solid #3498db;
    border-radius: 8px;
}

.main-content h2 {
    font-size: 32px;
    color: white;
    font-weight: 700;
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
}

.main-content h3 {
    font-size: 24px;
    color: #5dade2;
    font-weight: 600;
    margin: 35px 0 20px;
}

.main-content h4 {
    font-size: 20px;
    color: #3498db;
    font-weight: 600;
    margin: 25px 0 15px;
}

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

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

.main-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.main-content strong {
    color: white;
    font-weight: 600;
}

.main-content em {
    color: #5dade2;
}

.main-content a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s;
}

.main-content a:hover {
    color: #5dade2;
}

.main-content pre {
    background: #1a1f3a;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 25px 0;
}

.main-content code {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #5dade2;
    line-height: 1.6;
}

.info-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

.info-box i {
    color: #ffc107;
    font-size: 24px;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border-left: 4px solid #3498db;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.highlight-box p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-box strong {
    color: #5dade2;
    font-weight: 600;
}

.code-block {
    background: rgba(26, 47, 82, 0.6);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
}

.code-block p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.85);
}

.code-block strong {
    color: #5dade2;
    font-weight: 600;
}

.code-block ul {
    margin: 15px 0;
    padding-left: 25px;
}

.code-block ul li {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.comparison-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.comparison-table h4 {
    color: white;
    font-size: 22px;
    margin-bottom: 15px;
}

.comparison-table ul {
    margin-top: 10px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.tip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.tip-card:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-5px);
}

.tip-card i {
    font-size: 32px;
    color: #3498db;
    margin-bottom: 15px;
}

.tip-card h4 {
    color: white;
    margin: 10px 0;
}

.tip-card p {
    font-size: 15px;
    margin: 0;
}

.signature {
    font-style: italic;
    color: #5dade2;
    font-size: 18px;
    margin-top: 40px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 50px 0 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-share {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.post-share h4 {
    color: white;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.share-btn.facebook {
    background: #1877f2;
}

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

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

.share-btn.copy {
    background: #6c757d;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.author-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.author-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #3498db;
    margin: 0 auto 20px;
}

.author-card h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
}

.author-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.author-card .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.author-card .social-links a {
    width: 38px;
    height: 38px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    transition: all 0.3s;
}

.author-card .social-links a:hover {
    background: #3498db;
    color: white;
}

.related-posts {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.related-posts h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.related-post {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.related-post:hover {
    background: rgba(52, 152, 219, 0.05);
}

.related-post img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    flex-shrink: 0;
}

.related-gradient {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-gradient.code-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.related-gradient.community-bg {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.related-gradient.database-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.related-gradient i {
    font-size: 32px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.related-post img i {
    font-size: 32px;
    color: white;
}

.related-post h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 32px;
    }

    .main-content {
        font-size: 16px;
    }

    .main-content h2 {
        font-size: 26px;
    }

    .main-content h3 {
        font-size: 20px;
    }

    .post-featured-image {
        margin-top: -30px;
    }
}
