/* ============================================================
   Popup Inicial - Frontend Styles
   Overlay escuro, conteúdo centralizado, responsivo
   ============================================================ */

.popup-inicial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
    box-sizing: border-box;
}

.popup-inicial-overlay.popup-active {
    opacity: 1;
    visibility: visible;
}

/* Fundo escuro semi-transparente */
.popup-inicial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

/* Container do conteúdo */
.popup-inicial-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.popup-inicial-overlay.popup-active .popup-inicial-container {
    transform: translateY(0) scale(1);
}

/* Botão fechar */
.popup-inicial-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding: 0;
    margin: 0;
    outline: none;
}

.popup-inicial-close:hover,
.popup-inicial-close:focus {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

.popup-inicial-close svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Título */
.popup-inicial-header {
    padding: 24px 24px 0;
}

.popup-inicial-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: center;
}

/* Corpo do popup */
.popup-inicial-body {
    padding: 24px;
}

/* Imagem */
.popup-inicial-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
}

/* Shortcode */
.popup-inicial-shortcode {
    width: 100%;
}

/* Mensagem vazia */
.popup-inicial-empty {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin: 20px 0;
}

.popup-inicial-empty a {
    color: #2271b1;
    text-decoration: underline;
}

/* ============================================================
   SCROLLBAR CUSTOMIZADA
   ============================================================ */
.popup-inicial-container::-webkit-scrollbar {
    width: 8px;
}

.popup-inicial-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0 16px 16px 0;
}

.popup-inicial-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.popup-inicial-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ============================================================
   RESPONSIVO - TABLET
   ============================================================ */
@media (max-width: 768px) {
    .popup-inicial-overlay {
        padding: 16px;
    }

    .popup-inicial-container {
        border-radius: 14px;
        max-width: 100%;
    }

    .popup-inicial-header {
        padding: 20px 20px 0;
    }

    .popup-inicial-title {
        font-size: 20px;
    }

    .popup-inicial-body {
        padding: 20px;
    }

    .popup-inicial-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .popup-inicial-close svg {
        width: 18px;
        height: 18px;
    }

    .popup-inicial-image {
        max-height: 65vh;
        border-radius: 10px;
    }
}

/* ============================================================
   RESPONSIVO - MOBILE
   ============================================================ */
@media (max-width: 480px) {
    .popup-inicial-overlay {
        padding: 12px;
    }

    .popup-inicial-container {
        border-radius: 12px;
    }

    .popup-inicial-header {
        padding: 16px 16px 0;
    }

    .popup-inicial-title {
        font-size: 18px;
    }

    .popup-inicial-body {
        padding: 16px;
    }

    .popup-inicial-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    .popup-inicial-close svg {
        width: 16px;
        height: 16px;
    }

    .popup-inicial-image {
        max-height: 60vh;
        border-radius: 8px;
    }
}
