/*
Theme Name: Card Store Blog
Theme URI: https://cardstore.com.br
Author: Card Store
Author URI: https://cardstore.com.br
Description: Tema oficial do Blog da Card Store baseado no protótipo original.
Version: 1.0.0
Text Domain: cardstore
*/

:root {
    --cs-blue: #0064E0;
    --cs-orange: #e9842c;
    --cs-dark: #18181D;
    --cs-light-bg: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--cs-light-bg);
    color: #333;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: 'Nunito Sans', sans-serif;
    text-transform: uppercase;
}

/* Topbar & Navbar */
.topbar {
    background-color: var(--cs-dark);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.topbar a:hover {
    color: var(--cs-blue);
}

.navbar {
    background-color: var(--cs-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 60px;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
}

.nav-link {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active, .current-menu-item > a, .current-post-ancestor > a {
    color: #ffd700 !important;
}

.btn-store {
    background-color: var(--cs-orange);
    color: #fff;
    font-weight: 800;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
}

.btn-store:hover {
    background-color: #d17524;
    color: #fff;
}

/* Search Bar */
.search-box {
    position: relative;
}
.search-box input {
    border-radius: 20px;
    padding-right: 35px;
    border: 1px solid #ddd;
}
.search-box .fa-search {
    position: absolute;
    right: 12px;
    top: 10px;
    color: var(--cs-blue);
}

/* Cards & Content */
.blog-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: cover;
    height: 200px;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--cs-blue);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 3px;
    text-transform: uppercase;
}

.card-title {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--cs-dark);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--cs-blue);
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cs-dark);
    border-bottom: 2px solid var(--cs-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget-tool {
    background-color: #eff7ff;
    border: 1px dashed var(--cs-blue);
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.widget-tool:hover {
    background-color: var(--cs-blue);
    color: #fff;
}

.widget-tool i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--cs-orange);
}

/* Single Post Styling */
.post-header h1 {
    font-weight: 900;
    color: var(--cs-dark);
    font-size: 2.2rem;
    line-height: 1.3;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.post-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2, .post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--cs-dark);
    font-weight: 800;
}

/* Contextual Product Widget (SEO Strategy) */
.product-widget {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    background: #fafafa;
}

.product-widget img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #ddd;
}

.product-widget-info {
    flex-grow: 1;
    padding-left: 20px;
}

.product-widget-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cs-blue);
}

.pix-discount {
    color: #2ab200;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--cs-dark);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

footer h5 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
    display: inline-block;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--cs-blue);
}

/* Breadcrumb overrides */
.breadcrumb-item a {
    color: var(--cs-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Pagination overrides */
.pagination .page-link {
    color: var(--cs-blue);
}
.pagination .page-item.active .page-link {
    background-color: var(--cs-blue);
    border-color: var(--cs-blue);
    color: #fff;
}

/* Modal Nav Pills Styling */
#guiaTabs .nav-link {
    background-color: #e9ecef;
    color: #495057 !important;
    border-radius: 6px;
    margin: 0 4px;
    transition: all 0.2s ease-in-out;
}

#guiaTabs .nav-link:hover {
    background-color: #dee2e6;
    color: var(--cs-blue) !important;
}

#guiaTabs .nav-link.active {
    background-color: var(--cs-blue) !important;
    color: #fff !important;
}
