/*
Theme Name: AI News Shop
Theme URI: https://ainewspublisher.shop
Author: PremiumWP
Author URI: https://ainewspublisher.shop
Description: Um tema focado em vendas de licenças de software, otimizado para WooCommerce e LSM License Manager. 100% editável via Personalizar.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: ai-news-shop
Tags: e-commerce, software, saas, technology, blue, custom-colors, full-width-template
*/

/* ==========================================================================
   1. Variáveis CSS (Customizer irá sobrescrever isso)
   ========================================================================== */
:root {
    /* Fallback values - overwritten by Customizer */
    --primary-color: #2563eb;       /* Azul Tech */
    --secondary-color: #1e293b;     /* Cinza Escuro / Navy */
    --accent-color: #f59e0b;        /* Laranja para CTAs */
    --text-color: #334155;          /* Cinza Texto */
    
    --bg-color: #f8fafc;            /* Fundo Claro */
    --header-bg: #ffffff;           /* Fundo Header */
    --header-color: #1e293b;        /* Texto Header */
    --footer-bg: #0f172a;           /* Fundo Footer */
    --footer-color: #94a3b8;        /* Texto Footer */

    --border-radius: 8px;
    --container-width: 1200px;      /* Largura do Container */
    
    --font-headings: "Inter", sans-serif;
    --font-main: "Inter", sans-serif;
    
    --white: #ffffff;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle border */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.custom-logo {
    /* Height is flexible, width controlled by customizer via inline style mostly */
    height: auto; 
}

.site-title {
    margin: 0;
    font-family: var(--font-headings);
}

.site-title a {
    color: var(--header-color);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    color: var(--header-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* My Account Icon */
.my-account-link {
    color: var(--header-color);
    opacity: 0.7;
}
.my-account-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Social Icons in Header */
.social-links {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    align-items: center;
}
.social-icon {
    color: var(--header-color);
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}
.social-icon:hover {
    opacity: 1;
    color: var(--primary-color);
}
.social-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}


/* ==========================================================================
   4. Hero Section (Landing Page)
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f172a 100%);
    color: var(--white);
    padding: 100px 0 140px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content-left h1 {
    font-family: var(--font-headings);
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content-left p {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 40px;
    color: #94a3b8;
    max-width: 90%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    filter: brightness(110%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}
.btn-accent:hover {
    filter: brightness(110%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-micro-copy {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-micro-copy .dashicons { font-size: 14px; width: 14px; height: 14px; color: #4ade80; }

/* Mockup de Vidro (Glassmorphism) */
.glass-card-mockup {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.glass-card-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 20px; overflow: hidden; }
.progress-bar .fill { width: 60%; height: 100%; background: var(--primary-color); animation: load 2s infinite ease-in-out; }
@keyframes load { 0% { width: 0; } 50% { width: 80%; } 100% { width: 100%; } }


/* ==========================================================================
   5. Trust Section & Features
   ========================================================================== */
.trust-section {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
.trust-section p {
    margin: 0;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos-placeholder {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    opacity: 0.6;
    flex-wrap: wrap;
}
.logo-text { font-weight: 800; font-size: 1.2rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }


.features-section {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    padding: 40px 30px;
    background: var(--bg-color);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

.feature-icon-wrapper {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
}
.feature-icon-wrapper .dashicons {
    width: auto;
    height: auto;
    font-size: inherit;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   6. Pricing Tables (WooCommerce Loop Styled)
   ========================================================================== */
.pricing-section {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-desc { font-size: 1.1rem; color: #64748b; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Reset WooCommerce default styles */
.pricing-grid .product {
    background: var(--white);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    list-style: none !important;
}

.pricing-grid .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* DESTAQUE DO PLANO DO MEIO */
.pricing-grid .product:nth-child(2) {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}
.pricing-grid .product:nth-child(2)::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pricing-grid .product:nth-child(2) .button {
    background-color: var(--primary-color);
}
.pricing-grid .product:nth-child(1) .button,
.pricing-grid .product:nth-child(3) .button {
    background-color: var(--secondary-color);
}

.pricing-grid .product img { display: none; } /* Oculta thumbs na tabela */

.pricing-grid .product h2.woocommerce-loop-product__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-family: var(--font-headings);
}

.pricing-grid .product .price {
    font-size: 3rem;
    color: var(--secondary-color);
    font-weight: 800;
    display: block;
    margin-bottom: 20px;
    line-height: 1;
}

.pricing-grid .product .price del {
    font-size: 1rem;
    color: #94a3b8;
    display: block;
    font-weight: 400;
    margin-bottom: 5px;
    opacity: 0.7;
}
.pricing-grid .product .price ins { text-decoration: none; }

.pricing-grid .product .button {
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    width: 100%;
    margin-top: 30px;
    font-weight: 600;
    transition: background 0.3s;
}

.pricing-grid .product .button:hover {
    filter: brightness(110%);
}

.guarantee-badge {
    text-align: center;
    margin-top: 40px;
    color: #64748b;
    font-size: 0.9rem;
}
.guarantee-badge .dashicons { vertical-align: middle; margin-right: 5px; color: var(--accent-color); }

/* ==========================================================================
   7. FAQ Section & CTA
   ========================================================================== */
.faq-section {
    padding: 80px 0;
    background: #fff;
}
.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
}
details {
    background: var(--bg-color);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
}
summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-weight: 400;
    font-size: 1.5rem;
}
details[open] summary::after { content: "-"; }
details p { padding: 0 20px 20px; margin: 0; color: #64748b; line-height: 1.6; }


.cta-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; margin-bottom: 30px; }


/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-color);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-widgets h4.widget-title {
    color: var(--white); /* Usually titles in dark footer should be light/white */
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-widgets ul { list-style: none; padding: 0; }
.footer-widgets li { margin-bottom: 12px; }
.footer-widgets a { color: var(--footer-color); opacity: 0.8; }
.footer-widgets a:hover { color: var(--white); opacity: 1; }

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--footer-color);
    opacity: 0.7;
}

/* ==========================================================================
   9. WooCommerce Account / General Layouts
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 20px;
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background-color: #eff6ff; /* Could use a lighter shade of primary if available */
    color: var(--primary-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background-color: #f1f5f9;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content-left h1 { font-size: 2.5rem; }
    .hero-visual-right { display: none; } /* Mockup off on mobile */
    .hero-buttons { justify-content: center; }
    .hero-micro-copy { justify-content: center; }
    
    .pricing-grid .product:nth-child(2) { transform: scale(1); margin-top: 20px; margin-bottom: 20px; }
    
    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    .main-navigation ul { margin-top: 20px; flex-wrap: wrap; justify-content: center; gap: 15px; }
}