/*
Theme Name: DSJ Reviews
Author: Felipe Moraes
Version: 2.0
*/

/* =========================================
   1. RESET & VARIÁVEIS
   ========================================= */
:root {
    --primary: #2c3e50;      /* Azul Escuro */
    --accent: #e67e22;       /* Laranja (Botões/Selos) */
    --accent-hover: #d35400;
    --text-main: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --success: #27ae60;
    --danger: #c0392b;
    --border-radius: 8px;
    --container-width: 920px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. LAYOUT GERAL
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 12px 0;
}

.logo {
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
}

/* Botões Globais */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: #fff;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
}
.btn-cta {
    background-color: var(--accent);
    width: 100%; /* Botão full width no mobile */
    font-size: 1.1rem;
}
.btn-cta:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.best-main-home {
    min-height: 100vh;
}

.home-hero {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .home-hero {
        text-align: center;
        align-items: center;
        row-gap: 20px;
        background-position: right;
    }
    
}

.home-hero p {
    font-size: 2em;
    max-width: 400px;
}

/* =========================================
   3. COMPONENTES DO REVIEW
   ========================================= */

/* Hero Section */
.hero {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 64px 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .hero {
        aspect-ratio: 21 / 9;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; 
    max-width: 800px;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

@media screen and (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-excerpt {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    margin-top: 24px;
    padding: 16px 24px;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-excerpt img {
    margin-top: 8px;
}

.hero-excerpt p {
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 0;
}

.review-intro {
    margin-top: 24px;
}

.review-intro p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.products-list {
    margin-top: 40px;
}

/* Cards de Produto (Top Pick e Extras) */
.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative; /* Necessário para o badge */
}

.product-card.top-pick {
    border: 2px solid var(--primary);
    overflow: visible; /* Permite que o badge fique fora do card */
}

.product-card-header {
    display: flex;
    flex-direction: column;
    padding: 12px 24px;
    background-color: var(--primary);
}

.product-card-header--top-pick {
    padding-left: 80px;
}

.product-card-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0;
}

/* .product-card-subtitle {
    color: white;
    opacity: 0.6;
} */

.product-card-body {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    padding: 24px;
}

.product-card-body-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* .product-card-body-column-box {
    border-width: 1px;
    border-style: solid;
    padding: 12px;
    border-radius: 8px;
} */

.product-card-body-column-box ul li {
    display: flex;
    column-gap: 6px;
}

.product-card-body-column-box ul li img {
    align-self: center;
}

.product-card-body-column-box._pros {
    border-color: var(--success);
}

.product-card-body-column-box._cons {
    border-color: var(--danger);
}

.wrapper-mobile {
    display: flex;
}

.wrapper-desktop {
    display: none;
}

@media screen and (min-width: 768px) {
    .product-card-body {
        flex-direction: row;
        column-gap: 24px;
    }

    .product-card-body-column {
        flex: 1;
    }

    .product-card-body-column-box {
        height: 100%;
    }

    .wrapper-mobile {
        display: none !important;
    }

    .wrapper-desktop {
        flex: 1;
        display: block !important;
    }

    .product-card-score {
        width: 100% !important;
    }

    .product-card-image {
        width: 100% !important;
    }
    
}

.product-card-body-column-result {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .product-card-body-column-result {
        text-align: left;
    }
    
}

.product-card-body-column-result h3 {
    margin-bottom: 12px;
}

.product-card-body-column-result p {
    font-size: 0.9em;
    color: var(--text-light);
}

.product-card-image, .product-card-score {
    width: 50%;
}

.product-card-score {
    display: flex;
    flex-direction: column;
    column-gap: 4px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-card-score-title {
    font-size: 1em;
    font-weight: bold;
}

.product-card-score-number {
    font-size: 2em;
    font-weight: bold;
}

.product-card-score-description {
    /* margin-top: 4px; */
    font-weight: 600;
}

.product-card-score-comments {
    font-size: 0.7em;
    /* margin-top: 4px; */
    opacity: 0.5;
}

.product-card-cta {
    margin-top: 16px;
}

.product-card-cta-oferta {
    font-size: 1em;
    color: var(--danger);
    font-weight: 600;
    text-align: center;
    margin: 8px 0;
}

.product-card-cta-oferta span {
    color: white;
    background-color: var(--danger);
    padding: 4px 6px;
    border-radius: 4px;
    text-wrap: nowrap;
}

.product-card-cta-tooltip {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    column-gap: 4px;
    font-size: 0.8em;
}

.product-card-cta-tooltip span {
    opacity: 0.8;
}

/* Badge / Ribbon (Selo #1) */
.badge-ribbon {
    position: absolute;
    top: -8px; left: 20px;
    background-color: var(--accent);
    color: #fff;
    padding: 10px 10px 15px;
    width: 45px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-content h3 a {
    font-size: 0.7em;
    line-height: 0.3em;
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 2.5em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 2em;
    margin-top: 24px;
    margin-bottom: 16px;
}

.article-content h4 {
    font-size: 1.5em;
    margin-top: 21px;
    margin-bottom: 14px;
    font-weight: normal;
}

.article-content h2, h3, h4 {
    color: var(--primary);
    line-height: 1.1em;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    margin: 20px 0;
    border-radius: var(--border-radius);
}

.article-content ul, ol {
    margin-left: 17px;
}

.article-content ul li, ol li {
    margin-bottom: 24px;
}

.article-content blockquote {
    border: 2px solid var(--success);
    border-radius: var(--border-radius);
    padding: 16px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
    background-color: #f0f0f0;
}

.article-content blockquote p {
    margin: 0;
}

.article-content blockquote p strong {
    display: block;
    margin-top: 12px;
}

.article-content blockquote img {
    margin: 0;
}

.footer {
    background-color: var(--primary);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer .legal-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}
