﻿/**
 * Estilos Frontend - Moto Cilindrada Marcas
 * Identidade Visual Pista (Motorsport Plate):
 * - Cantos retos (poucos ou nenhum canto arredondado)
 * - Cores: Preto estrutural (#121210), Vermelho Pista (#d0102a), Amarelo (#ffd400)
 * - Bordas secas (#dcdcd6), sem sombras borradas
 * - Tipografia esportiva/itálica condensada nos títulos
 * - Somente ícones SVG (zero emojis)
 */

/* ==========================================================================
   1. Box da Marca dentro do Post (.mc-brand-box)
   ========================================================================== */
.mc-brand-box {
    margin: 35px 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #dcdcd6;
    border-left: 4px solid #d0102a;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.mc-brand-box:hover {
    border-color: #121210;
    border-left-color: #d0102a;
}

/* Header do Box */
.mc-brand-box-header {
    background: #121210;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #d0102a;
}

.mc-brand-box-badge-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mc-brand-box-badge-title .mc-badge-icon {
    display: inline-flex;
    align-items: center;
    color: #ffd400;
}

/* Corpo do Box */
.mc-brand-box-body {
    padding: 22px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: #ffffff;
}

@media (max-width: 640px) {
    .mc-brand-box-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 14px;
    }
}

/* Coluna da Logo */
.mc-brand-box-logo-col {
    flex-shrink: 0;
}

.mc-brand-logo-frame {
    width: 130px;
    height: 85px;
    background: #ffffff;
    border: 1px solid #dcdcd6;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: none;
}

.mc-brand-logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Coluna de Informações */
.mc-brand-box-info-col {
    flex-grow: 1;
    min-width: 0;
}

.mc-brand-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    .mc-brand-title-wrap {
        justify-content: center;
    }
}

.mc-brand-name {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    font-style: italic !important;
    letter-spacing: -0.5px !important;
    color: #121210 !important;
    line-height: 1.2 !important;
}

.mc-brand-segments {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mc-segment-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f4f4f2;
    color: #121210;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 0;
    border: 1px solid #dcdcd6;
}

.mc-brand-slogan {
    margin: 4px 0 10px 0 !important;
    font-size: 13px !important;
    color: #6a6a66 !important;
    font-style: italic;
    line-height: 1.4;
}

.mc-brand-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #3d3d38;
    margin-bottom: 14px;
}

.mc-brand-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
    padding-top: 10px;
    border-top: 1px dashed #dcdcd6;
    font-size: 13px;
    color: #6a6a66;
}

@media (max-width: 640px) {
    .mc-brand-meta-details {
        justify-content: center;
    }
}

.mc-brand-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mc-brand-meta-item .mc-meta-val {
    color: #121210;
    font-weight: 700;
}

/* Ações / Botões */
.mc-brand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

@media (max-width: 640px) {
    .mc-brand-actions {
        justify-content: center;
        width: 100%;
    }
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.mc-btn-website {
    background: #f4f4f2;
    color: #121210;
    border: 1px solid #dcdcd6;
}

.mc-btn-website:hover {
    background: #121210;
    color: #ffffff;
    border-color: #121210;
}

.mc-btn-articles {
    background: #d0102a;
    color: #ffffff !important;
    border: 1px solid #d0102a;
}

.mc-btn-articles:hover {
    background: #121210;
    border-color: #121210;
    color: #ffffff !important;
}


/* ==========================================================================
   2. Catálogo de Marcas ([mc_marcas_catalogo])
   ========================================================================== */
.mc-catalog-wrapper {
    margin: 30px 0;
    font-family: inherit;
}

.mc-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 0;
    border: 1px solid #dcdcd6;
    box-shadow: none;
}

.mc-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f4f2;
    border: 1px solid #dcdcd6;
    color: #3d3d38;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mc-tab-btn:hover {
    background: #e5e5e0;
    color: #121210;
    border-color: #121210;
}

.mc-tab-btn.active {
    background: #121210;
    border-color: #121210;
    color: #ffffff;
    box-shadow: none;
}

.mc-tab-count {
    background: rgba(0,0,0,0.08);
    padding: 1px 5px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
}

.mc-tab-btn.active .mc-tab-count {
    background: #d0102a;
    color: #ffffff;
}

/* Busca */
.mc-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mc-search-icon {
    position: absolute;
    left: 10px;
    color: #6a6a66;
    pointer-events: none;
}

#mc-brand-search-input {
    padding: 8px 30px 8px 32px;
    border: 1px solid #dcdcd6;
    border-radius: 0;
    font-size: 13px;
    width: 250px;
    outline: none;
    background: #ffffff;
    color: #121210;
    transition: border-color 0.2s ease;
}

#mc-brand-search-input:focus {
    width: 280px;
    border-color: #121210;
    box-shadow: none;
}

#mc-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #6a6a66;
    cursor: pointer;
    line-height: 1;
}

/* Grid de Cards */
.mc-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.mc-brand-card {
    background: #ffffff;
    border: 1px solid #dcdcd6;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.mc-brand-card:hover {
    border-color: #121210;
}

.mc-brand-card.hidden {
    display: none !important;
}

.mc-brand-card-inner {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mc-card-logo-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #f4f4f2;
    border-radius: 0;
    border: 1px solid #e8e8e4;
    padding: 8px;
}

.mc-card-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mc-card-no-logo {
    font-weight: 800;
    color: #121210;
    font-size: 16px;
    text-align: center;
}

.mc-card-content {
    flex-grow: 1;
    margin-bottom: 14px;
}

.mc-card-title {
    margin: 0 0 6px 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    font-style: italic !important;
    letter-spacing: -0.4px !important;
    color: #121210 !important;
}

.mc-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.mc-card-badge {
    background: #f4f4f2;
    color: #121210;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 0;
    border: 1px solid #dcdcd6;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mc-card-country {
    font-size: 12px;
    color: #6a6a66;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mc-card-slogan {
    font-size: 12px !important;
    color: #6a6a66 !important;
    margin: 0 !important;
    font-style: italic;
    line-height: 1.3;
}

.mc-card-footer {
    display: flex;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #dcdcd6;
}

.mc-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.15s ease;
}

.mc-card-btn-articles {
    flex-grow: 1;
    background: #121210;
    color: #ffffff !important;
    padding: 7px 10px;
    border: 1px solid #121210;
}

.mc-card-btn-articles:hover {
    background: #d0102a;
    border-color: #d0102a;
}

.mc-card-btn-site {
    background: #f4f4f2;
    color: #121210;
    padding: 7px 10px;
    border: 1px solid #dcdcd6;
}

.mc-card-btn-site:hover {
    background: #121210;
    color: #ffffff;
    border-color: #121210;
}

/* Empty & Not Found */
.mc-catalog-empty,
.mc-catalog-not-found {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px dashed #dcdcd6;
    border-radius: 0;
    grid-column: 1 / -1;
}

.mc-empty-icon {
    display: inline-block;
    color: #6a6a66;
    margin-bottom: 12px;
}

.mc-catalog-empty h3,
.mc-catalog-not-found h4 {
    margin: 0 0 6px 0;
    color: #121210;
    font-style: italic;
    font-weight: 800;
}

.mc-catalog-empty p,
.mc-catalog-not-found p {
    color: #6a6a66;
    margin: 0;
    font-size: 14px;
}
