/*
Theme Name: FinançasPro
Description: Tema otimizado para blog de finanças com vídeos YouTube
Author: Farmings
Version: 1.0
Template: twentytwentyfour
*/

/* ============================================
   RESET E BASE
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --text-color: #202124;
    --text-light: #5f6368;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e8eaed;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.site-header__branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.site-header__logo-link:hover {
    opacity: 0.8;
}

.site-header__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-header__description {
    display: none;
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    margin-left: 12px;
}

.site-header__navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-end;
}

.site-header__menu {
    display: none;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 6px;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu .current-menu-item > a {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* Busca */
.site-header__search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 6px;
}

.search-toggle:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 20px;
    min-width: 300px;
    display: none;
    z-index: 1001;
}

.search-form-container.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.search-form input[type="submit"] {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-form input[type="submit"]:hover {
    background-color: #1557b0;
}

/* Botão Login */
.site-header__actions {
    display: none;
}

.btn--login {
    padding: 8px 16px;
    font-size: 14px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.btn--login:hover {
    background-color: #1557b0;
    transform: translateY(-1px);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    transition: var(--transition);
}

.menu-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
}

.menu-toggle__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-toggle__text {
    font-size: 12px;
    font-weight: 500;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .site-header__container {
        flex-wrap: wrap;
        padding: 12px 20px;
    }
    
    .site-header__navigation {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        display: none;
    }
    
    .site-header__navigation.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .site-header__menu {
        display: block;
        width: 100%;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .main-menu a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-menu li:last-child a {
        border-bottom: none;
    }
    
    .site-header__search {
        width: 100%;
    }
    
    .search-form-container {
        position: static;
        margin-top: 0;
        width: 100%;
        min-width: auto;
    }
    
    .site-header__actions {
        display: block;
        width: 100%;
    }
    
    .btn--login {
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        order: 2;
        margin-left: auto;
    }
}

/* Desktop Menu Styles */
@media (min-width: 768px) {
    .site-header__container {
        padding: 18px 40px;
    }
    
    .site-header__menu {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .site-header__actions {
        display: block;
    }
    
    .site-header__description {
        display: block;
    }
}

@media (min-width: 1024px) {
    .site-header__container {
        padding: 20px 60px;
    }
    
    .main-menu {
        gap: 12px;
    }
    
    .custom-logo {
        max-height: 60px;
    }
}

/* ============================================
   LAYOUT RESPONSIVO
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 60px;
    }
}

/* ============================================
   VÍDEOS YOUTUBE EMBED 16:9
   ============================================ */

.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background-color: #000;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-wrapper--featured {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .youtube-wrapper {
        margin: 30px 0;
    }
    
    .youtube-wrapper--featured {
        margin: 40px 0;
    }
}

/* ============================================
   GRID 2X2 PARA VÍDEOS RECOMENDADOS
   ============================================ */

.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
}

@media (min-width: 600px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .videos-grid {
        gap: 30px;
    }
}

.video-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background-color: #000;
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.video-item:hover .video-item__title {
    opacity: 1;
}

@media (min-width: 768px) {
    .video-item__title {
        font-size: 16px;
        padding: 20px;
    }
}

/* ============================================
   CARDS DE ARTIGOS COM HOVER EFFECT
   ============================================ */

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

@media (min-width: 600px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.article-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.article-card__image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
}

.article-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.article-card:hover .article-card__image {
    transform: scale(1.05);
}

.article-card__image--placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.article-card__placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

.article-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.article-card__category a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.article-card__category a:hover {
    color: var(--secondary-color);
}

.article-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-color);
}

.article-card__title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.article-card__title a:hover {
    color: var(--primary-color);
}

.article-card__excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.article-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card__read-more {
    margin-left: auto;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.article-card__read-more:hover {
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .article-card__image {
        height: 220px;
    }
    
    .article-card__content {
        padding: 24px;
    }
    
    .article-card__title {
        font-size: 22px;
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    padding: 20px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumbs__link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs__link:hover {
    color: var(--primary-color);
}

.breadcrumbs__item--current {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumbs__item--current .breadcrumbs__link {
    color: var(--text-color);
    pointer-events: none;
}

@media (min-width: 768px) {
    .breadcrumbs {
        padding: 24px 0;
        margin-bottom: 40px;
    }
    
    .breadcrumbs__list {
        font-size: 15px;
        gap: 10px;
    }
}

/* ============================================
   UTILITÁRIOS E AJUSTES
   ============================================ */

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ============================================
   RESPONSIVE MOBILE-FIRST
   ============================================ */

@media (max-width: 599px) {
    .articles-grid {
        gap: 20px;
    }
    
    .article-card__content {
        padding: 16px;
    }
    
    .article-card__title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para acessibilidade */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

.home-page {
    padding: 20px 0;
}

.home-section {
    margin: 60px 0;
}

.home-section:first-child {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header .section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0;
}

.section-header .section-title::after {
    display: none;
}

.section-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--secondary-color);
    gap: 8px;
}

.category-section {
    margin: 80px 0;
}

.category-section:first-of-type {
    margin-top: 60px;
}

@media (min-width: 768px) {
    .home-page {
        padding: 40px 0;
    }
    
    .home-section {
        margin: 80px 0;
    }
    
    .home-section:first-child {
        margin-top: 60px;
    }
    
    .section-header .section-title {
        font-size: 32px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .category-section {
        margin: 100px 0;
    }
}

@media (max-width: 599px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header .section-title {
        font-size: 24px;
    }
    
    .home-section {
        margin: 50px 0;
    }
}

/* ============================================
   CATEGORY PAGE STYLES
   ============================================ */

.category-page {
    padding: 20px 0;
}

.category-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 15px;
}

.category-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

.category-description p {
    margin-bottom: 1em;
}

.category-description p:last-child {
    margin-bottom: 0;
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Paginação */
.pagination-wrapper {
    margin: 60px 0 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
}

.page-numbers:hover,
.page-numbers:focus {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.page-numbers.current {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    cursor: default;
}

.page-numbers.dots {
    background: none;
    border: none;
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

.page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
    background: none;
    color: var(--text-color);
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 600;
}

/* Nenhum post encontrado */
.no-posts-found {
    padding: 60px 20px;
    text-align: center;
}

.no-posts-message {
    font-size: 18px;
    color: var(--text-light);
    margin: 20px 0 30px;
}

.btn--primary {
    padding: 12px 24px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: var(--transition);
}

.btn--primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .category-page {
        padding: 40px 0;
    }
    
    .category-header {
        margin-bottom: 50px;
        padding-bottom: 40px;
    }
    
    .category-title {
        font-size: 42px;
    }
    
    .category-description {
        font-size: 17px;
    }
    
    .pagination-wrapper {
        margin: 80px 0 60px;
    }
}

@media (max-width: 599px) {
    .category-title {
        font-size: 28px;
    }
    
    .category-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* Video Container (16:9 responsivo) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Entry Title */
.entry-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin: 20px 0 10px;
}

/* Entry Meta */
.entry-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Post Meta Top - Botão Canal + Tags/Categorias */
.post-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.btn-canal {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.btn-canal:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.post-taxonomies {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.taxonomy-label {
    color: var(--text-light);
    font-weight: 500;
}

.taxonomy-link {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: var(--transition);
}

.taxonomy-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.taxonomy-link--category {
    border-left: 2px solid var(--secondary-color);
}

.taxonomy-link--tag {
    border-left: 2px solid var(--primary-color);
}

/* Entry Content */
.entry-content {
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-color);
}

.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--secondary-color);
}

/* Vídeos Recomendados */
.videos-recomendados {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 2px solid var(--border-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.video-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.video-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-card__thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-card__thumbnail img {
    transform: scale(1.05);
}

.video-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    opacity: 0.9;
    transition: var(--transition);
    z-index: 2;
}

.video-card:hover .video-card__play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    padding: 15px;
    margin: 0;
    transition: var(--transition);
}

.video-card:hover .video-card__title {
    color: var(--primary-color);
}

/* Conceitos Explicados */
.conceitos-explicados {
    margin: 50px 0;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.conceitos-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.conceitos-content p {
    margin-bottom: 1em;
}

.conceitos-content ul,
.conceitos-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

/* Responsive */
@media (min-width: 600px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 768px) {
    .article-container {
        padding: 40px 40px;
    }
    
    .entry-title {
        font-size: 40px;
        margin: 30px 0 15px;
    }
    
    .breadcrumb {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .video-container {
        margin: 30px 0;
    }
    
    .post-meta-top {
        gap: 20px;
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .entry-content {
        font-size: 17px;
        margin: 40px 0;
    }
    
    .videos-grid {
        gap: 30px;
    }
}

@media (max-width: 599px) {
    .post-meta-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-taxonomies {
        width: 100%;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .conceitos-explicados {
        padding: 20px;
    }
}

.entry-header {
    margin: 30px 0 20px;
}

.entry-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 0;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.entry-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-views::before {
    content: '👁';
    font-size: 16px;
}

.entry-actions {
    margin: 24px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn--channel {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--channel:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.entry-content {
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-color);
}

.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--secondary-color);
}

.page-links {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-links a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background-color: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.page-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Vídeo Item com Thumbnail */
.video-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background-color: #000;
    transition: var(--transition);
}

.video-item__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.video-item__thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-item:hover .video-item__thumbnail {
    transform: scale(1.05);
}

.video-item__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    opacity: 0.9;
    transition: var(--transition);
    z-index: 2;
}

.video-item:hover .video-item__play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

.recommended-videos {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 2px solid var(--border-color);
}

/* Seção Conceitos */
.concepts-section {
    margin: 50px 0;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.concepts-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.concepts-content p {
    margin-bottom: 1em;
}

.concepts-content ul,
.concepts-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

/* Entry Footer */
.entry-footer {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.entry-categories,
.entry-tags {
    margin-bottom: 20px;
}

.entry-footer__label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 8px;
}

.entry-footer__link {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
    background-color: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 13px;
}

.entry-footer__link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navegação entre posts */
.post-navigation {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.nav-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover .nav-title {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .single-article {
        padding: 40px 0;
    }
    
    .entry-title {
        font-size: 40px;
    }
    
    .entry-meta {
        font-size: 15px;
    }
    
    .entry-content {
        font-size: 17px;
    }
    
    .video-item__title {
        font-size: 16px;
        padding: 20px;
    }
    
    .concepts-section {
        padding: 40px;
    }
}

@media (max-width: 599px) {
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .concepts-section {
        padding: 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
}

.site-footer__content {
    text-align: center;
}

.site-footer__copyright {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.site-footer__copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer__copyright a:hover {
    color: var(--secondary-color);
}

.site-footer__description {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 40px 0;
    }
}

/* ============================================
   ESTILOS MODERNOS - SINGLE POST
   ============================================ */

/* Container principal */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

/* Vídeo YouTube */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 0 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Cabeçalho */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Botão Visitar Canal */
.btn-canal {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white !important;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    margin: 20px 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-canal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Tags e Categorias */
.post-meta-top {
    margin: 20px 0 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.post-categories-inline,
.post-tags-inline {
    margin: 8px 0;
    font-size: 14px;
}

.post-categories-inline a,
.post-tags-inline a {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    margin: 3px;
    font-size: 13px;
    transition: all 0.2s;
}

.post-categories-inline a:hover,
.post-tags-inline a:hover {
    background: #3730a3;
    color: white;
}

/* Conteúdo */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #1a1a1a;
    border-left: 4px solid #3b82f6;
    padding-left: 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content strong {
    font-weight: 600;
}

.entry-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content ul li {
    margin-bottom: 12px;
}

/* Vídeos Recomendados */
.videos-recomendados {
    margin: 50px 0;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.videos-recomendados h2 {
    font-size: 28px;
    margin: 0 0 30px 0;
    text-align: center;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-card img {
    width: 100%;
    height: auto;
}

.video-card-content {
    padding: 15px;
}

.video-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Conceitos */
.conceitos-explicados {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border-left: 5px solid #f59e0b;
}

.conceitos-explicados h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #92400e;
}

/* Mobile */
@media (max-width: 768px) {
    .article-container {
        padding: 15px;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .youtube-wrapper,
    .videos-grid,
    .breadcrumbs {
        display: none;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
