/**
 * GCP Banner Styles
 * Estilização para banners do plugin GCP Slider
 */

/* ==== BASE BANNER STYLES ==== */
.gcp-banner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
}

.gcp-banner * {
    box-sizing: border-box;
}

.gcp-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gcp-banner-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.gcp-banner-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #E5E5E5;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 100%;
    height: 265px;
    max-width: none;
    display: flex;
    align-items: end;
    margin: 0;
    padding: 0;
}

.gcp-banner-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #D1D5DB;
}

/* ==== IMAGE CONTAINER ==== */
.gcp-banner-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gcp-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gcp-banner-bg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.gcp-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent !important;
    z-index: 2;
}

/* ==== DISCOUNT TAG ==== */
.gcp-banner-discount-tag {
    position: absolute;
    z-index: 10;
    background: linear-gradient(135deg, #F3AA32 0%, #f33232 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Posições da Discount Tag */
.gcp-discount-top-left {
    top: 16px;
    left: 16px;
}

.gcp-discount-top-center {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.gcp-discount-top-right {
    top: 16px;
    right: 16px;
}

.gcp-discount-bottom-left {
    bottom: 16px;
    left: 16px;
}

.gcp-discount-bottom-center {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.gcp-discount-bottom-right {
    bottom: 16px;
    right: 16px;
}

/* ==== CONTENT CONTAINER ==== */
.gcp-banner-content {
    position: relative;
    z-index: 5;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

/* ==== ELEMENTOS POSICIONÁVEIS ==== */
.gcp-banner-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: white !important;
}

.gcp-banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ==== LAYOUT FIXO ==== */
/* Lado Esquerdo - Elementos empilhados */
.gcp-banner-left-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
}

.gcp-banner-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFD700 !important;
    margin: 0;
    text-shadow: none;
    opacity: 0.9;
}

/* Lado Direito - Elementos em linha */
.gcp-banner-right-side {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    text-align: right;
}

/* ==== AGRUPAMENTO DE ELEMENTOS ==== */
/* Para elementos que ficam juntos na mesma célula */
.gcp-element-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: inherit;
}

.gcp-element-group.horizontal {
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

/* ==== ESTILOS ESPECÍFICOS PARA REFERÊNCIA ==== */
/* Estilo similar ao banner Lies of P */
.gcp-banner-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Preços em linha horizontal */
.gcp-banner-prices.horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Discount tag inline com outros elementos */
.gcp-banner-discount-inline {
    position: static;
    display: inline-flex;
    background: linear-gradient(135deg, #F3AA32 0%, #f33232 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    align-self: center;
}

/* ==== CATEGORIA TAG (KICKER) ==== */
.gcp-banner-category {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ==== LAYOUT CONTAINER PARA LADO ESQUERDO ==== */
.gcp-left-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

/* ==== LAYOUT CONTAINER PARA LADO DIREITO ==== */
.gcp-right-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: nowrap;
}

/* ==== PRICES ==== */
.gcp-banner-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin: 0;
    text-align: right;
}

/* Linha inferior: Desconto + Preço promocional */
.gcp-banner-bottom-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.gcp-banner-original-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: line-through;
    text-shadow: none;
    line-height: 1.2;
    margin: 0;
}

.gcp-banner-sale-price {
    font-size: 24px;
    font-weight: 700;
    color: #F3AA32;
    text-shadow: none;
    line-height: 1.2;
    margin: 0;
}

/* ==== CTA BUTTON ==== */
.gcp-banner-cta-container {
    margin: 0;
}

.gcp-banner-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #F3AA32;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    text-align: center;
    height: fit-content;
}

.gcp-banner-cta-button::before {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03L21.7 4H5.21l-.94-2H1zm16 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.gcp-banner-cta-button:hover {
    background: #F3AA32;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* ==== DESIGN MELHORADO ==== */
.gcp-banner-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gcp-banner-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Overlay removido - imagem sem sobreposição */
.gcp-banner-overlay {
    background: transparent !important;
}

/* ==== THEME VARIATIONS ==== */
.gcp-banner-theme-dark .gcp-banner-overlay {
    background: transparent !important;
}

.gcp-banner.gcp-banner-theme-dark .gcp-banner-category {
    color: #FFD700 !important;
    text-shadow: none;
}

.gcp-banner-theme-dark .gcp-banner-category {
    color: #FFD700 !important;
    text-shadow: none;
}

.gcp-banner.gcp-banner-theme-dark .gcp-banner-title {
    color: white !important;
    text-shadow: none;
    font-weight: 700;
}

.gcp-banner-theme-dark .gcp-banner-title {
    color: white !important;
    text-shadow: none;
    font-weight: 700;
}

.gcp-banner.gcp-banner-theme-dark .gcp-banner-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none;
}

.gcp-banner-theme-dark .gcp-banner-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none;
}

.gcp-banner.gcp-banner-theme-dark .gcp-banner-original-price {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: none;
}

.gcp-banner-theme-dark .gcp-banner-original-price {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: none;
}



/* Overlay removido - imagem sem sobreposição */
.gcp-banner-theme-light .gcp-banner-overlay {
    background: transparent !important;
}

.gcp-banner-theme-light .gcp-banner-category {
    color: #D97706;
    text-shadow: none;
}

.gcp-banner-theme-light .gcp-banner-title {
    color: #1F2937;
    text-shadow: none;
}

.gcp-banner-theme-light .gcp-banner-subtitle {
    color: #4B5563;
    text-shadow: none;
}

.gcp-banner-theme-light .gcp-banner-original-price {
    color: rgba(0, 0, 0, 0.6);
    text-shadow: none;
}

.gcp-banner-theme-light .gcp-banner-sale-price {
    text-shadow: none;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1280px) {
    .gcp-banner-card {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 1250 / 265;
    }
}

@media (max-width: 768px) {
    .gcp-banner-content {
        padding: 20px 16px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto auto;
        gap: 12px;
    }
    
    .gcp-element-left {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }
    
    .gcp-element-right {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .gcp-banner-title {
        font-size: 20px;
    }
    
    .gcp-banner-subtitle {
        font-size: 14px;
    }
    
    .gcp-banner-sale-price {
        font-size: 20px;
    }
    
    .gcp-banner-original-price {
        font-size: 14px;
    }
    
    .gcp-banner-cta-button {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 120px;
    }
    
    .gcp-banner-discount-inline {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .gcp-banner {
        margin: 0;
    }
    
    .gcp-banner-content {
        padding: 16px 20px;
        min-height: 140px;
    }
    
    .gcp-banner-title {
        font-size: 20px;
    }
    
    .gcp-banner-subtitle {
        font-size: 14px;
    }
    
    .gcp-banner-prices {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .gcp-banner-sale-price {
        font-size: 20px;
    }
    
    .gcp-banner-original-price {
        font-size: 14px;
    }
}

/* ==== ERROR STYLES ==== */
.gcp-error {
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 6px;
    color: #DC2626;
    font-size: 14px;
    margin: 16px 0;
}

/* ==== ACCESSIBILITY ==== */
/* Mostrar foco só para navegação por teclado; ocultar no clique (mouse/touch) */
.gcp-banner-link:focus,
.gcp-banner-cta-button:focus {
    outline: none;
}
.gcp-banner-link:focus-visible,
.gcp-banner-cta-button:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}
/* Remover highlight azul em mobile */
.gcp-banner-link,
.gcp-banner-cta-button {
    -webkit-tap-highlight-color: transparent;
}

/* ==== HIGH CONTRAST MODE ==== */
@media (prefers-contrast: high) {
    .gcp-banner-card {
        border-width: 3px;
        border-color: #000;
    }
    
    .gcp-banner-overlay {
        background: transparent !important;
    }
    
    .gcp-banner-title,
    .gcp-banner-subtitle {
        color: white;
        text-shadow: none;
    }
}

/* ==== REDUCED MOTION ==== */
@media (prefers-reduced-motion: reduce) {
    .gcp-banner-link,
    .gcp-banner-card,
    .gcp-banner-cta-button {
        transition: none;
    }
    
    .gcp-banner-link:hover {
        transform: none;
    }
    
    .gcp-banner-cta-button:hover {
        transform: none;
    }
}
