/* site/franquia/css/styles.css */

:root {
    --primary-color: #4f46e5;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
}

/* Cards de conta */
.conta-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.75rem;
    overflow: hidden;
}

.conta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Loading */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Footer */
footer a:hover {
    color: #fff !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 576px) {
    .display-5 {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Banner "split" (left-image-content / right-image-content) — layout
   dividido imagem + texto, renderizado por renderBannerSplit() em
   js/main.franquia.js.
   ========================================================================== */
.image-content-banner .row {
    align-items: center;
}

.title-wrap .h1 {
    font-weight: 700;
    margin-bottom: 0;
}

.title-wrap .theme-color {
    color: var(--primary-color);
}

.h-decor {
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: var(--primary-color);
    margin: 0.75rem 0 1.25rem;
}

.title-wrap.text-center .h-decor {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .title-wrap.text-center.text-md-left .h-decor {
        margin-left: 0;
    }
}

.marker-list-md {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.marker-list-md li {
    position: relative;
    padding-left: 2rem;
}

.marker-list-md li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.video-box-poster {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.video-box-poster img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767.98px) {
    .image-content-banner .row {
        text-align: center;
    }
}

/* ==========================================================================
   Banners verticais (tipo "vertical", 9:16) — carrossel com rolagem lateral,
   proporção de tela de celular. Renderizado por
   renderBannerVerticalCarousel() em js/main.franquia.js.
   ========================================================================== */
.banner-vertical-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem 1rem;
}

.banner-vertical-scroll::-webkit-scrollbar {
    height: 8px;
}

.banner-vertical-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 999px;
    opacity: 0.5;
}

.banner-vertical-card {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 220px;
    aspect-ratio: 9 / 16;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
    transition: transform 0.2s ease;
}

.banner-vertical-card:hover {
    transform: translateY(-4px);
}

.banner-vertical-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-vertical-card__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .banner-vertical-card {
        width: 170px;
    }
}

/* ==========================================================================
   Banner largo (tipo "horizontal", 16:9) — topo/meio de página, empilhado
   em coluna única. Renderizado por renderBannerWideStack() em
   js/main.franquia.js.
   ========================================================================== */
.banner-wide-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.banner-wide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.banner-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-wide__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}

.banner-wide__title {
    color: #fff;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.banner-wide__subtitle {
    color: #fff;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.banner-wide__actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .banner-wide {
        aspect-ratio: 4 / 3;
    }
    .banner-wide__overlay {
        padding: 1rem;
    }
    .banner-wide__title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Carrossel de banners quadrados (tipo "quadrado", 1:1) — destaques/marcas
   em rolagem lateral. Renderizado por renderBannerQuadradoCarousel() em
   js/main.franquia.js.
   ========================================================================== */
.banner-quadrado-header {
    margin-bottom: 1rem;
}

.banner-quadrado-header__title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.banner-quadrado-header__subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

.banner-quadrado-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem 1rem;
}

.banner-quadrado-scroll::-webkit-scrollbar {
    height: 8px;
}

.banner-quadrado-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 999px;
    opacity: 0.5;
}

.banner-quadrado-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-quadrado-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-quadrado-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 575.98px) {
    .banner-quadrado-card {
        width: 120px;
    }
}
