/**
 * Shortcodes Styles
 * @package Flavor_Flavor
 */

/* Quick Summary */
.bj88-quick-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--color-primary, #C0CA33);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}
.bj88-quick-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.bj88-quick-summary li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.bj88-quick-summary svg {
    color: var(--color-primary, #C0CA33);
    flex-shrink: 0;
}

/* Trust Badges */
.bj88-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}
.bj88-trust-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
.bj88-trust-badges .badge-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.bj88-trust-badges .badge-primary {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}

/* Features Grid */
.bj88-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.bj88-features-grid .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.bj88-features-grid .feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.bj88-features-grid .icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.bj88-features-grid .text {
    font-weight: 500;
    font-size: 14px;
}

/* Rating Bars */
.bj88-rating-bars {
    margin: 24px 0;
}
.bj88-rating-bars .rating-bar-item {
    margin-bottom: 16px;
}
.bj88-rating-bars .bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}
.bj88-rating-bars .name {
    font-weight: 500;
}
.bj88-rating-bars .score {
    color: #666;
}
.bj88-rating-bars .bar-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.bj88-rating-bars .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary, #C0CA33), #8BC34A);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Bonus Breakdown */
.bj88-bonus-breakdown {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.bj88-bonus-breakdown table {
    width: 100%;
    border-collapse: collapse;
}
.bj88-bonus-breakdown th,
.bj88-bonus-breakdown td {
    padding: 14px 18px;
    text-align: left;
}
.bj88-bonus-breakdown th {
    background: #f8f9fa;
    font-weight: 600;
    width: 40%;
}
.bj88-bonus-breakdown tr:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

/* Step Guide */
.bj88-step-guide {
    margin: 24px 0;
    counter-reset: step;
}
.bj88-step-guide .step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}
.bj88-step-guide .step-item:last-child {
    border-bottom: none;
}
.bj88-step-guide .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary, #C0CA33);
    color: #1a1a2e;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}
.bj88-step-guide .step-text {
    padding-top: 4px;
}

/* Pros & Cons */
.bj88-pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.bj88-pros-cons .pros,
.bj88-pros-cons .cons {
    padding: 20px;
    border-radius: 12px;
}
.bj88-pros-cons .pros {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}
.bj88-pros-cons .cons {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}
.bj88-pros-cons h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 16px;
}
.bj88-pros-cons .pros h4 { color: #2e7d32; }
.bj88-pros-cons .cons h4 { color: #c62828; }
.bj88-pros-cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bj88-pros-cons li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}
.bj88-pros-cons .pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
}
.bj88-pros-cons .cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #c62828;
}

/* Payment Table */
.bj88-payment-table {
    margin: 24px 0;
    overflow-x: auto;
}
.bj88-payment-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}
.bj88-payment-table th,
.bj88-payment-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}
.bj88-payment-table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}
.bj88-payment-table tr:hover td {
    background: #f8f9fa;
}

/* FAQ Accordion */
.bj88-faq-accordion {
    margin: 24px 0;
}
.bj88-faq-accordion .faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.bj88-faq-accordion .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    transition: background 0.3s ease;
}
.bj88-faq-accordion .faq-question:hover {
    background: #f8f9fa;
}
.bj88-faq-accordion .faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.bj88-faq-accordion .faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.bj88-faq-accordion .faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.7;
}
.bj88-faq-accordion .faq-item.active .faq-answer {
    display: block;
}

/* CTA Button */
.bj88-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.bj88-cta-btn.btn-primary {
    background: linear-gradient(135deg, var(--color-primary, #C0CA33), #8BC34A);
    color: #1a1a2e;
}
.bj88-cta-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 202, 51, 0.4);
}
.bj88-cta-btn.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(192, 202, 51, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(192, 202, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 202, 51, 0); }
}

/* Alert Box */
.bj88-alert {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid;
}
.bj88-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.bj88-alert.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}
.bj88-alert.alert-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}
.bj88-alert.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}
.bj88-alert.alert-danger {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* Game Grid */
.bj88-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.bj88-game-grid .game-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}
.bj88-game-grid .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.bj88-game-grid .game-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.bj88-game-grid .game-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}
.bj88-game-grid .game-provider {
    display: block;
    font-size: 12px;
    color: #666;
}
.bj88-game-grid .game-rtp {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* Comparison Table */
.bj88-comparison-table {
    margin: 24px 0;
    overflow-x: auto;
}
.bj88-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}
.bj88-comparison-table th,
.bj88-comparison-table td {
    padding: 12px 16px;
    text-align: center;
    border: 1px solid #e9ecef;
}
.bj88-comparison-table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}
.bj88-comparison-table tr:nth-child(even) td {
    background: #f8f9fa;
}

/* Live Badge */
.bj88-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #c62828;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
}
.bj88-live-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Casino Card */
.bj88-casino-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    margin: 16px 0;
}
.bj88-casino-card .casino-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}
.bj88-casino-card .badge-hot {
    background: #ff5722;
    color: #fff;
}
.bj88-casino-card .badge-new {
    background: #2196f3;
    color: #fff;
}
.bj88-casino-card .badge-top {
    background: var(--color-primary, #C0CA33);
    color: #1a1a2e;
}
.bj88-casino-card .casino-name {
    margin: 0 0 12px 0;
    font-size: 20px;
}
.bj88-casino-card .casino-rating {
    margin-bottom: 8px;
}
.bj88-casino-card .stars {
    color: #ffc107;
    letter-spacing: 2px;
}
.bj88-casino-card .casino-bonus {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Ranking Table */
.bj88-ranking-table {
    margin: 24px 0;
    overflow-x: auto;
}
.bj88-ranking-table table {
    width: 100%;
    border-collapse: collapse;
}
.bj88-ranking-table th,
.bj88-ranking-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}
.bj88-ranking-table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}
.bj88-ranking-table td:first-child {
    font-weight: 700;
    color: var(--color-primary, #C0CA33);
}

/* Countdown */
.bj88-countdown {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border-radius: 12px;
    margin: 24px 0;
}
.bj88-countdown .countdown-text {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bj88-countdown .countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.bj88-countdown .countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bj88-countdown .countdown-unit span:first-child {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary, #C0CA33);
}
.bj88-countdown .countdown-unit small {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
}

/* Rating Circle */
.bj88-rating-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.bj88-rating-circle .circle-progress {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary, #C0CA33) calc(var(--progress) * 1%), #e9ecef 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bj88-rating-circle .circle-progress::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
}
.bj88-rating-circle .score {
    position: relative;
    font-size: 20px;
    font-weight: 700;
}
.bj88-rating-circle .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .bj88-quick-summary ul {
        grid-template-columns: 1fr;
    }
    .bj88-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bj88-pros-cons {
        grid-template-columns: 1fr;
    }
    .bj88-countdown .countdown-unit span:first-child {
        font-size: 24px;
    }

    /* Tabela de detalhes do bônus mobile */
    .bj88-bonus-breakdown {
        overflow-x: auto;
    }
    .bj88-bonus-breakdown table {
        min-width: 300px;
    }
    .bj88-bonus-breakdown th,
    .bj88-bonus-breakdown td {
        padding: 10px 12px;
        font-size: 14px;
    }
    .bj88-bonus-breakdown th {
        width: auto;
        min-width: 100px;
    }

    /* Card de jogo mobile */
    .bj88-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .bj88-game-grid .game-card {
        padding: 12px;
    }
    .bj88-game-grid .game-icon {
        font-size: 32px;
    }
    .bj88-game-grid .game-name {
        font-size: 12px;
    }
    .bj88-game-grid .game-provider {
        font-size: 10px;
    }

    /* Tabela de pagamento mobile */
    .bj88-payment-table th,
    .bj88-payment-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    /* Barras de avaliação mobile */
    .bj88-rating-bars .bar-label {
        font-size: 13px;
    }

    /* FAQ mobile */
    .bj88-faq-accordion .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    .bj88-faq-accordion .faq-answer {
        padding: 0 16px 16px;
        font-size: 14px;
    }

    /* Botão CTA mobile */
    .bj88-cta-btn {
        width: 100%;
        padding: 16px 24px;
    }

    /* Alerta mobile */
    .bj88-alert {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Guia de passos mobile */
    .bj88-step-guide .step-item {
        gap: 12px;
        padding: 12px 0;
    }
    .bj88-step-guide .step-num {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .bj88-step-guide .step-text {
        font-size: 14px;
    }

    /* Selos de confiança mobile */
    .bj88-trust-badges {
        justify-content: center;
    }
    .bj88-trust-badges .badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Card de casino mobile */
    .bj88-casino-card {
        padding: 16px;
    }
    .bj88-casino-card .casino-name {
        font-size: 18px;
    }

    /* Tabela de ranking mobile */
    .bj88-ranking-table th,
    .bj88-ranking-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Tabela de comparação mobile */
    .bj88-comparison-table th,
    .bj88-comparison-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Otimização para telas menores */
    .bj88-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .bj88-features-grid .feature-item {
        padding: 14px 10px;
    }
    .bj88-features-grid .icon {
        font-size: 24px;
    }
    .bj88-features-grid .text {
        font-size: 12px;
    }

    .bj88-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .bj88-game-grid .game-card {
        padding: 10px;
    }
    .bj88-game-grid .game-icon {
        font-size: 28px;
        margin-bottom: 4px;
    }
    .bj88-game-grid .game-name {
        font-size: 11px;
        line-height: 1.2;
    }
    .bj88-game-grid .game-rtp {
        font-size: 10px;
        padding: 2px 6px;
    }

    .bj88-countdown .countdown-timer {
        gap: 10px;
    }
    .bj88-countdown .countdown-unit span:first-child {
        font-size: 20px;
    }
    .bj88-countdown .countdown-unit small {
        font-size: 10px;
    }

    .bj88-rating-circle .circle-progress {
        width: 60px;
        height: 60px;
    }
    .bj88-rating-circle .circle-progress::before {
        width: 48px;
        height: 48px;
    }
    .bj88-rating-circle .score {
        font-size: 16px;
    }
}
