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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 200, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 200, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 30px 0;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

header h1 a {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #64c8ff, #9d7aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 40px;
}

header nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

header nav a:hover {
    color: #64c8ff;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64c8ff;
    transition: width 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 100px;
    position: relative;
}

.hero h2 {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #fff;
}

.hero h2 .highlight {
    background: linear-gradient(135deg, #64c8ff 0%, #9d7aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* Featured Articles Section */
.featured-posts {
    margin: 100px 0;
}

.featured-posts > h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #64c8ff;
    margin-bottom: 40px;
    font-weight: 600;
}

.section-note {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 40px;
    font-style: italic;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.post-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(100, 200, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.05), rgba(157, 122, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 200, 255, 0.3);
    box-shadow: 0 20px 40px rgba(100, 200, 255, 0.1);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card-content {
    position: relative;
    z-index: 1;
}

.post-card h2,
.post-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}

.post-card h2 a,
.post-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: #64c8ff;
}

.post-card .excerpt {
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #707070;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-date {
    color: #707070;
    font-size: 13px;
}

.view-count {
    color: #707070;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: #64c8ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Page Header */
.page-header {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
}

.page-header h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -1px;
}

.page-header p {
    color: #a0a0a0;
    font-size: 18px;
}

/* Single Article */
.single-article {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(100, 200, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.single-article h1 {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -1px;
}

.article-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-meta .date {
    color: #707070;
    font-size: 14px;
    font-weight: 500;
}

.article-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
}

.article-content a {
    color: #64c8ff;
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

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

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

.article-footer {
    padding-top: 30px;
    border-top: 1px solid rgba(100, 200, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #64c8ff, #9d7aff);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 200, 255, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
    padding: 40px 0;
}

.page-info {
    color: #a0a0a0;
    font-weight: 500;
    font-size: 15px;
}

/* Error Message */
.error-message,
.no-posts {
    text-align: center;
    padding: 60px 40px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(100, 200, 255, 0.1);
    border-radius: 12px;
}

.error-message h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.error-message p {
    color: #a0a0a0;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Footer */
footer {
    margin-top: 120px;
    padding: 40px 0;
    border-top: 1px solid rgba(100, 200, 255, 0.2);
    text-align: center;
    color: #707070;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    header nav {
        gap: 20px;
    }

    .hero {
        padding: 40px 0 60px;
    }

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

    .single-article {
        padding: 30px 20px;
    }

    .container {
        padding: 0 16px;
    }
}
