/*
 * ZeroTux Custom Styles — Inspired by HowToGeek
 * Tema: zerotux-child (filho do Astra)
 * Versão: 1.1.0
 */

/* =====================================================
   1. GLOBAL TYPOGRAPHY & BODY
   ===================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* =====================================================
   2. ARTICLE CONTENT — Astra usa .entry-content
   ===================================================== */

.entry-content {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.8;
    color: #1a1a1a;
}

/* =====================================================
   3. HEADINGS
   ===================================================== */

.entry-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e8e8e8;
}

.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.entry-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

/* =====================================================
   4. PARAGRAPHS
   ===================================================== */

.entry-content p {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

/* =====================================================
   5. LINKS
   ===================================================== */

.entry-content a {
    color: #0066cc;
    text-decoration: none;
}

.entry-content a:hover,
.entry-content a:focus {
    text-decoration: underline;
    color: #004499;
}

/* =====================================================
   6. TABLES — HowToGeek style
   ===================================================== */

.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 2rem 0;
    font-size: 0.9375rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    border-radius: 6px;
}

.entry-content table thead {
    background-color: #1a1a2e;
    color: #ffffff;
}

.entry-content table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    color: #ffffff;
}

.entry-content table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.15s ease;
}

.entry-content table tbody tr:nth-child(even) {
    background-color: #f7f8fa;
}

.entry-content table tbody tr:hover {
    background-color: #eef4ff;
}

.entry-content table td {
    padding: 11px 16px;
    vertical-align: top;
    color: #333333;
    border: none;
}

.entry-content table th {
    border: none;
}

/* =====================================================
   7. IMAGES
   ===================================================== */

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 1.5rem auto;
}

/* =====================================================
   8. BLOCKQUOTES
   ===================================================== */

.entry-content blockquote {
    border-left: 4px solid #0066cc;
    background-color: #f0f5ff;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    font-style: italic;
    color: #444444;
    border-radius: 0 4px 4px 0;
}

.entry-content blockquote p {
    margin-bottom: 0;
}

/* =====================================================
   9. CODE
   ===================================================== */

.entry-content code {
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Courier New', monospace;
    background-color: #f1f3f5;
    color: #c0392b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875em;
}

.entry-content pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* =====================================================
   10. LISTS
   ===================================================== */

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
    font-size: 1.0625rem;
}

/* =====================================================
   11. POST TITLE
   ===================================================== */

.entry-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.75rem !important;
}

/* =====================================================
   12. POST META (data, autor)
   ===================================================== */

.entry-meta,
.ast-post-meta {
    color: #666666;
    font-size: 0.875rem;
}

/* =====================================================
   13. HORIZONTAL RULE
   ===================================================== */

.entry-content hr {
    border: none;
    border-top: 2px solid #e8e8e8;
    margin: 2.5rem 0;
}

/* =====================================================
   14. BLOG LIST / ARCHIVE — cards estilo HTG
   ===================================================== */

.ast-article-post {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.ast-article-post .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.ast-article-post .entry-title a:hover {
    color: #0066cc;
}

.ast-article-post .entry-summary p,
.ast-article-post .entry-excerpt p {
    color: #555555;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* =====================================================
   15. SITE HEADER
   ===================================================== */

.site-title a {
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

.site-title a:hover {
    color: #0066cc !important;
}

#masthead,
.ast-primary-header-bar {
    border-bottom: 2px solid #e8e8e8;
    background: #ffffff !important;
}

/* =====================================================
   16. NAVIGATION LINKS
   ===================================================== */

.main-header-menu .menu-item a,
#site-navigation .nav-menu a {
    color: #333333 !important;
    font-size: 0.9375rem;
    font-weight: 500;
}

.main-header-menu .menu-item a:hover,
#site-navigation .nav-menu a:hover {
    color: #0066cc !important;
}

/* =====================================================
   17. FOOTER
   ===================================================== */

.site-footer,
#colophon {
    border-top: 2px solid #e8e8e8;
    background-color: #f7f8fa !important;
    color: #666666;
    font-size: 0.875rem;
}

/* =====================================================
   18. AFFILIATE / DISCLOSURE NOTE
   ===================================================== */

.entry-content p[style*="font-size:0.85em"],
.entry-content p[style*="font-size: 0.85em"] {
    background: #f7f8fa;
    border-left: 3px solid #cccccc;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    color: #666666;
}

/* =====================================================
   19. RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .entry-title {
        font-size: 1.6rem !important;
    }

    .entry-content h2 {
        font-size: 1.3rem;
    }

    .entry-content h3 {
        font-size: 1.125rem;
    }

    .entry-content table {
        font-size: 0.8125rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry-content table td,
    .entry-content table th {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.4rem !important;
    }

    .entry-content p {
        font-size: 1rem;
    }
}
