/*
Theme Name: Revista Runners Brasil
Theme URI: https://revista.runnersbrasil.com
Author: Bitframe - Negócios Digitais
Author URI: https://bitframe.com.br
Description: Tema oficial da Revista Runners Brasil. Design moderno e escuro, otimizado para publicação de edições digitais e artigos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: runners-revista-theme
Tags: magazine, dark-mode, custom-post-types, runners, sports

Tema desenvolvido por Bitframe para a Revista Runners Brasil.
*/

/* ==========================================================================
   Estilos Base - Estrutura Mínima
   ========================================================================== */

/* Container principal dos templates customizados */
.rbr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==========================================================================
   Archive de Edições
   ========================================================================== */

.rbr-editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rbr-edition-card {
    border: 1px solid #e0e0e0;
    padding: 1rem;
}

.rbr-edition-card__cover {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1rem;
}

.rbr-edition-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbr-edition-card__meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.rbr-edition-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.rbr-edition-card__excerpt {
    font-size: 0.9rem;
    color: #444;
}

/* ==========================================================================
   Single Edição
   ========================================================================== */

.rbr-edition-single {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .rbr-edition-single {
        grid-template-columns: 1fr 2fr;
    }
}

.rbr-edition-single__cover img {
    width: 100%;
    height: auto;
}

.rbr-edition-single__meta {
    margin-bottom: 1rem;
}

.rbr-edition-single__meta-item {
    margin-bottom: 0.5rem;
}

.rbr-edition-single__meta-label {
    font-weight: bold;
}

/* Área do Flipbook - onde o embed será inserido */
.rbr-edition-flipbook {
    margin: 2rem 0;
    padding: 1rem;
    background: #f5f5f5;
    min-height: 400px;
}

/* Lista de artigos da edição */
.rbr-edition-articles {
    margin-top: 3rem;
}

.rbr-edition-articles__title {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.rbr-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rbr-article-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.rbr-article-item__section {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.25rem;
}

.rbr-article-item__title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.rbr-article-item__subtitle {
    color: #555;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.rbr-article-item__meta {
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================================================
   Single Artigo
   ========================================================================== */

.rbr-article-single {
    max-width: 800px;
    margin: 0 auto;
}

.rbr-article-single__header {
    margin-bottom: 2rem;
}

.rbr-article-single__section {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.rbr-article-single__title {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.rbr-article-single__subtitle {
    font-size: 1.25rem;
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
}

.rbr-article-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.rbr-article-single__content {
    margin: 2rem 0;
    line-height: 1.8;
}

/* Bloco de mais artigos da edição */
.rbr-more-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

.rbr-more-articles__title {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Componentes Compartilhados
   ========================================================================== */

.rbr-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: #333;
    color: #fff;
}

.rbr-badge--highlight {
    background: #c00;
}

.rbr-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.rbr-button:hover {
    background: #555;
    color: #fff;
}

.rbr-button--outline {
    background: transparent;
    border: 1px solid #333;
    color: #333;
}

.rbr-button--outline:hover {
    background: #333;
    color: #fff;
}
