/* * Modern Magazine Theme Overrides 
 * Inter Font | White, Black, Green Palette
 * Add to the bottom of style.css 
 */

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

/* Base & Typography */
body {
    font-family: 'Inter', sans-serif;
    color: #0a0a0a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .site-title, .nit-section-title, .hero-title, .grid-title, .list-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.03em;
}

.nit-front-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
}

.nit-section {
    padding: 4rem 1rem;
}

/* Modern Header Tweaks - Floating & Sticky */
.site-header {
    position: sticky;
    top: 1rem;
    z-index: 1000;
    background: #ffffff;
    color: #0a0a0a;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    
    /* Floating Pill Design */
    margin: 1rem auto;
    max-width: 1300px;
    width: calc(100% - 2rem);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}
.site-branding {
    margin: 0;
}
.site-title {
    margin: 0;
    line-height: 1;
}
.site-title a { 
    color: #0a0a0a; 
    font-size: 2rem; 
    font-weight: 900;
    letter-spacing: -0.05em; 
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.site-title a:hover { color: #10b981; } /* Emerald Green */
.site-description { display: none; } 

/* Navigation Overrides - Button Style */
.main-navigation { clear: none; }
.main-navigation ul {
    list-style: none; 
    margin: 0;
    padding: 0;
    display: flex; 
    gap: 1rem;
    align-items: center;
}
.main-navigation li { margin: 0; }
.main-navigation a { 
    color: #0a0a0a; 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.main-navigation a:hover { 
    color: #10b981; 
    border-color: #10b981;
}

/* Mobile Menu Toggle */
button.menu-toggle {
    display: none;
    background: #f3f4f6;
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
button.menu-toggle:hover { background: #e5e7eb; }

/* Mobile Header Layout */
@media (max-width: 767px) {
    .site-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 1.5rem;
    }
    button.menu-toggle { display: block; }
    .main-navigation ul { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        padding-top: 1rem; 
        gap: 1.5rem; 
    }
    .main-navigation.toggled ul { display: flex; } 
    .main-navigation a {
        display: block;
        text-align: center;
    }
}

/* Global Utilities */
.bg-dark { background-color: #0a0a0a; }
.text-white { color: #ffffff !important; }
.text-green { color: #10b981 !important; }

/* Modern Pill Badges */
.nit-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    display: inline-block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px; /* Pill shape */
}
.outline-badge {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

/* SECTION HEADERS */
.nit-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}
.bg-dark .nit-section-header { border-bottom-color: #1f2937; }
.nit-section-title { font-size: 1.75rem; font-weight: 800; }

.title-accent {
    color: #0a0a0a;
}
.title-accent.accent-green { color: #ffffff; }
.title-accent.accent-black { color: #0a0a0a; }

.nit-view-all {
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nit-view-all:hover { color: #10b981; }
.nit-view-all.text-green:hover { color: #ffffff; opacity: 0.8; }

/* 1. HERO GRID (Modern Editorial) */
.nit-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 900px) {
    .nit-hero-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 320px);
    }
    .hero-item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
    .hero-item-2 { grid-column: 3; grid-row: 1; }
    .hero-item-3 { grid-column: 4; grid-row: 1; }
    .hero-item-4 { grid-column: 3; grid-row: 2; }
    .hero-item-5 { grid-column: 4; grid-row: 2; }
}

.nit-hero-card { border-radius: 12px; overflow: hidden; }
.nit-hero-card a { display: block; height: 100%; position: relative; }
.hero-img-wrapper { height: 100%; width: 100%; position: relative; background: #f3f4f6; }
.hero-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.nit-hero-card:hover img { transform: scale(1.03); }

.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 60%, rgba(10,10,10,0) 100%);
}

.hero-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem; z-index: 2;
}
.hero-title {
    color: #ffffff; 
}
.hero-item-1 .hero-title { font-size: 2.2rem; }
.hero-item-2 .hero-title, .hero-item-3 .hero-title, .hero-item-4 .hero-title, .hero-item-5 .hero-title {
    font-size: 1.1rem;
}

/* 2. POST GRID (4 Columns) */
.nit-post-grid {
    display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 600px) { .nit-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .nit-post-grid { grid-template-columns: repeat(4, 1fr); } }

.nit-grid-card a { text-decoration: none; display: block; }
.nit-grid-card:hover .grid-title { color: #10b981; }
.bg-dark .nit-grid-card:hover .grid-title { color: #10b981 !important; }

.grid-img-wrapper { 
    aspect-ratio: 4/3; 
    overflow: hidden; 
    margin-bottom: 1.25rem; 
    background: #f3f4f6;
    border-radius: 8px;
}
.grid-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nit-grid-card:hover img { transform: scale(1.03); }
.grid-title { font-size: 1.15rem; color: #0a0a0a; transition: color 0.2s; font-weight: 700; line-height: 1.3;}

/* 3. LATEST LIST (Two columns of horizontal cards) */
.nit-latest-list {
    display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 900px) { .nit-latest-list { grid-template-columns: repeat(2, 1fr); gap: 40px; } }

.list-link {
    display: flex; gap: 1.5rem; text-decoration: none; color: inherit; align-items: center;
}
.list-link:hover .list-title { color: #10b981; }
.list-img-wrapper {
    flex: 0 0 160px; height: 160px; overflow: hidden; background: #f3f4f6; border-radius: 8px;
}
.list-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.list-link:hover img { transform: scale(1.03); }
.list-title { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 800;}
.list-excerpt { font-size: 0.95rem; color: #6b7280; line-height: 1.5; }

/* Responsive adjustments */
@media (max-width: 600px) {
    .list-link { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .list-img-wrapper { flex: 0 0 auto; width: 100%; height: 200px; }
}

/* =========================================
   Modern Footer Styles
   ========================================= */
.modern-footer {
    background-color: #0a0a0a;
    color: #d1d5db;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    font-family: 'Inter', sans-serif;
}

.modern-footer .footer-widgets-area {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .modern-footer .footer-widgets-area {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

.modern-footer .footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.modern-footer p {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modern-footer .footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer .footer-navigation li {
    margin-bottom: 0.8rem;
}

.modern-footer .footer-navigation a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.modern-footer .footer-navigation a:hover {
    color: #10b981;
}

/* Newsletter Form */
.fake-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fake-subscribe-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #374151;
    background: #111827;
    color: #fff;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.fake-subscribe-form input:focus {
    border-color: #10b981;
}

.fake-subscribe-form button {
    padding: 0.75rem 1rem;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.fake-subscribe-form button:hover {
    background: #059669;
}

.modern-footer .site-info {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.modern-footer {
    background-color: #0a0a0a;
    color: #d1d5db;
    padding: 4rem 2rem 2rem;
    
    /* This fixes the gap! 
       Top margin is 4rem, right is 0, bottom is 0, left is 0 */
    margin: 4rem 0 0 0 !important; 
    border: none !important;
    width: 100%;
    box-sizing: border-box;
    
    font-family: 'Inter', sans-serif;
}

/* Force the footer to the bottom of the screen and remove body margins */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex-grow: 1;
}

/* =========================================
   Single Post Styles (Modern Editorial)
   Add to the bottom of style.css
   ========================================= */

.modern-single-post {
    padding: 2rem 1rem 4rem;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
}

/* Header & Title Alignment */
.modern-entry-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.modern-entry-header .header-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Category Pill */
.category-pill {
    margin-bottom: 1.5rem;
}

.category-pill a {
    background-color: #10b981;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    display: inline-block;
    transition: background 0.2s;
}

.category-pill a:hover {
    background-color: #059669;
}

/* Post Title */
.modern-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0a0a0a;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .modern-title {
        font-size: 3.5rem;
    }
}

/* Meta Data (Author & Date) */
.post-details {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.meta-separator {
    color: #d1d5db;
}

/* Featured Hero Image */
.modern-thumbnail {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    border-radius: 12px;
    overflow: hidden;
}

.modern-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
}

/* Content Area - Optimal Reading Width */
.modern-entry-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

/* Typography inside Content */
.modern-entry-content p {
    margin-bottom: 1.5rem;
}

.modern-entry-content h2, 
.modern-entry-content h3 {
    color: #0a0a0a;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modern-entry-content h2 { font-size: 2rem; }
.modern-entry-content h3 { font-size: 1.5rem; }

.modern-entry-content a {
    color: #10b981;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    font-weight: 600;
}

.modern-entry-content a:hover {
    border-bottom-color: #10b981;
}

.modern-entry-content blockquote {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0a0a0a;
    border-left: 4px solid #10b981;
    margin: 2.5rem 0;
    padding-left: 1.5rem;
    font-style: italic;
}

/* WordPress Image Alignments inside Post */
.modern-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.aligncenter { display: block; margin: 2rem auto; }
.alignleft { float: left; margin: 0.5rem 2rem 1.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 1.5rem 2rem; }

/* Article Footer (Tags) */
.modern-entry-footer .footer-inner {
    max-width: 740px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tags-links a {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.2s;
}

.tags-links a:hover {
    background-color: #e5e7eb;
    color: #10b981;
}

/* Post Navigation */
.modern-post-navigation {
    margin-top: 3rem;
}

.nav-inner {
    max-width: 740px;
    margin: 0 auto;
}

.modern-post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
}

.modern-post-navigation a { text-decoration: none; }
.modern-post-navigation a:hover .nav-title { color: #10b981; }

/* Hide Comments */
.modern-comments-area,
#comments,
.comments-area {
    display: none !important;
}

/* Related Posts Section */
.modern-related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.related-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #0a0a0a;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card a {
    text-decoration: none;
    display: block;
}

.related-card:hover .related-post-title {
    color: #10b981;
}

.related-img {
    aspect-ratio: 16/10;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.03);
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.3;
    transition: color 0.2s ease;
}

/* =========================================
   Archive / Category Page Styles
   Adicionar no fundo do style.css
   ========================================= */

.modern-archive {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Archive Header */
.modern-archive-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.modern-archive-header .header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.modern-archive-header .page-title {
    font-size: 3rem;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

/* Esconder a palavra "Category:" que o WordPress coloca por defeito */
.modern-archive-header .page-title span {
    display: none;
}

.archive-description {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Archive Grid (Semelhante à página inicial, mas com 3 colunas) */
.modern-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 2rem;
}

@media (min-width: 768px) {
    .modern-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .modern-archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.archive-card .grid-img-wrapper {
    aspect-ratio: 4/3;
    border-radius: 12px;
}

.archive-card .grid-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-date-archive {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Paginação */
.modern-pagination {
    margin-top: 5rem;
    text-align: center;
}

.modern-pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.modern-pagination .page-numbers {
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.modern-pagination .page-numbers.current,
.modern-pagination .page-numbers:hover {
    background: #10b981;
    color: #ffffff;
}