
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #12151C;
    --bg-card: #1E222B;
    --bg-header: #161922;
    --accent: #2F6AFA; 
    --accent-hover: #1e52d3;
    --text-white: #FFFFFF;
    --text-gray: #9BA3AF;
    --border-color: #2A2F3A;
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-main); 
    color: var(--text-gray); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
a:hover { opacity: 0.8; }
h1, h2, h3, h4 { color: var(--text-white); font-weight: 700; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; width: 100%; }

/* --- HEADER --- */
.site-header { background: var(--bg-header); border-bottom: 1px solid var(--border-color); }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; max-width: 1400px; margin: 0 auto; }
.header-left { display: flex; align-items: center; gap: 10px; color: var(--text-white); font-weight: 600; cursor: pointer; }
.header-left svg { width: 24px; height: 24px; fill: currentColor; }
.logo { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 10px; color: var(--text-white); font-weight: 600; }
.header-right svg { width: 20px; height: 20px; fill: currentColor; }

.header-nav { border-top: 1px solid var(--border-color); background: var(--bg-header); }
.nav-links { display: flex; justify-content: center; gap: 40px; padding: 15px 20px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-gray); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-white); }

/* --- TAG CLOUD --- */
.tag-cloud-wrapper { margin: 40px auto 20px; max-width: 1400px; padding: 0 30px; }
.tag-cloud-title { color: var(--text-white); margin-bottom: 20px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.tag-cloud-title::before { content: ''; display: inline-block; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-item { 
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-gray); 
    padding: 8px 18px; border-radius: 30px; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
}
.tag-item:hover { background: var(--accent); color: var(--text-white); border-color: var(--accent); opacity: 1; transform: translateY(-2px); }
.tag-count { background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: var(--text-white); }

/* --- HERO GRID SECTION --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px auto 60px; max-width: 1400px; padding: 0 30px; }
.hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.post-thumb-card { 
    position: relative; border-radius: 8px; overflow: hidden; 
    display: flex; flex-direction: column; justify-content: flex-end; 
    padding: 25px; transition: transform 0.3s ease;
}
.post-thumb-card:hover { transform: scale(1.02); opacity: 1; }

.bg-gradient-1 { background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,21,28,0.95) 100%), linear-gradient(135deg, #2b4162 0%, #12100e 100%); }
.bg-gradient-2 { background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,21,28,0.95) 100%), linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.bg-gradient-3 { background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(18,21,28,0.95) 100%), linear-gradient(135deg, #141e30 0%, #243b55 100%); }

.hero-left .post-thumb-card { height: 100%; min-height: 450px; }
.hero-right .post-thumb-card { height: 215px; padding: 15px; }

.cat-badge { 
    background: var(--accent); color: var(--text-white); 
    padding: 4px 10px; font-size: 0.7rem; font-weight: 700; 
    text-transform: uppercase; border-radius: 4px; display: inline-block; 
    margin-bottom: 15px; width: fit-content; letter-spacing: 0.5px;
}
.hero-right .cat-badge { margin-bottom: 10px; font-size: 0.65rem; }

.post-thumb-title { color: var(--text-white); font-size: 1.1rem; line-height: 1.4; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-left .post-thumb-title { font-size: 2rem; line-height: 1.3; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-left .post-thumb-card { min-height: 350px; }
}
@media (max-width: 600px) {
    .hero-right { grid-template-columns: 1fr; }
}

/* --- BOTTOM POST GRID --- */
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 30px; }
.section-header h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-white); display: flex; align-items: center; gap: 10px; }
.section-header h3::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--accent); border-radius: 2px; }

.bottom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 60px; }
.bottom-grid .post-thumb-card { height: 250px; }

/* --- POST ARTICLE --- */
.post-container { max-width: 850px; margin: 40px auto 80px; background: var(--bg-card); padding: 50px; border-radius: 12px; border: 1px solid var(--border-color); }
@media(max-width: 768px) { .post-container { padding: 30px 20px; } }
.post-header { margin-bottom: 40px; }
.post-h1 { font-size: 2.5rem; line-height: 1.25; margin-bottom: 25px; color: var(--text-white); }
.post-meta-info { display: flex; align-items: center; gap: 15px; color: var(--text-gray); font-size: 0.95rem; border-top: 1px solid var(--border-color); padding-top: 20px; }
.post-meta-info img { width: 45px; height: 45px; border-radius: 50%; }
.post-meta-text strong { color: var(--text-white); display: block; font-size: 1rem; }

/* POST CONTENT */
.post-content { font-size: 1.15rem; line-height: 1.8; color: #D1D5DB; }
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 1.8rem; margin: 50px 0 20px; color: var(--text-white); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.post-content h3 { font-size: 1.4rem; margin: 30px 0 15px; color: var(--text-white); }
.post-content ul, .post-content ol { margin: 0 0 25px 20px; padding-left: 20px; }
.post-content li { margin-bottom: 10px; }
.post-content blockquote { font-style: italic; font-size: 1.2rem; border-left: 4px solid var(--accent); padding: 20px; margin: 30px 0; background: rgba(47, 106, 250, 0.05); color: var(--text-white); border-radius: 0 8px 8px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 30px 0; border: 1px solid var(--border-color); }
.post-content th, .post-content td { padding: 15px; border: 1px solid var(--border-color); text-align: left; }
.post-content th { background: var(--bg-header); font-weight: 600; color: var(--text-white); }
.post-content a { color: var(--accent); font-weight: 600; text-decoration: none; }
.post-content a:hover { text-decoration: underline; opacity: 1; }

/* FAQ BLOCK */
.faq-block { background: var(--bg-header); padding: 30px; margin: 30px 0; border-radius: 12px; border: 1px solid var(--border-color); }
.faq-question { font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; color: var(--text-white); }
.faq-answer { font-size: 1.05rem; color: var(--text-gray); }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0 60px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1rem; color: var(--text-gray); background: var(--bg-card); transition: 0.2s; }
.page-link:hover, .page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }

/* --- FOOTER --- */
.site-footer { background: var(--bg-header); border-top: 1px solid var(--border-color); padding: 60px 0 20px; margin-top: auto; }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width: 768px) { .footer-container { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-bottom: 15px; display: inline-block; }
.footer-text { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.footer-title { color: var(--text-white); font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-gray); transition: color 0.2s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text-white); opacity: 1; }
.contact-info { list-style: none; color: var(--text-gray); font-size: 0.95rem; }
.contact-info li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: #555; }
