/* ============================================================
   MyFrost Components CSS — widgets, blog, breadcrumbs, botões
   ============================================================ */

/* ---------- Botão flutuante do WhatsApp ---------- */
.myfrost-whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9990;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    transition: transform .2s ease, box-shadow .2s ease;
}
.myfrost-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, .5);
}

/* ---------- Botão voltar ao topo ---------- */
.myfrost-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9989;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background-color: var(--brand-pink, #E10098);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    box-shadow: 0 6px 18px rgba(225, 0, 152, .35);
}
.myfrost-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.myfrost-back-to-top:hover {
    filter: brightness(1.1);
}

/* ---------- Barra superior ---------- */
.myfrost-topbar a {
    text-decoration: underline;
    color: inherit;
}

/* ---------- Breadcrumbs ---------- */
.myfrost-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.myfrost-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

/* ---------- Menu dropdown (submenu) ---------- */
.myfrost-menu-item-parent {
    position: relative;
}
.myfrost-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .2s ease;
    z-index: 50;
}
.myfrost-menu-item-parent:hover .myfrost-submenu,
.myfrost-menu-item-parent:focus-within .myfrost-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.myfrost-submenu-link {
    border-radius: 10px;
}
.myfrost-mobile-menu .myfrost-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
}

/* ---------- Cards do blog ---------- */
.myfrost-post-card .wp-post-image {
    display: block;
}

/* ---------- Paginação ---------- */
.myfrost-pagination .nav-links,
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.myfrost-pagination .page-numbers,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
}
.myfrost-pagination .page-numbers:hover,
.pagination .page-numbers:hover {
    background: #fce7f3;
    color: var(--brand-pink, #E10098);
}
.myfrost-pagination .page-numbers.current,
.pagination .page-numbers.current {
    background: var(--brand-pink, #E10098);
    color: #fff;
}

/* ---------- Widgets ---------- */
.myfrost-widget {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}
.myfrost-widget .widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--brand-yellow, #FFD100);
    display: inline-block;
}
.myfrost-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.myfrost-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.myfrost-widget ul li:last-child {
    border-bottom: 0;
}
.myfrost-widget a {
    color: #374151;
    text-decoration: none;
    transition: color .15s ease;
}
.myfrost-widget a:hover {
    color: var(--brand-pink, #E10098);
}

/* Widget de posts recentes */
.myfrost-recent-post-link {
    display: flex;
    gap: 12px;
    align-items: center;
}
.myfrost-recent-post-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}
.myfrost-recent-post-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
}
.myfrost-recent-post-date {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Widget CTA */
.myfrost-cta-box {
    background: linear-gradient(135deg, var(--brand-pink, #E10098), #b8007c);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    color: #fff;
}
.myfrost-cta-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
}
.myfrost-cta-text {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    margin: 0 0 18px;
}
.myfrost-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-yellow, #FFD100);
    color: #111827;
    font-weight: 700;
    font-size: 14px;
    height: 44px;
    padding: 0 28px;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform .15s ease;
}
.myfrost-cta-btn:hover {
    transform: scale(1.05);
    color: #111827;
}

/* Widgets do rodapé */
.myfrost-footer-widget .footer-widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
}
.myfrost-footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.myfrost-footer-widget ul li {
    padding: 5px 0;
}
.myfrost-footer-widget a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}
.myfrost-footer-widget a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Ícones sociais */
.myfrost-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .05);
    transition: all .2s ease;
}
.myfrost-site-footer .myfrost-social-icon {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.myfrost-social-icon:hover {
    background: var(--brand-pink, #E10098);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ---------- Comentários ---------- */
.myfrost-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.myfrost-comments .comment-body {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
}
.myfrost-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.myfrost-comments .comment-author .avatar {
    border-radius: 9999px;
}
.myfrost-comments .comment-metadata {
    font-size: 12px;
    color: #9ca3af;
    margin: 4px 0 10px;
}
.myfrost-comments .reply a {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-pink, #E10098);
}
.myfrost-comment-form input[type="text"],
.myfrost-comment-form input[type="email"],
.myfrost-comment-form input[type="url"] {
    width: 100%;
    height: 48px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    padding: 0 20px;
    font-size: 14px;
}
.myfrost-comment-form input:focus,
.myfrost-comment-form textarea:focus {
    border-color: var(--brand-pink, #E10098);
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 0, 152, .15);
}

/* ---------- Conteúdo tipográfico ---------- */
.myfrost-prose h2 {
    font-size: 1.75em;
    font-weight: 800;
    margin: 1.4em 0 .6em;
    color: #111827;
}
.myfrost-prose h3 {
    font-size: 1.35em;
    font-weight: 700;
    margin: 1.2em 0 .5em;
    color: #111827;
}
.myfrost-prose p {
    margin: 0 0 1.1em;
    line-height: 1.75;
}
.myfrost-prose ul,
.myfrost-prose ol {
    margin: 0 0 1.1em 1.4em;
}
.myfrost-prose li {
    margin-bottom: .4em;
}
.myfrost-prose img {
    border-radius: 16px;
}
.myfrost-prose blockquote {
    border-left: 4px solid var(--brand-pink, #E10098);
    background: #fdf2f8;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 1.4em 0;
    font-style: italic;
}
.myfrost-prose a {
    color: var(--brand-pink, #E10098);
    text-decoration: underline;
}

/* ---------- Animações de entrada ---------- */
.myfrost-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.myfrost-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
body.no-animations .myfrost-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ---------- Acessibilidade ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
    .myfrost-whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }
    .myfrost-back-to-top {
        right: 18px;
        bottom: 80px;
    }
}


/* =========================================================
 * MyFrost 4.0 — Recursos estilo Porto
 * ======================================================= */

/* ----- Header transparente ----- */
.myfrost-header-transparent {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.myfrost-header-transparent.myfrost-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
    backdrop-filter: blur(4px) !important;
}

/* ----- Header shrink ao rolar ----- */
.myfrost-header-shrink .h-28 { transition: height .3s ease; }
.myfrost-header-shrink.myfrost-scrolled .h-28 { height: 5rem; }
.myfrost-header-shrink.myfrost-scrolled img { transition: all .3s ease; transform: scale(.88); }

/* ----- Header tipo 2 (logo central) ----- */
.myfrost-header-type2 .myfrost-nav a { font-weight: 600; }

/* ----- Header tipo 4 (minimal): menu mobile em todas as telas ----- */
.myfrost-header-type-type4 .myfrost-mobile-menu.open { display: block; }

/* ----- Barra de busca do header ----- */
.myfrost-search-bar.open { display: block; }

/* ----- Page Title Bar (estilo Porto) ----- */
.myfrost-ptb { padding: 2.5rem 0; }
.myfrost-ptb-title { font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.2; }
.myfrost-ptb-breadcrumbs { margin-top: .5rem; font-size: .875rem; opacity: .85; }
.myfrost-ptb-breadcrumbs a { text-decoration: none; color: inherit; }
.myfrost-ptb-breadcrumbs a:hover { text-decoration: underline; }
.myfrost-ptb-breadcrumbs .sep { margin: 0 .5rem; opacity: .5; }
.myfrost-ptb-align-center { text-align: center; }
.myfrost-ptb-clean { background: #f8fafc; border-bottom: 1px solid #e2e8f0; color: #0f172a; }
.myfrost-ptb-colored { background: var(--brand-pink, #E10098); color: #fff; }
.myfrost-ptb-gradient { background: linear-gradient(120deg, var(--brand-pink, #E10098), var(--brand-blue, #00AEEF)); color: #fff; }
.myfrost-ptb-image { background-size: cover; background-position: center; position: relative; color: #fff; }
.myfrost-ptb-image::before { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.myfrost-ptb-image .container { position: relative; z-index: 1; }

/* ----- Loading overlay ----- */
.myfrost-loading-overlay {
    position: fixed; inset: 0; z-index: 9999; background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}
.myfrost-loading-overlay.is-hidden { opacity: 0; visibility: hidden; }
.myfrost-loading-spinner {
    width: 48px; height: 48px; border-radius: 9999px;
    border: 4px solid #f1f5f9; border-top-color: var(--brand-pink, #E10098);
    animation: myfrost-spin .8s linear infinite;
}
@keyframes myfrost-spin { to { transform: rotate(360deg); } }

/* ----- Botões com gradiente ----- */
.myfrost-btn-gradient .bg-brand-pink,
.myfrost-btn-gradient .elementor-button {
    background-image: linear-gradient(120deg, var(--brand-pink, #E10098), var(--brand-blue, #00AEEF)) !important;
}

/* ----- Títulos uppercase ----- */
.myfrost-headings-uppercase h1,
.myfrost-headings-uppercase h2 { text-transform: uppercase; }

/* ----- Hover lift nos cards ----- */
.myfrost-hover-lift .myfrost-post-card,
.myfrost-hover-lift .rounded-2xl.shadow-lg,
.myfrost-hover-lift .rounded-3xl.shadow-xl {
    transition: transform .3s ease, box-shadow .3s ease;
}
.myfrost-hover-lift .myfrost-post-card:hover,
.myfrost-hover-lift .rounded-2xl.shadow-lg:hover,
.myfrost-hover-lift .rounded-3xl.shadow-xl:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.2);
}

/* ----- Smooth scroll ----- */
.myfrost-smooth-scroll { scroll-behavior: smooth; }

/* ----- Esquema escuro (áreas do tema) ----- */
.myfrost-dark-scheme .myfrost-ptb-clean { background: #0f172a; border-color: #1e293b; color: #f1f5f9; }
.myfrost-dark-scheme .myfrost-blog-wrap,
.myfrost-dark-scheme .myfrost-archive-wrap { background: #0f172a; color: #e2e8f0; }
.myfrost-dark-scheme .myfrost-post-card { background: #1e293b; color: #e2e8f0; }
.myfrost-dark-scheme .myfrost-post-card h2 a, .myfrost-dark-scheme .myfrost-post-card h3 a { color: #f8fafc; }
.myfrost-dark-scheme .myfrost-footer-simple, .myfrost-dark-scheme .myfrost-footer-widgets { background: #020617; }

/* ----- Boxed: ajustes internos ----- */
.myfrost-layout-boxed .myfrost-whatsapp-float,
.myfrost-layout-boxed .myfrost-back-to-top { z-index: 60; }
