/*
Theme Name: Alpha Futevolei
Theme URI: https://alphafutevolei.com/
Author: Alpha Futevolei Team
Author URI: https://alphafutevolei.com/
Description: A custom WordPress theme for Alpha Futevolei website.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alpha-futevolei
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, futevôlei, sports

Alpha Futevolei WordPress Theme, (C) 2025 Alpha Futevolei Team
Alpha Futevolei is distributed under the terms of the GNU GPL.
*/

/* This file is mainly for WordPress theme identification.
   All custom styling is in the /assets/css/custom.css file */

/* Basic styles for WordPress core features */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}


.fixed-top {
    position: fixed;
    top: 43px!important;
    right: 0;
    left: 0;
    z-index: 1030;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
    font-style: italic;
    font-size: 0.9em;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}

/* Other basic styles may be added below as needed */

/* Base styles for the theme */
:root {
    --primary-color: #FF6B00;
    --secondary-color: #F9B208;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --text-color: #333333;
    --white-color: #FFFFFF;
    --gray-color: #95A5A6;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Header styles */

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.site-description {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--gray-color);
}

/* Navigation */
.main-navigation {
    background-color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--white-color);
}

.main-navigation a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Content */
.site-content {
    padding: 2rem 0;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
}

.entry-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Sidebar */
.widget-area {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 0rem;
}

.site-info {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Media queries */
@media screen and (max-width: 767px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
}

/* Media query para ajustar o padding em dispositivos com largura de laptop */
@media screen and (min-width: 992px) and (max-width: 1459px) {
    .container,
    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg {
        padding-left: 200px !important;
        padding-right: 200px !important;
    }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    background: var(--secondary-color);
    color: var(--dark-color);
    cursor: pointer;
    border: none;
    border-radius: 50%;
    display: none;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* Estilos para as páginas de torneios */

/* Página de arquivo de torneios */
.tournament-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tournament-card:hover .card-img-top-wrapper img {
    transform: scale(1.05);
}

/* Página de torneio individual */
.tournament-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    margin-bottom: 30px;
}

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

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

.tournament-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.info-item {
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.info-text h5 {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.info-text p {
    margin-bottom: 0;
}

.tournament-item {
    transition: background-color 0.2s ease;
}

.tournament-item:hover {
    background-color: #f8f9fa;
}

.tournament-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.share-buttons .btn {
    flex: 1;
    margin: 0 5px;
}

.share-buttons .btn:first-child {
    margin-left: 0;
}

.share-buttons .btn:last-child {
    margin-right: 0;
}

@media (max-width: 576px) {
    .tournament-title {
        font-size: 2rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons .btn {
        margin: 5px 0;
    }
}

/* Price Slider Aprimorado */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: #e5e5e5 !important;
    height: 6px !important;
    border-radius: 10px !important;
    margin: 25px 0 !important;
    width: 100% !important;
    position: relative !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--primary-color) !important;
    height: 6px !important;
    position: absolute !important;
    z-index: 1 !important;
}

/* Melhorando os handles do slider para facilitar o arrastar */
.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #fff !important;
    width: 18px !important;
    height: 18px !important;
    top: -6px !important;
    margin-left: -9px !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15) !important;
    cursor: grab !important;
    position: absolute !important;
    z-index: 2 !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.1s ease !important;
}

/* Efeito ao arrastar os handles */
.widget_price_filter .ui-slider .ui-slider-handle:active {
    cursor: grabbing !important;
    transform: scale(1.1) !important;
    border-color: var(--primary-color) !important;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.3) !important;
}

/* Melhor organização e espaço dos elementos do filtro */
.widget_price_filter .price_slider_amount {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: 20px !important;
}

/* Estilização do texto de valor do preço */
.widget_price_filter .price_label {
    order: 1 !important;
    margin-bottom: 15px !important;
    color: #666 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    width: 100% !important;
    text-align: center !important;
}

/* Estilização do botão de filtro de preço */
.widget_price_filter button.button {
    order: 2 !important;
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px 15px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.widget_price_filter button.button:hover {
    background-color: #e55900 !important;
    transform: translateY(-2px) !important;
}

/* Estilos para versão mobile do price slider */
@media (max-width: 767px) {
    .widget_price_filter button.button {
        display: none !important;
    }
    
    .mobile-price-hint {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        color: #777 !important;
        margin-top: 8px !important;
    }
    
    .widget_price_filter .price_label {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }
    
    /* Tornar os handles mais fáceis de tocar em dispositivos móveis */
    .widget_price_filter .ui-slider .ui-slider-handle {
        width: 22px !important;
        height: 22px !important;
        top: -9px !important;
        margin-left: -11px !important;
    }
}

/* Correção para a galeria de imagens do produto para WooCommerce */

/* Forçando o display flex para as miniaturas da galeria de produtos */
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs,
.woocommerce-page div.product div.images .flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 15px !important;
    list-style: none !important;
    padding-left: 0 !important;
}

/* Removendo completamente os marcadores da lista */
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li,
.woocommerce-page div.product div.images .flex-control-nav.flex-control-thumbs li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Seletor super específico para garantir que o ::marker seja removido */
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li::marker,
.woocommerce-page div.product div.images .flex-control-nav.flex-control-thumbs li::marker {
    display: none !important;
    content: "" !important;
    font-size: 0 !important;
}

/* Estilo adicional para garantir que os itens da lista se comportem corretamente */
.woocommerce div.product div.images .flex-control-nav.flex-control-thumbs li,
.woocommerce-page div.product div.images .flex-control-nav.flex-control-thumbs li {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: 0 0 80px !important;
}
