/* Theme 2: Premium Editorial & Futuristic Glassmorphic Stylesheet */

:root {
    --t2-bg: #0b0f19;
    --t2-card-bg: rgba(255, 255, 255, 0.03);
    --t2-card-hover-bg: rgba(255, 255, 255, 0.06);
    --t2-border: rgba(255, 255, 255, 0.08);
    --t2-border-hover: rgba(255, 255, 255, 0.2);
    --t2-text: #f1f5f9;
    --t2-muted: #94a3b8;
    --t2-glow-amazon: rgba(255, 153, 0, 0.2);
    --t2-glow-mercadolivre: rgba(0, 161, 228, 0.2);
    --t2-glow-shopee: rgba(238, 77, 45, 0.2);
    --t2-glow-magalu: rgba(0, 134, 255, 0.2);
}

body.theme-2 {
    background-color: var(--t2-bg) !important;
    color: var(--t2-text) !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(46, 112, 118, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(33, 86, 91, 0.12) 0%, transparent 40%);
    background-attachment: fixed;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.theme-2 .text-muted {
    color: var(--t2-muted) !important;
}

body.theme-2 a {
    color: var(--brand, #2E7076);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-2 a:hover {
    color: var(--brand-dark, #21565b);
}

/* Floating Glassmorphic Header */
body.theme-2 .site-header {
    background: rgba(11, 15, 25, 0.7) !important;
    border-bottom: 1px solid var(--t2-border) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    margin: 12px 16px 0;
    border-radius: 16px;
    top: 12px;
    z-index: 1050;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.theme-2 .navbar-brand {
    color: #ffffff !important;
    font-weight: 900;
    letter-spacing: -0.03em;
}

body.theme-2 .navbar-brand img {
    filter: brightness(0) invert(1);
    height: 80px !important;
    width: auto !important;
}

body.theme-2 .category-menu a,
body.theme-2 .category-dropdown > a {
    color: var(--t2-text) !important;
    opacity: 0.85;
    font-weight: 600;
}

body.theme-2 .category-menu a:hover,
body.theme-2 .category-dropdown > a:hover {
    color: var(--brand, #2E7076) !important;
    opacity: 1;
}

body.theme-2 .category-dropdown .dropdown-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid var(--t2-border) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

body.theme-2 .category-dropdown .dropdown-item {
    color: var(--t2-text) !important;
}

body.theme-2 .category-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--brand, #2E7076) !important;
}

body.theme-2 .site-search input,
body.theme-2 .hero-search input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--t2-border) !important;
    color: #ffffff !important;
    border-radius: 12px;
}

body.theme-2 .site-search input:focus,
body.theme-2 .hero-search input:focus {
    box-shadow: 0 0 0 3px rgba(46, 112, 118, 0.25) !important;
    border-color: var(--brand, #2E7076) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Premium Futuristic Hero Area */
body.theme-2 .hero {
    border-bottom: none !important;
    padding: 120px 0 80px !important;
    background: none !important;
    position: relative;
    overflow: hidden;
}

body.theme-2 .hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 70%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 112, 118, 0.18) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

body.theme-2 .hero-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.35;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
    pointer-events: none;
    z-index: 0;
}

body.theme-2 .hero .container {
    position: relative;
    z-index: 2;
}

body.theme-2 .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.05 !important;
    color: #ffffff !important;
}

body.theme-2 .hero .lead {
    color: var(--t2-muted) !important;
    font-weight: 400;
}

/* Card of Posts Grid (Modern Glassmorphic Cards) */
body.theme-2 .post-card {
    background: var(--t2-card-bg) !important;
    border: 1px solid var(--t2-border) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.theme-2 .post-card:hover {
    transform: translateY(-6px) !important;
    background: var(--t2-card-hover-bg) !important;
    border-color: var(--t2-border-hover) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 16px rgba(46, 112, 118, 0.1) !important;
}

body.theme-2 .post-cover {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid var(--t2-border);
}

body.theme-2 .post-cover img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent !important;
}

body.theme-2 .post-card:hover .post-cover img {
    transform: scale(1.05);
}

body.theme-2 .post-card-body {
    padding: 24px !important;
}

body.theme-2 .post-meta {
    color: var(--brand, #2E7076) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em;
}

body.theme-2 .post-card h3 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 8px;
    margin-bottom: 12px;
}

body.theme-2 .post-card p {
    color: var(--t2-muted) !important;
    font-size: 0.94rem;
    line-height: 1.5;
}

/* Premium Single Guide Page */
body.theme-2 .article {
    padding-top: 60px !important;
}

body.theme-2 .article-head h1 {
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em;
}

body.theme-2 .article-head .post-meta {
    color: var(--brand, #2E7076) !important;
    font-size: 0.82rem !important;
}

body.theme-2 .back-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--t2-border);
    color: var(--t2-text) !important;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.theme-2 .back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--t2-border-hover);
    transform: translateX(-3px);
}

body.theme-2 .article-cover {
    border: 1px solid var(--t2-border) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 20px !important;
}

body.theme-2 .article-content {
    color: #e2e8f0 !important;
}

body.theme-2 .article-content h2 {
    color: #ffffff !important;
    font-weight: 800;
    margin-top: 48px;
    border-left: 4px solid var(--brand, #2E7076);
    padding-left: 14px;
}

/* Glassmorphic Embedding Boxes (Dentro do Texto) */
body.theme-2 .product-embed {
    background: var(--t2-card-bg) !important;
    border: 1px solid var(--t2-border) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

body.theme-2 .product-embed:hover {
    border-color: var(--t2-border-hover);
    background: var(--t2-card-hover-bg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.theme-2 .product-embed-image {
    background: rgba(255, 255, 255, 0.01) !important;
    border-right: 1px solid var(--t2-border) !important;
}

body.theme-2 .product-embed-image img {
    background: transparent !important;
}

body.theme-2 .product-embed h3 {
    color: #ffffff !important;
}

/* Gallery & Carousel */
body.theme-2 .products-gallery {
    background: var(--t2-card-bg) !important;
    border: 1px solid var(--t2-border) !important;
    border-radius: 16px !important;
}

body.theme-2 .gallery-product-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--t2-border) !important;
    color: var(--t2-text) !important;
}

body.theme-2 .gallery-product-card:hover {
    border-color: var(--brand, #2E7076) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

body.theme-2 .gallery-product-image {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid var(--t2-border) !important;
}

body.theme-2 .gallery-product-image img {
    background: transparent !important;
}

body.theme-2 .gallery-product-card small {
    color: var(--t2-muted) !important;
}

/* Glassmorphic Control Panel Offers Sidebar */
body.theme-2 .offers-box {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid var(--t2-border) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

body.theme-2 .offers-box h2 {
    color: #ffffff !important;
    font-weight: 800;
}

body.theme-2 .product-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--t2-border) !important;
    border-radius: 14px !important;
    color: var(--t2-text) !important;
    padding: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.theme-2 .product-card img,
body.theme-2 .product-placeholder {
    border: 1px solid var(--t2-border) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Neon glow hover by marketplace */
body.theme-2 .product-card[href*="amazon."]:hover,
body.theme-2 .gallery-product-card[href*="amazon."]:hover {
    border-color: #FF9900 !important;
    box-shadow: 0 0 12px var(--t2-glow-amazon) !important;
}
body.theme-2 .product-card[href*="mercadolivre."]:hover,
body.theme-2 .gallery-product-card[href*="mercadolivre."]:hover {
    border-color: #00A1E4 !important;
    box-shadow: 0 0 12px var(--t2-glow-mercadolivre) !important;
}
body.theme-2 .product-card[href*="shopee."]:hover,
body.theme-2 .gallery-product-card[href*="shopee."]:hover {
    border-color: #EE4D2D !important;
    box-shadow: 0 0 12px var(--t2-glow-shopee) !important;
}
body.theme-2 .product-card[href*="magazineluiza."]:hover,
body.theme-2 .product-card[href*="magalu."]:hover,
body.theme-2 .gallery-product-card[href*="magazineluiza."]:hover,
body.theme-2 .gallery-product-card[href*="magalu."]:hover {
    border-color: #0086FF !important;
    box-shadow: 0 0 12px var(--t2-glow-magalu) !important;
}

/* Minimalist Dark Footer */
body.theme-2 .footer {
    background: #070a10 !important;
    border-top: 1px solid var(--t2-border);
    color: var(--t2-muted) !important;
}

body.theme-2 .footer a {
    color: var(--t2-muted) !important;
}

body.theme-2 .footer a:hover {
    color: #ffffff !important;
}

body.theme-2 .footer-divider {
    border-color: var(--t2-border) !important;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    body.theme-2 .site-header {
        margin: 8px 8px 0;
        border-radius: 12px;
    }
    
    body.theme-2 .hero {
        padding-top: 90px !important;
        padding-bottom: 50px !important;
    }
    
    body.theme-2 .hero-bg-wrapper {
        width: 100%;
        opacity: 0.15;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0));
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0));
    }
    
    body.theme-2 .product-embed {
        grid-template-columns: 1fr;
    }
    
    body.theme-2 .product-embed-image {
        border-right: none !important;
        border-bottom: 1px solid var(--t2-border) !important;
    }
    
    /* Mobile full density space compression */
    body.theme-2 .post-card-body {
        padding: 16px !important;
    }
    
    body.theme-2 .offers-box {
        padding: 16px !important;
    }
}
