/*
Theme Name: ICL Clone
Theme URI: #
Author: Antigravity
Description: Template Clone do ICL Noticias para WordPress - Home, Header e Footer
Version: 1.0.0
*/

/* ==========================================================================
   Variáveis e Reset
   ========================================================================== */
:root {
    --primary-color: #0b2b5e; /* Azul Escuro */
    --secondary-color: #e51d2e; /* Vermelho ICL */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-gray: #f4f4f4;
    --border-color: #eaeaea;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Classes Utilitárias
   ========================================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.section-padding { padding: 4rem 0; }
.dark-bg { background-color: var(--primary-color); color: #ffffff; }

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
}

.img-hover {
    transition: transform 0.4s ease;
}
.img-wrapper {
    overflow: hidden;
    border-radius: 6px;
    display: block;
}
.img-wrapper:hover .img-hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Header e Navegação
   ========================================================================== */
.site-header {
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.top-bar {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo-img {
    height: 45px;
}

.member-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-member {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
}
.btn-member:hover {
    background-color: #071c3d;
    color: #fff;
}

.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}
.dark-mode-toggle:hover {
    color: var(--secondary-color);
}

.main-navigation {
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.nav-menu li a {
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 0.5px;
}
.nav-menu li a:hover {
    color: var(--secondary-color);
}

.social-search {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social-icons a {
    margin-left: 15px;
    color: var(--text-color);
    font-size: 1.1rem;
}
.social-icons a:hover {
    color: var(--secondary-color);
}
.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}
.search-btn:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    width: 100%;
}
.hero-image {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 10%;
    color: #fff;
    text-align: center;
    width: 100%;
}
.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}
.tag-light {
    color: #fff;
    background: rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}
.tag-red {
    color: var(--secondary-color);
}
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Barra Ao Vivo
   ========================================================================== */
.live-bar {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
}
.live-badge {
    background: #fff;
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.blink {
    animation: blinker 1.5s linear infinite;
    font-size: 0.6rem;
}
@keyframes blinker {
    50% { opacity: 0; }
}

/* ==========================================================================
   Grid de Notícias Principais
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.main-article h2 {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    line-height: 1.2;
    margin: 15px 0;
}
.article-bullets {
    margin-left: 20px;
    margin-bottom: 25px;
    list-style-type: disc;
    color: var(--text-light);
    font-size: 1.05rem;
}
.article-bullets li {
    margin-bottom: 8px;
}
.main-article .featured-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}
.sub-article h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}
.side-articles {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.side-article {
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.side-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.side-article .img-wrapper {
    flex: 0 0 130px;
    height: 100px;
}
.side-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.side-article h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.4;
    margin-top: 8px;
}

/* ==========================================================================
   Seção Eleições (Dark Background)
   ========================================================================== */
.eleicoes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}
.card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    object-fit: cover;
}
.large-card .img-wrapper {
    height: 100%;
}
.large-card img {
    height: 100%;
    min-height: 300px;
}
.large-card {
    grid-column: span 1;
}
.large-card .card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.large-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-top: 10px;
    line-height: 1.3;
}
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.horizontal-card {
    display: flex;
    background: transparent;
    border: none;
    gap: 15px;
    align-items: center;
}
.horizontal-card:hover { transform: none; }
.horizontal-card .img-wrapper {
    flex: 0 0 110px;
    height: 110px;
}
.horizontal-card img {
    height: 100%;
}
.horizontal-card h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.3;
    margin-top: 8px;
}
.horizontal-card .category-tag {
    color: #8bb4f7;
    margin-bottom: 5px;
}

/* ==========================================================================
   Colunistas
   ========================================================================== */
.colunistas-section {
    background-color: var(--bg-gray);
}
.view-all {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.view-all:hover {
    color: var(--secondary-color);
}
.colunistas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.colunista-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.colunista-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.colunista-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--bg-gray);
}
.colunista-name {
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.colunista-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin: 15px 0;
    line-height: 1.3;
}
.colunista-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
}
.newsletter-section {
    background-color: #08214a; /* Um pouco mais escuro que o bg primário */
    padding: 60px 0;
}
.newsletter-text h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 5px;
}
.newsletter-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}
.input-group {
    background: #fff;
    border-radius: 6px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    width: 400px;
    margin-right: 20px;
}
.input-group i { color: var(--text-light); margin-right: 15px; font-size: 1.2rem; }
.input-group input {
    border: none;
    outline: none;
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
    font-family: var(--font-sans);
}
.btn-subscribe {
    background-color: #3b82f6; 
    color: #fff;
    border: none;
    padding: 0 40px;
    height: 52px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    letter-spacing: 1px;
}
.btn-subscribe:hover { background-color: #2563eb; }

.footer-bottom {
    padding: 60px 0 30px;
}
.footer-logo img {
    height: 55px;
    margin: 0 auto 30px;
}
.footer-social {
    margin-bottom: 30px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin: 0 8px;
    font-size: 1.2rem;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}
.footer-links {
    margin-bottom: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    letter-spacing: 1px;
}
.footer-links a:hover {
    color: #3b82f6;
}
.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 10px;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: 1fr; }
    .eleicoes-grid { grid-template-columns: repeat(2, 1fr); }
    .colunistas-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .flex-between { flex-direction: column; gap: 20px; text-align: center; }
    .nav-menu { display: none; } /* Necessário menu hamburger */
    .newsletter-form form { flex-direction: column; width: 100%; gap: 15px; }
    .input-group { width: 100%; margin-right: 0; }
    .btn-subscribe { width: 100%; }
    .eleicoes-grid { grid-template-columns: 1fr; }
    .colunistas-grid { grid-template-columns: 1fr; }
    .hero-image { height: 400px; }
    .hero-content { padding: 40px 5%; }
}
