/* ========================================
   BLOG - GALAGOWORK
   ======================================== */

:root {
    --primary: #6C2BD9;
    --primary-dark: #5521B5;
    --primary-light: #8B5CF6;
    --primary-50: #F5F3FF;
    --accent: #10B981;
    --orange: #F59E0B;
    --dark: #0F172A;
    --text: #334155;
    --text-light: #64748B;
    --text-lighter: #94A3B8;
    --border: #E2E8F0;
    --bg: #FFFFFF;
    --bg-gray: #F8FAFC;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* --- HEADER --- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); padding: 12px 0; transition: background 0.3s ease, box-shadow 0.3s ease; }
.header--scrolled { background: rgba(15, 23, 42, 1); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header__container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.header__logo svg { height: 36px; }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; }
.header__nav a:hover, .header__nav a.active { color: var(--primary-light); }
.header__cta { background: var(--primary); color: #fff !important; padding: 10px 24px; border-radius: 50px; font-weight: 700 !important; transition: background 0.3s ease, transform 0.2s ease; }
.header__cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: var(--transition); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- HAMBURGER --- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 1001; }
.hamburger span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- BLOG LISTING --- */
.blog-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); padding: 140px 20px 80px; text-align: center; }
.blog-hero h1 { font-size: 2.6rem; font-weight: 800; color: #fff; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.2; }
.blog-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; }

.blog-grid { max-width: 1000px; margin: 0 auto; padding: 48px 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.blog-card { background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); display: block; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.blog-card__img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-gray); }
.blog-card__body { padding: 24px; }
.blog-card__category { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 8px; }
.blog-card__title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.blog-card__excerpt { font-size: 14px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.blog-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-lighter); }
.blog-card__read { color: var(--primary); font-weight: 600; font-size: 14px; }
.blog-card__read:hover { color: var(--primary-dark); }

/* --- ARTICLE PAGE --- */
.article { max-width: 780px; margin: 0 auto; padding: 120px 24px 80px; }
.article__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 32px; }
.article__back:hover { color: var(--primary-dark); }
.article__category { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 12px; }
.article__title { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.3; }
.article__meta { font-size: 14px; color: var(--text-lighter); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article__content h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 36px 0 16px; }
.article__content h3 { font-size: 1.2rem; font-weight: 600; color: var(--primary-dark); margin: 28px 0 12px; }
.article__content p { margin-bottom: 18px; color: var(--text); }
.article__content ul, .article__content ol { padding-left: 24px; margin-bottom: 18px; }
.article__content li { margin-bottom: 8px; color: var(--text); list-style: disc; }
.article__content ol li { list-style: decimal; }
.article__content strong { color: var(--dark); }
.article__content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--primary-50); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-light); }
.article__content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article__content th, .article__content td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: 15px; }
.article__content th { background: var(--primary); color: #fff; font-weight: 600; }
.article__content tr:nth-child(even) { background: var(--bg-gray); }

/* --- CTA BOX --- */
.cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius); padding: 40px 32px; text-align: center; margin: 48px 0; }
.cta-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 15px; }

/* --- RELATED ARTICLES --- */
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { margin-bottom: 12px; }
.related-articles a { color: var(--primary); font-weight: 500; font-size: 15px; transition: var(--transition); }
.related-articles a:hover { color: var(--primary-dark); }
.related-articles a::before { content: '\2192 '; color: var(--primary-light); }

/* --- FOOTER --- */
.footer { background: var(--dark); padding: 48px 20px 24px; color: #fff; text-align: center; }
.footer__logo { height: 36px; margin: 0 auto 16px; }
.footer__links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer__links a { color: rgba(255,255,255,0.8); font-size: 0.9rem; transition: color 0.3s ease; }
.footer__links a:hover { color: var(--primary-light); }
.footer__copy { font-size: 0.8rem; opacity: 0.6; margin: 0; }

/* --- PAGINATION --- */
.blog-pagination { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px 0; max-width: 1200px; margin: 0 auto; }
.blog-pagination__count { font-size: 15px; color: var(--text-lighter); }
.blog-pagination__btn { display: inline-block; background: var(--primary); color: #fff; border: none; border-radius: 30px; padding: 14px 40px; font-weight: 600; font-size: 16px; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.blog-pagination__btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.blog-pagination__btn--hidden { display: none; }
.blog-card-hidden { display: none !important; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .blog-grid { padding: 32px 24px; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .header__nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--dark); flex-direction: column; justify-content: center; gap: 24px; transition: right 0.3s ease; box-shadow: -4px 0 20px rgba(0,0,0,0.3); }
    .header__nav.active { right: 0; }
    .header__nav a { font-size: 1.1rem; }
    .blog-hero { padding: 120px 20px 60px; }
    .blog-hero h1 { font-size: 1.8rem; }
    .blog-hero p { font-size: 1rem; }
    .blog-grid { grid-template-columns: 1fr; padding: 32px 16px; }
    .article { padding: 100px 16px 60px; }
    .article__title { font-size: 1.6rem; }
    .footer__links { flex-direction: column; align-items: center; gap: 12px; }
}
