/* Componentes compartilhados — cacheável, evita CSS inline repetido */

/* Menu fixo do blog — fundo preto sólido */
body.blog-page .glass-nav {
    background-color: #0A0A0A;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(198, 169, 107, 0.25);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav-link.active {
    color: #C6A96B !important;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(198, 169, 107, 0.45);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #C6A96B, #d4af77);
    box-shadow: 0 0 10px rgba(198, 169, 107, 0.55);
}

/* Nav responsiva — páginas sem Tailwind CDN (ex: produto.php) */
.nav-desktop-only {
    display: none;
    align-items: center;
    gap: 2rem;
}
.nav-mobile-only {
    display: flex;
    align-items: center;
    gap: 1rem;
}
@media (min-width: 640px) {
    .nav-desktop-only { display: flex !important; }
    .nav-mobile-only { display: none !important; }
}

.london-title { letter-spacing: 0.03em; }
.london-pattern {
    background-color: #F5F5F5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C6A96B' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.luxury-cta {
    background: linear-gradient(135deg, #C6A96B 0%, #A88B4A 100%);
    color: #0A0A0A;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(198, 169, 107, 0.15);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}
.luxury-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 169, 107, 0.35);
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21A179;
    color: #fff;
    box-shadow: 0 12px 40px rgba(33, 161, 121, 0.18);
}
.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(33, 161, 121, 0.22);
}

/* Blog */
.blog-banner-overlay {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.15) 0%,
        rgba(10, 10, 10, 0.35) 45%,
        rgba(10, 10, 10, 0.6) 100%
    );
}
.blog-hero-title { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75), 0 0 60px rgba(0, 0, 0, 0.4); }
.post-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-completo-conteudo img,
.post-completo-conteudo iframe {
    width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}
.post-completo-conteudo blockquote {
    border-left: 4px solid #C6A96B;
    padding-left: 1rem;
    color: #4A4A4A;
    font-style: italic;
    margin: 1.5rem 0;
}
.post-completo-conteudo p { margin-bottom: 1.25rem; line-height: 1.8; }
.post-completo-conteudo h2,
.post-completo-conteudo h3,
.post-completo-conteudo h4 {
    font-family: 'Playfair Display', serif;
    color: #0F0F0F;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}
.post-completo-conteudo h2 { font-size: 1.75rem; }
.post-completo-conteudo h3 { font-size: 1.35rem; }
.post-completo-conteudo ul,
.post-completo-conteudo ol {
    margin: 1rem 0 1.5rem 1.25rem;
    line-height: 1.8;
}
.post-completo-conteudo li { margin-bottom: 0.5rem; }
.post-completo-conteudo a {
    color: #2F3E34;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.post-completo-conteudo a:hover { color: #C6A96B; }
.post-completo-conteudo strong { color: #0A0A0A; font-weight: 600; }

.blog-breadcrumb ol { list-style: none; padding: 0; margin: 0; }
.blog-post-hero img { box-shadow: 0 12px 40px rgba(10, 10, 10, 0.08); }

.blog-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.blog-share-bar__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6B6B6B;
}
.blog-share-bar__actions { display: flex; gap: 0.5rem; }
.blog-share-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #E8E1D9;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4A4A4A;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.blog-share-btn:hover,
.blog-share-btn--copied {
    border-color: #C6A96B;
    color: #C6A96B;
    background: rgba(198, 169, 107, 0.08);
}

.blog-article-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #0F0F0F 0%, #2F3E34 100%);
    border: 1px solid rgba(198, 169, 107, 0.35);
    border-radius: 0.25rem;
}
@media (min-width: 640px) {
    .blog-article-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.blog-article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

.blog-related-card { min-width: 0; }

.blog-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
}

/* Player YouTube do blog */
.yt-player__inner {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0A0A0A;
    box-shadow: 0 8px 32px rgba(10, 10, 10, 0.12);
}
.yt-player__facade,
.yt-player__frame-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.yt-player__facade {
    display: block;
    z-index: 2;
    padding: 0;
    border: none;
    cursor: pointer;
    background: #0A0A0A;
}
.yt-player__inner.is-playing .yt-player__facade {
    display: none !important;
}
.yt-player__frame-wrap {
    display: none;
    z-index: 1;
}
.yt-player__inner.is-playing .yt-player__frame-wrap {
    display: block;
}
.yt-player__facade:focus-visible {
    outline: 2px solid #C6A96B;
    outline-offset: 2px;
}
.yt-player__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yt-player__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.35);
    transition: background 0.25s ease;
}
.yt-player__facade:hover .yt-player__play,
.yt-player__facade:focus-visible .yt-player__play {
    background: rgba(10, 10, 10, 0.5);
}
.yt-player__play i {
    font-size: 4rem;
    color: #C6A96B;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.yt-player__iframe-shell {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.yt-player__iframe-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.yt-player__shield {
    position: absolute;
    z-index: 2;
    background: transparent;
}
.yt-player__shield--top {
    top: 0;
    left: 0;
    right: 72px;
    height: 52px;
}
.yt-player__shield--logo {
    top: 0;
    right: 0;
    width: 72px;
    height: 52px;
}
.yt-player__ended {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.92);
    text-align: center;
    padding: 1.5rem;
}
.yt-player__ended.is-visible {
    display: flex;
}

/* Avaliações */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.75rem;
    background: #FAFAFA;
    border: 1px solid #E8E1D9;
    border-radius: 0.75rem;
}
.reviews-score { text-align: center; min-width: 120px; }
.reviews-score-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1;
    color: #0A0A0A;
}
.reviews-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.reviews-bar-row {
    display: grid;
    grid-template-columns: 48px 1fr 32px;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #6B6B6B;
}
.reviews-bar-track {
    height: 8px;
    background: #E8E1D9;
    border-radius: 999px;
    overflow: hidden;
}
.reviews-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #C6A96B, #A88B4A);
    border-radius: 999px;
}
.review-item { padding: 1.5rem 0; border-bottom: 1px solid #E8E1D9; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.review-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #2F3E34, #1A1A1A);
    color: #C6A96B; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; flex-shrink: 0;
    border: 1px solid rgba(198, 169, 107, 0.4);
}
.review-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: #2F3E34;
    background: rgba(47, 62, 52, 0.08); padding: 2px 8px; border-radius: 4px; margin-left: 8px;
}
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: 12px; color: #999; }
.review-body { color: #4A4A4A; line-height: 1.7; font-size: 14px; padding-left: 3.75rem; }
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating-input input { display: none; }
.star-rating-input label { cursor: pointer; font-size: 28px; color: #D4CFC7; transition: color 0.15s ease; }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: #C6A96B; }
.mensagem.sucesso { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.mensagem.erro { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* Cards de artigos — home e blog */
.blog-article-card {
    min-width: 0;
}
.blog-article-card__title a {
    word-break: break-word;
    hyphens: auto;
}
.blog-article-card__excerpt {
    word-break: break-word;
}

@media (max-width: 640px) {
    .blog-search-form .flex.gap-3 {
        flex-direction: column;
    }
    .blog-search-form .luxury-cta {
        width: 100%;
        justify-content: center;
    }
    .blog-article-cta__actions {
        width: 100%;
    }
    .blog-article-cta__actions a {
        flex: 1;
        min-width: 0;
    }
    .blog-home-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    .blog-section-header {
        margin-bottom: 2rem !important;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .blog-section-kicker {
        letter-spacing: 0.18em !important;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    .blog-home-grid {
        gap: 1.25rem !important;
    }
    .blog-article-card__body {
        padding: 1.15rem 1.25rem 1.35rem !important;
    }
    .blog-article-card__title {
        font-size: 1.25rem !important;
        line-height: 1.35 !important;
    }
    .blog-article-card__excerpt {
        font-size: 0.8125rem;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem !important;
    }
    .blog-article-card__meta {
        font-size: 0.6875rem;
    }
    .blog-article-card__link {
        letter-spacing: 0.12em !important;
        padding-top: 0.85rem !important;
    }
    .blog-section-cta {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
    }
    .post-card .p-8 {
        padding: 1.25rem !important;
    }
    .post-card h2 {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 768px) {
    .whatsapp-float { right: 12px; bottom: 12px; width: 50px; height: 50px; }
    .blog-hero-title { font-size: 2rem !important; }
    .reviews-summary { grid-template-columns: 1fr; text-align: center; }
    .review-body { padding-left: 0; margin-top: 0.5rem; }
}
