/**
 * Estilos para Widgets Elementor - CliquePet
 * 
 * @package CliquePet
 */

/* Wrapper de Campo */
.cliquepet-field-wrapper {
    margin: 20px 0;
}

.cliquepet-field-label {
    font-weight: 600;
    margin-bottom: 10px;
}

.cliquepet-field-value {
    line-height: 1.6;
}

.cliquepet-field-value a {
    color: #2271b1;
    text-decoration: none;
}

.cliquepet-field-value a:hover {
    text-decoration: underline;
}

/* Galeria de Imagens */
.cliquepet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.cliquepet-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.cliquepet-gallery img:hover {
    transform: scale(1.05);
}

/* Campos de Pet no Elementor */
.elementor-widget-cliquepet_pet_field .cliquepet-field-wrapper {
    width: 100%;
}

.elementor-widget-cliquepet_pet_list .cliquepet-pets-grid {
    display: grid;
}

/* Estilo do Card de Pet */
.cliquepet-pet-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cliquepet-pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cliquepet-pet-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.cliquepet-pet-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cliquepet-pet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cliquepet-pet-card:hover .cliquepet-pet-image img {
    transform: scale(1.1);
}

.cliquepet-pet-content {
    padding: 0 20px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cliquepet-pet-title {
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0 12px 0;
    color: #333;
    line-height: 1.3;
}

.cliquepet-pet-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.cliquepet-pet-meta .cliquepet-separator {
    color: #999;
    font-weight: 300;
}

.cliquepet-pet-content .cliquepet-button {
    margin-top: auto;
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s;
}

.cliquepet-pet-content .cliquepet-button:hover {
    background: #135e96;
}

/* Paginação */
.cliquepet-pagination {
    margin: 40px 0;
    text-align: center;
}

.cliquepet-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.cliquepet-pagination .page-numbers:hover,
.cliquepet-pagination .page-numbers.current {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Widget de Filtros */
.cliquepet-filters-wrapper {
    width: 100%;
    margin: 20px 0;
}

.cliquepet-filters-form {
    width: 100%;
}

.cliquepet-filters-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

/* Layout Horizontal */
.cliquepet-filters-horizontal .cliquepet-filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Layout Vertical */
.cliquepet-filters-vertical .cliquepet-filters-grid {
    grid-template-columns: 1fr;
}

.cliquepet-filter-item {
    display: flex;
    flex-direction: column;
}

.cliquepet-filter-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.cliquepet-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.cliquepet-filter-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cliquepet-filters-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cliquepet-filter-button {
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cliquepet-filter-button:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cliquepet-reset-filters {
    background: #e0e0e0;
    color: #333;
}

.cliquepet-reset-filters:hover {
    background: #bdbdbd;
}

/* Widget de Galeria / Carrossel */
.cliquepet-gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.cliquepet-gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
}

.cliquepet-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.cliquepet-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.cliquepet-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    color: #333;
}

.cliquepet-gallery-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.1);
}

.cliquepet-gallery-prev {
    left: 20px;
}

.cliquepet-gallery-next {
    right: 20px;
}

.cliquepet-gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.cliquepet-gallery-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.cliquepet-gallery-dots .dot.active,
.cliquepet-gallery-dots .dot:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.cliquepet-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.cliquepet-gallery-thumb {
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
}

.cliquepet-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cliquepet-gallery-thumb:hover {
    transform: scale(1.05);
}

.cliquepet-gallery-thumb.active {
    border-color: #2271b1;
}

/* Widget de Botão do Painel do Usuário */
.cliquepet-panel-button-wrapper {
    display: inline-block;
}

.cliquepet-panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.cliquepet-panel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cliquepet-panel-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cliquepet-panel-button.icon-left svg {
    margin-right: 8px;
}

.cliquepet-panel-button.icon-right svg {
    margin-left: 8px;
}

.cliquepet-panel-button.icon-right {
    flex-direction: row-reverse;
}

/* Responsivo para widgets */
@media (max-width: 768px) {
    .cliquepet-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .cliquepet-gallery-main {
        height: 400px;
    }
    
    .cliquepet-gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .cliquepet-gallery-prev {
        left: 10px;
    }
    
    .cliquepet-gallery-next {
        right: 10px;
    }
    
    .cliquepet-gallery-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .cliquepet-gallery-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .cliquepet-gallery-main {
        height: 300px;
    }
    
    .cliquepet-gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .cliquepet-gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .cliquepet-gallery-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .cliquepet-gallery-dots .dot {
        width: 8px;
        height: 8px;
    }
}
