/**
 * Estilos principais do tema Times Capital
 */

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* Cabeçalho */
.site-header {
    background-color: var(--color-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.finance-ticker {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
}

.ticker-item {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
}

.ticker-symbol {
    font-weight: bold;
    margin-right: 5px;
}

.ticker-change.positive {
    color: #4CAF50;
}

.ticker-change.negative {
    color: #F44336;
}

.site-branding {
    padding: 20px 0;
    text-align: center;
}

.site-title {
    font-family: var(--font-primary);
    font-size: 48px;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-dark);
    text-decoration: none;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 0;
}

.search-form {
    display: flex;
    margin-right: 15px;
}

.search-field {
    border: 1px solid var(--color-border);
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 200px;
}

.search-submit {
    background-color: var(--color-dark);
    color: var(--color-light);
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    cursor: pointer;
}

.subscribe-button {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-button:hover {
    background-color: #c04d28;
}

/* Navegação */
.main-navigation {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Conteúdo */
.site-content {
    padding: 30px 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

/* Grid de Notícias */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 40px;
}

.featured-area {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-gap: 20px;
    margin-bottom: 40px;
}

.main-featured {
    grid-column: 1;
}

.secondary-featured {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-gap: 20px;
}

/* Cards de Notícias */
.news-card {
    position: relative;
    margin-bottom: 20px;
    background-color: var(--color-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    color: var(--color-light);
    background-color: var(--color-primary);
    border-radius: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.category-badge.economia {
    background-color: var(--color-primary);
}

.category-badge.mercado-financeiro {
    background-color: var(--color-secondary);
}

.category-badge.empresas {
    background-color: #2E7D32;
}

.category-badge.empreendedorismo {
    background-color: #6A1B9A;
}

.category-badge.educacao-financeira {
    background-color: #00695C;
}

.category-badge.inteligencia-artificial {
    background-color: var(--color-secondary);
}

.entry-title {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.entry-title a {
    color: var(--color-dark);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    font-size: 14px;
    color: #666;
}

.posted-time {
    display: inline-block;
}

/* Post em Destaque */
.featured-post {
    position: relative;
    height: 100%;
}

.featured-thumbnail {
    display: block;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.featured-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: var(--color-light);
    z-index: 1;
}

.featured-post .entry-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.featured-post .entry-title a {
    color: var(--color-light);
}

.featured-post .entry-meta {
    color: rgba(255, 255, 255, 0.8);
}

/* Seções de Categoria */
.category-section {
    margin-bottom: 40px;
}

/* Widgets */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

/* Widget de Posts Populares */
.popular-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-posts li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumb {
    flex: 0 0 80px;
    margin-right: 15px;
}

.post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-data h4 {
    font-size: 16px;
    margin: 0 0 5px;
}

.post-date {
    font-size: 12px;
    color: #666;
}

/* Widget de Inscrição no WhatsApp */
.whatsapp-subscribe {
    background-color: #25D366;
    color: var(--color-light);
    padding: 20px;
    border-radius: 4px;
}

.whatsapp-description {
    margin-bottom: 15px;
}

.whatsapp-form .form-group {
    margin-bottom: 15px;
}

.whatsapp-form input,
.whatsapp-form select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.whatsapp-submit {
    background-color: var(--color-dark);
    color: var(--color-light);
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
}

/* Rodapé */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 40px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-title {
    color: var(--color-light);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-navigation li {
    margin-bottom: 10px;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-navigation a:hover {
    color: var(--color-primary);
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
}

