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

:root {
    --bg-main: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --grid-color: rgba(255, 255, 255, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-main);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.navbar {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 20px;
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: 50px;
    margin: 20px;
}

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

.logo {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s;
}

.btn-home, .btn-blog {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-home:hover, .btn-blog:hover {
    background: var(--text-primary);
    color: var(--bg-main);
}

.article-header {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.article-title {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.featured-image-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.article-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 60px 80px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-body h1, .article-body h2, .article-body h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.article-body h1 { font-size: 2.5em; }
.article-body h2 { font-size: 2em; }
.article-body h3 { font-size: 1.6em; }

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
}

.article-body blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.03);
    font-style: italic;
    color: var(--text-secondary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.article-body a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.article-body a:hover {
    opacity: 0.7;
}

.article-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.article-body pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-body table th,
.article-body table td {
    border: 1px solid var(--border);
    padding: 0.8rem;
    text-align: left;
}

.article-body table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.article-tags strong {
    margin-right: 8px;
}

.tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--text-primary);
    color: var(--bg-main);
}

.related-articles {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.related-articles h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 24px;
}

.related-content h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.related-content p {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .article-content {
        padding: 40px 50px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.5em;
    }
    .article-content {
        padding: 30px 24px;
    }
    .article-header, .featured-image-container, .article-container, .related-articles {
        padding: 0 20px;
    }
    .featured-image {
        height: 300px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        border-radius: 20px;
    }
}