
@import url('./w3-tokens.css');

/* ============================================================
   BUTTONS
   ============================================================ */
.w3-btn-primary {
    background: var(--brand); color: #fff;
    font-family: var(--font-body); font-weight: 700; font-size: 14px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    border: none; cursor: pointer; display: inline-block;
    transition: background 0.2s;
}
.w3-btn-primary:hover { background: #E66700; color: #fff; }

.w3-btn-outline {
    border: 1.5px solid var(--brand); color: var(--brand);
    font-weight: 700; padding: 10px 22px;
    border-radius: var(--radius-sm); background: transparent;
    display: inline-block; transition: all 0.2s; cursor: pointer;
    font-family: var(--font-body); font-size: 14px;
}
.w3-btn-outline:hover { background: var(--brand); color: #fff; }

/* ============================================================
   PILL
   ============================================================ */
.w3-pill {
    display: inline-block;
    background: var(--brand-light); color: var(--brand);
    font-family: var(--font-body); font-weight: 600;
    font-size: 11px; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: var(--radius-sm);
}

/* ============================================================
   CARDS
   ============================================================ */
.w3-card {
    background: #fff; border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden; display: block;
}
.w3-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.w3-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.w3-card-img img { width: 100%; height: 100%; object-fit: cover; }
.w3-card-body { padding: 16px; }
.w3-card-title {
    font-family: var(--font-heading); font-weight: 500;
    font-size: 16px; line-height: 1.4; margin: 10px 0 6px;
    color: var(--text);
}
.w3-card-date { font-size: 12px; color: var(--text-subtle); }

/* ============================================================
   PAGINATION
   ============================================================ */
.w3-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.w3-pagination a,
.w3-pagination span {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    color: var(--text-muted); border: 1px solid var(--border);
    transition: all 0.2s;
}
.w3-pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.w3-pagination a:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   LAYOUT
   ============================================================ */
.w3-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 80px; }
.w3-wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.w3-section { padding: 80px 0; }
.w3-section-title {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 28px; margin-bottom: 32px; color: var(--text);
}
.w3-surface { background: var(--surface); }

/* ============================================================
   HEADER
   ============================================================ */
.w3-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff; border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.w3-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.w3-header-inner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 24px;
    height: 72px;
}
.w3-logo img { height: 36px; width: auto; }
.w3-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--text); }
.w3-nav { display: flex; align-items: center; gap: 32px; }
.w3-nav-list { display: flex; list-style: none; gap: 32px; }
.w3-nav-list a { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--text); transition: color 0.2s; }
.w3-nav-list a:hover { color: var(--brand); }
.w3-nav-cta { font-size: 13px; padding: 10px 18px; }
.w3-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.w3-footer { background: #111111; color: #fff; padding: 64px 0 0; }
.w3-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.w3-footer-logo img { height: 36px; width: auto; margin-bottom: 12px; }
.w3-footer-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: #fff; }
.w3-footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-top: 12px; }
.w3-footer-col-title { font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.w3-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.w3-footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.w3-footer-col ul a:hover { color: var(--brand); }
.w3-footer-socials { display: flex; flex-direction: column; gap: 12px; }
.w3-footer-socials a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.w3-footer-socials a:hover { color: var(--brand); }
.w3-footer-bottom { padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.35); text-align: center; }

/* ============================================================
   HERO (page-blog)
   ============================================================ */
.w3-hero { display: grid; grid-template-columns: 60% 40%; gap: 48px; align-items: center; }
.w3-hero-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; display: block; background: var(--surface); }
.w3-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.w3-hero-img:hover img { transform: scale(1.02); }
.w3-hero-content { display: flex; flex-direction: column; gap: 16px; }
.w3-hero-content > * + * { margin-top: 0; }
.w3-hero-title { font-family: var(--font-heading); font-weight: 700; font-size: 36px; line-height: 1.2; }
.w3-hero-title a:hover { color: var(--brand); }
.w3-hero-excerpt { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ============================================================
   GRID UTILS
   ============================================================ */
.w3-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.w3-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ============================================================
   LIST (horizontal posts)
   ============================================================ */
.w3-list { display: flex; flex-direction: column; gap: 32px; }
.w3-list-item { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.w3-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.w3-list-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--surface); }
.w3-list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.w3-list-img:hover img { transform: scale(1.03); }
.w3-list-content { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.w3-list-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 1.3; }
.w3-list-title a:hover { color: var(--brand); }
.w3-list-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.w3-cat-card { background: #fff; border-radius: var(--radius-md); padding: 32px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.w3-cat-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-light); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.w3-cat-title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.w3-cat-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; flex: 1; }
.w3-cat-link { color: var(--brand); font-weight: 600; font-size: 14px; }
.w3-cat-link:hover { text-decoration: underline; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.w3-newsletter { background: var(--brand); border-radius: var(--radius-lg); padding: 64px; text-align: center; color: #fff; }
.w3-newsletter h2 { font-family: var(--font-heading); font-weight: 700; font-size: 32px; margin-bottom: 12px; color: #fff; }
.w3-newsletter p { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }
.w3-newsletter-form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.w3-newsletter-form input { flex: 1; min-width: 180px; padding: 14px 16px; border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px; }
.w3-btn-newsletter { background: #111; color: #fff; font-weight: 700; padding: 14px 24px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: background 0.2s; font-size: 14px; }
.w3-btn-newsletter:hover { background: #333; color: #fff; }
.w3-thumb-placeholder { width: 100%; height: 100%; background: var(--surface); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.w3-breadcrumb { padding: 16px 0; border-bottom: 1px solid var(--border); }
.w3-breadcrumb nav { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.w3-breadcrumb a:hover { color: var(--brand); }
.w3-breadcrumb span { color: var(--text-subtle); }

/* ============================================================
   POST HEADER + CONTENT
   ============================================================ */
.w3-post-header { padding: 48px 0 32px; text-align: center; }
.w3-post-title { font-family: var(--font-heading); font-weight: 700; font-size: 42px; line-height: 1.2; margin: 20px 0 24px; }
.w3-post-meta { display: flex; align-items: center; gap: 12px; justify-content: center; }
.w3-author-avatar { border-radius: 50%; }
.w3-post-meta-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.w3-post-author { font-weight: 600; font-size: 14px; }
.w3-post-date-time { font-size: 13px; color: var(--text-muted); }

.w3-post-featured { margin-bottom: 48px; }
.w3-post-featured-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius-md); }

.w3-post-content { padding: 0 0 48px; }
.w3-post-content p { font-size: 18px; line-height: 1.8; color: #333; margin-bottom: 24px; }
.w3-post-content h2 { font-family: var(--font-heading); font-weight: 700; font-size: 28px; margin: 48px 0 20px; color: var(--text); }
.w3-post-content h3 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin: 36px 0 16px; color: var(--text); }
.w3-post-content h4 { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin: 28px 0 12px; }
.w3-post-content a { color: var(--brand); }
.w3-post-content a:hover { text-decoration: underline; }
.w3-post-content blockquote { border-left: 3px solid var(--brand); padding: 16px 24px; margin: 32px 0; font-style: italic; color: var(--text-muted); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.w3-post-content ul, .w3-post-content ol { padding-left: 28px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.w3-post-content li { font-size: 17px; line-height: 1.7; color: #333; }
.w3-post-content img { border-radius: var(--radius-sm); margin: 24px 0; }
.w3-post-content code { background: var(--surface); padding: 2px 8px; border-radius: var(--radius-sm); font-size: 0.9em; }
.w3-post-content pre { background: #1a1a1a; color: #e5e5e5; padding: 24px; border-radius: var(--radius-sm); overflow-x: auto; margin: 24px 0; }
.w3-post-content pre code { background: none; color: inherit; padding: 0; }
.w3-post-content hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* Tags + share */
.w3-post-footer-bar { padding: 24px 0 48px; border-top: 1px solid var(--border); margin-top: 0; }
.w3-post-footer-bar .w3-wrap-narrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.w3-post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.w3-tag { padding: 6px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--text-muted); transition: all 0.2s; }
.w3-tag:hover { border-color: var(--brand); color: var(--brand); }
.w3-share { display: flex; align-items: center; gap: 12px; }
.w3-share span { font-size: 13px; color: var(--text-muted); }
.w3-share a { color: var(--text-muted); transition: color 0.2s; display: flex; }
.w3-share a:hover { color: var(--brand); }

/* Author bio */
.w3-author-bio { padding: 48px 0; border-top: 1px solid var(--border); }
.w3-author-card { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border-radius: var(--radius-md); padding: 28px; }
.w3-author-card-img { border-radius: 50%; width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; }
.w3-author-card-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-subtle); }
.w3-author-card-name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 18px; margin: 4px 0 8px; }
.w3-author-card-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   ARCHIVE / SEARCH
   ============================================================ */
.w3-archive-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.w3-search-form { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.w3-search-input { padding: 10px 16px; border: none; font-family: var(--font-body); font-size: 14px; min-width: 240px; outline: none; background: var(--bg); }
.w3-search-btn { padding: 10px 14px; background: var(--brand); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; }
.w3-cat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.w3-filter-pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-muted); transition: all 0.2s; }
.w3-filter-pill:hover, .w3-filter-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.w3-empty-state { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.w3-empty-state h3 { font-family: var(--font-heading); font-size: 22px; }
.w3-empty-state p { color: var(--text-muted); }

/* Category hero */
.w3-cat-hero { padding: 48px 0; }
.w3-back-link { font-size: 14px; color: var(--text-muted); display: inline-block; margin-bottom: 16px; transition: color 0.2s; }
.w3-back-link:hover { color: var(--brand); }
.w3-cat-hero-title { font-family: var(--font-heading); font-weight: 700; font-size: 42px; margin-bottom: 12px; }
.w3-cat-hero-desc { color: var(--text-muted); font-size: 16px; max-width: 560px; line-height: 1.7; margin-bottom: 16px; }
.w3-cat-hero-count { display: inline-block; background: var(--brand-light); color: var(--brand); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; }

/* ============================================================
   SOBRE
   ============================================================ */
.w3-sobre-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.w3-sobre-title { font-family: var(--font-heading); font-weight: 700; font-size: 40px; line-height: 1.2; margin: 16px 0 20px; }
.w3-sobre-lead { font-size: 18px; color: var(--text-muted); line-height: 1.7; }
.w3-sobre-hero-img img { border-radius: var(--radius-md); width: 100%; }
.w3-sobre-text p { font-size: 18px; line-height: 1.8; color: #333; margin-bottom: 20px; }
.w3-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.w3-stat { display: flex; flex-direction: column; gap: 8px; padding: 32px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); }
.w3-stat-number { font-family: var(--font-heading); font-weight: 700; font-size: 36px; color: var(--brand); }
.w3-stat-label { font-size: 14px; color: var(--text-muted); }
.w3-valor-card { background: var(--surface); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .w3-wrap { padding: 0 20px; }
    .w3-section { padding: 48px 0; }
    .w3-section-title { font-size: 22px; }

    .w3-burger { display: flex; }
    .w3-nav {
        display: none; position: absolute;
        top: 72px; left: 0; right: 0;
        background: #fff; flex-direction: column;
        align-items: flex-start; padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 0;
    }
    .w3-nav.open { display: flex; }
    .w3-nav-list { flex-direction: column; gap: 0; width: 100%; }
    .w3-nav-list li { border-bottom: 1px solid var(--border); width: 100%; }
    .w3-nav-list a { display: block; padding: 14px 0; }
    .w3-nav-cta { margin-top: 16px; width: 100%; text-align: center; }

    .w3-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .w3-footer-brand { grid-column: 1 / -1; }

    .w3-hero { grid-template-columns: 1fr; gap: 24px; }
    .w3-hero-title { font-size: 28px; }
    .w3-grid-3 { grid-template-columns: 1fr; }
    .w3-grid-2 { grid-template-columns: 1fr; }
    .w3-list-item { grid-template-columns: 1fr; }
    .w3-newsletter { padding: 40px 24px; }
    .w3-newsletter h2 { font-size: 24px; }

    .w3-post-title { font-size: 28px; }
    .w3-post-content p { font-size: 16px; }
    .w3-post-content h2 { font-size: 22px; }
    .w3-author-card { flex-direction: column; align-items: center; text-align: center; }
    .w3-post-footer-bar .w3-wrap-narrow { flex-direction: column; }

    .w3-archive-header { flex-direction: column; align-items: flex-start; }
    .w3-search-input { min-width: 180px; }

    .w3-sobre-hero { grid-template-columns: 1fr; }
    .w3-sobre-title { font-size: 28px; }
    .w3-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .w3-footer-grid { grid-template-columns: 1fr; }
    .w3-stats-grid { grid-template-columns: 1fr; }
}
