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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);  */
    background-color: #1a1a1a;
    color: #e6edf3;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    /* background: rgba(22, 27, 34, 0.8); */
    background-color: #1a1a1a;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #30363d;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #8b949e;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.2);
    transform: translateY(-1px);
}

.nav-item.primary {
    background: linear-gradient(135deg, #00aa44 0%, #00cc55 100%);
    color: white;
    font-weight: 600;
}

.nav-item.primary:hover {
    background: linear-gradient(135deg, #00cc55 0%, #00ee66 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 170, 68, 0.3);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #30363d;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #00ffcc;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.page-subtitle {
    color: #8b949e;
    font-size: 1.2rem;
    font-weight: 400;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffcc;
}

.stat-label {
    font-size: 0.85rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88 0%, #00aa44 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: #58a6ff;
}

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

.blog-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-title-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title-text {
    color: #00ffcc;
}

.blog-excerpt {
    color: #8b949e;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-date {
    color: #58a6ff;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(88, 166, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: rgba(121, 192, 255, 0.1);
    color: #79c0ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(121, 192, 255, 0.2);
}

.read-more {
    color: #00ffcc;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.5rem;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #30363d;
    border-top: 3px solid #00ffcc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: #f85149;
    background: rgba(248, 81, 73, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.error-state h2 {
    color: #f85149;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #8b949e;
}

.empty-state h2 {
    color: #58a6ff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.search-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.1);
}

.search-input::placeholder {
    color: #6e7681;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .nav-item {
        justify-content: center;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .blog-stats {
        gap: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .blog-card {
        padding: 1.5rem;
    }
}