/* Realizah Custom Elements - Frontend Styles */

/* Base Element Styles */
.rce-element {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

.rce-element-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.rce-element-content {
    color: #555;
}

.rce-element-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.rce-element-content p {
    margin-bottom: 12px;
}

/* Style Variations */
.rce-style-default {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.rce-style-card {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.rce-style-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.rce-style-bordered {
    background: white;
    border: 2px solid #007cba;
    border-radius: 8px;
}

.rce-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.rce-style-gradient .rce-element-title {
    color: white;
}

.rce-style-gradient .rce-element-content {
    color: #f0f0f0;
}

.rce-style-gradient .rce-element-content h4 {
    color: white;
}

.rce-style-minimal {
    background: transparent;
    border: none;
    border-left: 4px solid #007cba;
    padding-left: 20px;
}

.rce-style-colorful {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
    border: none;
}

.rce-style-colorful .rce-element-title {
    color: white;
}

.rce-style-colorful .rce-element-content {
    color: #f0f0f0;
}

.rce-style-colorful .rce-element-content h4 {
    color: white;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Type-specific Styles */
.rce-type-faq .faq-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.rce-type-faq .faq-item h4 {
    margin-top: 0;
    color: #007cba;
    font-size: 1.1em;
}

.rce-type-faq .faq-item p {
    margin-bottom: 0;
}

.rce-type-regulamento h4 {
    background: #007cba;
    color: white;
    padding: 10px 15px;
    margin: 20px -20px 15px -20px;
    border-radius: 0;
    font-size: 1em;
}

.rce-type-regulamento p {
    margin-bottom: 15px;
    text-align: justify;
}

.rce-type-termos h4 {
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: #007cba;
}

.rce-type-promocao {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
}

.rce-type-promocao .rce-element-title {
    color: #ff6b6b;
}

.rce-type-promocao h4 {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
}

.rce-type-aviso {
    background: #fff8dc;
    border: 2px solid #ffa500;
    border-left: 6px solid #ffa500;
}

.rce-type-aviso .rce-element-title {
    color: #ff8c00;
}

.rce-type-aviso .rce-element-title:before {
    content: "⚠️ ";
    margin-right: 8px;
}

.rce-type-instrucoes .passo {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    border-left: 5px solid #4ecdc4;
}

.rce-type-instrucoes .passo h4 {
    margin-top: 0;
    color: #4ecdc4;
    font-size: 1.2em;
}

.rce-type-instrucoes .destaque {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.rce-type-instrucoes .destaque h4 {
    color: #856404;
    margin-top: 0;
}

.rce-type-instrucoes .destaque p {
    color: #856404;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rce-element {
        margin: 15px 0;
        padding: 15px;
    }
    
    .rce-element-title {
        font-size: 1.3em;
    }
    
    .rce-type-regulamento h4 {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .rce-type-instrucoes .passo {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .rce-element {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        margin: 10px 0 !important;
        padding: 15px !important;
    }
    
    .rce-element-title {
        color: #000 !important;
        font-size: 1.2em !important;
    }
    
    .rce-element-content {
        color: #000 !important;
    }
    
    .rce-element-content h4 {
        color: #000 !important;
        background: transparent !important;
    }
}

/* =================================
   PROMOÇÃO RICA STYLES
   ================================= */

.rce-promocao {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rce-promocao:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Header da promoção */
.rce-promocao-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.rce-promocao-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.rce-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.rce-promocao-info {
    position: relative;
    z-index: 2;
}

.rce-promocao-title {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.rce-promocao-text {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    opacity: 0.95;
}

/* Countdown */
.rce-countdown {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.rce-countdown-label {
    font-size: 1em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rce-countdown-timer {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Seções do conteúdo */
.rce-promocao > div:not(.rce-promocao-header) {
    padding: 25px 30px;
}

.rce-section-title {
    font-size: 1.5em;
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

/* Prêmio */
.rce-promocao-prize {
    background: #f8f9ff;
    border-left: 5px solid #667eea;
}

.rce-prize-title {
    font-size: 1.8em;
    color: #667eea;
    margin: 0 0 15px 0;
}

.rce-prize-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.rce-prize-value {
    font-size: 1.3em;
    color: #27ae60;
    margin-bottom: 20px;
}

.rce-prize-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rce-prize-features li {
    padding: 8px 0;
    color: #555;
    font-size: 1.1em;
}

/* Galeria */
.rce-promocao-gallery {
    background: #fafafa;
}

.rce-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.rce-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.rce-gallery-item:hover {
    transform: scale(1.05);
}

.rce-gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.rce-gallery-image:hover {
    opacity: 0.9;
}

.rce-gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #667eea;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
}

/* Vídeo */
.rce-promocao-video {
    background: #1a1a1a;
    color: white;
}

.rce-promocao-video .rce-section-title {
    color: white;
    border-bottom-color: #667eea;
}

.rce-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.rce-video-container iframe,
.rce-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Regras */
.rce-promocao-rules {
    border: 2px solid #e3f2fd;
    background: #f3f8ff;
}

.rce-rules-content {
    font-size: 1.1em;
    line-height: 1.7;
    color: #444;
}

/* Informações do sorteio */
.rce-promocao-draw {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    color: white;
}

.rce-promocao-draw .rce-section-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.rce-draw-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Redes sociais - específico para promoções */
.rce-promocao-social {
    background: #667eea;
    color: white;
    text-align: center;
}

.rce-promocao-social .rce-section-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.rce-promocao .rce-social-links {
    justify-content: center;
    flex-wrap: wrap;
}

.rce-promocao .rce-social-link {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.rce-promocao .rce-social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* CTA Buttons */
.rce-promocao-cta {
    background: #f8f9fa;
    text-align: center;
    padding: 35px 30px !important;
    border-top: 1px solid #eee;
}

.rce-cta-button,
.rce-cta-secondary {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px 10px 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.rce-cta-button {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.rce-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    color: white;
    text-decoration: none;
}

.rce-cta-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.rce-cta-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Versão compacta */
.rce-promocao.rce-compact {
    margin: 15px 0;
}

.rce-promocao.rce-compact .rce-promocao-header {
    padding: 20px;
}

.rce-promocao.rce-compact .rce-promocao-title {
    font-size: 1.8em;
}

.rce-promocao.rce-compact > div:not(.rce-promocao-header) {
    padding: 20px;
}

.rce-promocao.rce-compact .rce-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.rce-promocao.rce-compact .rce-gallery-item,
.rce-promocao.rce-compact .rce-gallery-image {
    height: 100px;
}

/* Mensagens de erro */
.rce-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c66;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

/* Promoção responsiva */
@media (max-width: 768px) {
    .rce-promocao {
        margin: 15px 5px;
    }
    
    .rce-promocao-header {
        padding: 20px 15px;
    }
    
    .rce-promocao-title {
        font-size: 1.8em;
    }
    
    .rce-promocao > div:not(.rce-promocao-header) {
        padding: 20px 15px;
    }
    
    .rce-countdown-timer {
        font-size: 1.5em;
    }
    
    .rce-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rce-gallery-item,
    .rce-gallery-image {
        height: 120px;
    }
    
    .rce-cta-button,
    .rce-cta-secondary {
        display: block;
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
} 