:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --accent: #f59e0b;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(30, 41, 59, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* UI Elements */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Header & Index */
header.blog-home-header {
    text-align: center;
    padding: 80px 20px;
}

header.blog-home-header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

header.blog-home-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-glow);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.blog-card .card-img {
    height: 200px;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

.blog-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.blog-card .card-body {
    padding: 25px;
    flex-grow: 1;
}

.blog-card h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s;
}

.blog-card:hover h2 {
    -webkit-text-fill-color: var(--primary);
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .meta {
    padding: 20px 25px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
}

/* Article Page */
.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 40px;
}

.article-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.article-nav a:hover {
    color: var(--primary);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 60px;
}

.category-tag {
    background: var(--primary-glow);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.article-header .article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.main-image {
    width: 100%;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: var(--card-shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-text {
    font-size: 1.15rem;
    color: #cbd5e1;
}

.main-text p {
    margin-bottom: 30px;
}

.main-text h2 {
    color: #fff;
    margin: 60px 0 25px;
    font-size: 1.8rem;
}

.main-text strong {
    color: var(--primary);
}

.article-footer {
    margin-top: 80px;
    padding: 60px;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 32px;
}

.btn-main {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 25px;
    transition: 0.3s;
}

.btn-main:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.lang-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.lang-selector a {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    min-width: 45px;
    text-align: center;
}

.lang-selector a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.lang-selector a.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .container { padding: 20px; }
    .main-image { height: 300px; }
    .article-footer { padding: 30px; }
}

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    text-align: left;
}
.related-articles h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.related-articles ul {
    list-style: none;
}
.related-articles li {
    margin-bottom: 15px;
}
.related-articles li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
    display: block;
}
.related-articles li a:hover {
    color: var(--accent);
    transform: translateX(10px);
}
