/*
Theme Name: BB Racing
Theme URI: https://agilstore.pt
Description: Tema premium de alta performance para entusiastas de automobilismo. Totalmente refatorado com Tailwind CSS.
Version: 1.1
Author: Agilstore
Author URI: https://agilstore.pt
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bb-racing
*/

/* WordPress Core Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Custom Overrides for WordPress Native Pagination */
.archive-pagination .nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.archive-pagination .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #FACC15;
    color: #010A18;
    border-color: #FACC15;
}

/* Custom Lists Styling for Content and Editor */
.servico-card-content ul,
.ql-editor ul {
    list-style-type: square !important;
    padding-left: 1.5rem !important;
}

.servico-card-content ul li::marker,
.ql-editor ul li::marker {
    color: #FACC15;
}

.servico-card-content ul li,
.ql-editor ul li {
    padding-left: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Product Brands Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-tag {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    color: #FACC15;
    padding: 4px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.product-tag:hover {
    background: #FACC15;
    color: #010A18;
}

/* Ver Mais Button */
.btn-show-more-tags {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #D1C6AB;
    padding: 6px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-show-more-tags:hover {
    border-color: #FACC15;
    color: #FACC15;
    background: rgba(250, 204, 21, 0.05);
}

.btn-show-more-tags .material-symbols-outlined {
    font-size: 18px;
}

/* Tags Modal */
.tags-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 10, 24, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tags-modal.active {
    opacity: 1;
    visibility: visible;
}

.tags-modal-container {
    background: #0D1C2D;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tags-modal.active .tags-modal-container {
    transform: translateY(0);
}

.tags-modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.tags-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.tags-modal-close:hover {
    color: #FACC15;
    transform: rotate(90deg);
}

.tags-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.tags-search-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.tags-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.tags-search-input:focus {
    outline: none;
    border-color: #FACC15;
    background: rgba(250, 204, 21, 0.02);
}

.tags-modal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-modal-list .product-tag {
    font-size: 14px;
    padding: 6px 16px;
}

.no-tags-found {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    padding: 40px;
    width: 100%;
    display: none;
}

/* Prevent scroll when modal is open */
body.modal-open {
    overflow: hidden;
}