/*
Theme Name: O Instante Infield
Theme URI: https://oinstante.com.br
Author: Paulo
Description: Tema estilo Infield para o Jornal O Instante - Layout clássico de blog/notícias
Version: 1.0
Text Domain: o-instante-infield
*/

:root {
    --brand-blue: #003366;
    --brand-red: #C41E3A;
    --brand-dark: #1a1a1a;
    --gray-light: #f5f5f5;
    --gray-medium: #888;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: var(--gray-light);
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-red);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================
   HEADER
=================== */
.site-header {
    background: var(--white);
    border-bottom: 4px solid var(--brand-blue);
}

.header-top {
    background: var(--brand-dark);
    padding: 8px 0;
    font-size: 12px;
    color: var(--gray-medium);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #bbb;
    margin-left: 15px;
}

.header-top a:hover {
    color: var(--white);
}

.header-main {
    padding: 30px 0;
    text-align: center;
}

.site-title {
    font-size: 3.5em;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 5px;
}

.site-title a {
    color: var(--brand-blue);
}

.site-title a:hover {
    color: var(--brand-red);
}

.site-tagline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gray-medium);
}

/* ===================
   NAVIGATION
=================== */
.main-navigation {
    background: var(--brand-blue);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    color: var(--white);
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: var(--brand-red);
    color: var(--white);
}

/* ===================
   CONTENT WRAPPER
=================== */
.site-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.main-content {
    min-width: 0;
}

/* ===================
   FEATURED POSTS SLIDER
=================== */
.featured-section {
    background: var(--white);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.featured-main {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    min-height: 320px;
    background: #ddd;
}

.featured-main img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.featured-main .category {
    display: inline-block;
    background: var(--brand-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.featured-main h2 {
    font-size: 1.6em;
    line-height: 1.25;
    margin: 0;
}

.featured-main h2 a {
    color: var(--white);
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-sidebar-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: var(--gray-light);
    border-radius: 3px;
    transition: background 0.2s;
}

.featured-sidebar-item:hover {
    background: #eee;
}

.featured-sidebar-item img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.featured-sidebar-item .text {
    flex: 1;
    min-width: 0;
}

.featured-sidebar-item .cat {
    font-size: 10px;
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.featured-sidebar-item h4 {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

.featured-sidebar-item h4 a {
    color: #333;
}

/* ===================
   POST LIST
=================== */
.posts-section {
    background: var(--white);
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-blue);
    margin: 0;
}

.section-header a {
    font-size: 12px;
    color: var(--gray-medium);
}

.post-list .post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.post-list .post-item:first-child {
    padding-top: 0;
}

.post-list .post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-item .thumbnail {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #ddd;
}

.post-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item .content {
    flex: 1;
    min-width: 0;
}

.post-item .category {
    font-size: 10px;
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.post-item h3 {
    font-size: 1.15em;
    line-height: 1.35;
    margin: 0 0 8px;
}

.post-item h3 a {
    color: #222;
}

.post-item h3 a:hover {
    color: var(--brand-blue);
}

.post-item .excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.post-item .meta {
    font-size: 12px;
    color: var(--gray-medium);
}

.post-item .meta a {
    color: var(--gray-medium);
}

/* ===================
   SIDEBAR
=================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: var(--white);
    padding: 20px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Numbered List Widget */
.numbered-list {
    counter-reset: item;
}

.numbered-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.numbered-list li::before {
    counter-increment: item;
    content: counter(item);
    font-size: 20px;
    font-weight: 900;
    color: #ddd;
    min-width: 25px;
}

.numbered-list li a {
    color: #333;
    font-weight: 500;
}

/* ===================
   SINGLE POST
=================== */
.single-article {
    background: var(--white);
    padding: 35px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.single-article .post-header {
    margin-bottom: 25px;
}

.single-article .category {
    display: inline-block;
    background: var(--brand-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 15px;
}

.single-article h1 {
    font-size: 2em;
    line-height: 1.25;
    color: #222;
    margin: 0 0 15px;
}

.single-article .meta {
    font-size: 13px;
    color: var(--gray-medium);
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-article .featured-image {
    margin: 25px 0;
    border-radius: 3px;
    overflow: hidden;
}

.single-article .featured-image img {
    width: 100%;
}

.single-article .post-content {
    font-size: 17px;
    line-height: 1.85;
}

.single-article .post-content p {
    margin-bottom: 1.5em;
}

.single-article .post-content h2,
.single-article .post-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--brand-blue);
}

.single-article .tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.single-article .tags a {
    display: inline-block;
    background: var(--gray-light);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    margin: 3px;
}

.single-article .tags a:hover {
    background: var(--brand-blue);
    color: var(--white);
}

/* ===================
   FOOTER
=================== */
.site-footer {
    background: var(--brand-dark);
    color: #888;
    padding: 50px 0 25px;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #888;
    font-size: 13px;
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    font-size: 12px;
}

/* ===================
   PAGINATION
=================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--white);
    border-radius: 3px;
    font-size: 13px;
    color: #333;
}

.pagination .current {
    background: var(--brand-blue);
    color: var(--white);
}

/* ===================
   RESPONSIVE
=================== */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .site-title {
        font-size: 2.2em;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .post-item {
        flex-direction: column;
    }

    .post-item .thumbnail {
        width: 100%;
        height: 180px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}