/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
}

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

/* Header */
header {
    background-color: #0a0a0a;
    padding: 1.5rem 0;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #00d9d9;
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.tagline {
    color: #888;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #00d9d9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00ffff;
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: 80vh;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2a2a2a;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 217, 0.2);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.8rem;
}

.card-content.no-image {
    padding: 2.5rem 1.8rem;
}

.card-content h2 {
    margin-bottom: 0.8rem;
}

.card-content h2 a {
    color: #00d9d9;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.card-content h2 a:hover {
    color: #00ffff;
}

.post-meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #0d4d4d;
    color: #00d9d9;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: lowercase;
}

.excerpt {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.read-more {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff8787;
}

/* Footer */
footer {
    background-color: #0f0f0f;
    border-top: 1px solid #1a1a1a;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #00d9d9;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00d9d9;
}

.language-selector {
    color: #888;
    font-size: 0.9rem;
}

.scroll-top {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
}

.scroll-top a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #00d9d9;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-top a:hover {
    background-color: #00ffff;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 1.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
}