/**
 * Estilos do Frontend - CliquePet
 * 
 * @package CliquePet
 */

/* ========================================
   Filtros de Pets
======================================== */

.cliquepet-filters-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.cliquepet-filters-form {
    width: 100%;
}

.cliquepet-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.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: 5px;
    color: #333;
    font-size: 14px;
}

.cliquepet-filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.cliquepet-filter-select:hover {
    border-color: #999;
}

.cliquepet-filter-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.cliquepet-filters-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cliquepet-filter-submit,
.cliquepet-filter-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cliquepet-filter-submit {
    background: #007cba;
    color: white;
}

.cliquepet-filter-submit:hover {
    background: #005a87;
}

.cliquepet-filter-reset {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.cliquepet-filter-reset:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Responsivo - Filtros */
@media (max-width: 768px) {
    .cliquepet-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .cliquepet-filters-wrapper {
        padding: 15px;
    }
}

/* ========================================
   Botão de Adoção
======================================== */
.cliquepet-adoption-button-wrapper {
    margin: 30px 0;
}

.cliquepet-adoption-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.cliquepet-adoption-button:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Avisos de Adoção */
.cliquepet-adoption-notice {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: 600;
}

.cliquepet-adoption-notice.adopted {
    background: #d1ecf1;
    border: 2px solid #bee5eb;
    color: #0c5460;
}

.cliquepet-adoption-notice.login-required {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
}

.cliquepet-adoption-notice.status-pending,
.cliquepet-adoption-notice.status-analyzing {
    background: #cce5ff;
    border: 2px solid #b8daff;
    color: #004085;
}

.cliquepet-adoption-notice.status-approved {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.cliquepet-adoption-notice.status-rejected {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

/* Modal de Adoção */
.cliquepet-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.cliquepet-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cliquepet-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.cliquepet-modal-close:hover,
.cliquepet-modal-close:focus {
    color: #000;
}

/* Formulários */
.cliquepet-form {
    margin: 30px 0;
}

.cliquepet-form-section {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.cliquepet-form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    color: #2271b1;
}

.cliquepet-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cliquepet-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cliquepet-form-field label {
    font-weight: 600;
    color: #333;
}

.cliquepet-form-field input[type="text"],
.cliquepet-form-field input[type="email"],
.cliquepet-form-field input[type="tel"],
.cliquepet-form-field input[type="number"],
.cliquepet-form-field select,
.cliquepet-form-field textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.cliquepet-form-field input:focus,
.cliquepet-form-field select:focus,
.cliquepet-form-field textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.cliquepet-form-actions {
    margin-top: 30px;
    text-align: center;
}

.cliquepet-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.cliquepet-button:hover {
    background: #135e96;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.cliquepet-button-primary {
    background: #2271b1;
}

.cliquepet-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.cliquepet-button-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.cliquepet-button-text {
    background: transparent;
    color: #666;
    padding: 12px 20px;
}

.cliquepet-button-text:hover {
    background: #f5f5f5;
    color: #333;
    transform: none;
}

.cliquepet-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cliquepet-form-response {
    margin-top: 20px;
}

.cliquepet-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 10px 0;
}

.cliquepet-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cliquepet-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Listagem de Pets */
.cliquepet-pets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.cliquepet-columns-1 { grid-template-columns: repeat(1, 1fr); }
.cliquepet-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cliquepet-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cliquepet-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cliquepet-columns-5 { grid-template-columns: repeat(5, 1fr); }
.cliquepet-columns-6 { grid-template-columns: repeat(6, 1fr); }

.cliquepet-pet-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cliquepet-pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cliquepet-pet-image {
    overflow: hidden;
    position: relative;
}

.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.05);
}

.cliquepet-pet-content {
    padding: 20px;
}

.cliquepet-pet-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.cliquepet-pet-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.cliquepet-pet-title a:hover {
    color: #2271b1;
}

.cliquepet-pet-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Painel do Usuário */
.cliquepet-user-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 60px auto;
    max-width: 1200px;
}

.cliquepet-user-panel-header h2 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
}

.cliquepet-user-panel-navigation ul {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.cliquepet-user-panel-navigation li {
    margin: 0;
}

.cliquepet-user-panel-navigation li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.cliquepet-user-panel-navigation li a:hover,
.cliquepet-user-panel-navigation li.active a {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.cliquepet-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cliquepet-stat-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e5e5e5;
}

.cliquepet-stat-card h3 {
    font-size: 36px;
    margin: 0 0 5px 0;
    color: #2271b1;
}

.cliquepet-stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cliquepet-adoptions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cliquepet-adoptions-table th,
.cliquepet-adoptions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.cliquepet-adoptions-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.cliquepet-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.cliquepet-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.cliquepet-status-badge.status-analyzing {
    background: #cce5ff;
    color: #004085;
}

.cliquepet-status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.cliquepet-status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   Formulário de Adoção
======================================== */

.cliquepet-adoption-form-wrapper {
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}

/* Wizard Progress */
.cliquepet-wizard-progress {
    margin-bottom: 30px;
}

.cliquepet-wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.cliquepet-wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.cliquepet-wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cliquepet-wizard-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
}

.cliquepet-wizard-step .step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cliquepet-wizard-step.completed .step-number {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.cliquepet-wizard-step.completed .step-number::after {
    content: '✓';
    font-size: 18px;
}

.cliquepet-wizard-step.active .step-number {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.cliquepet-wizard-step.active .step-label {
    color: #2271b1;
    font-weight: 600;
}

.cliquepet-wizard-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.cliquepet-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #1e5a8a);
    transition: width 0.4s ease;
    border-radius: 3px;
}

.cliquepet-adoption-form .cliquepet-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.cliquepet-adoption-form .cliquepet-form-section:last-of-type {
    border-bottom: none;
}

.cliquepet-adoption-form .cliquepet-form-section h3 {
    color: #2271b1;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.cliquepet-form-row {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.cliquepet-form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.cliquepet-form-group {
    display: flex;
    flex-direction: column;
}

.cliquepet-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.cliquepet-form-group label .required {
    color: #d63638;
    margin-left: 3px;
}

.cliquepet-form-group input[type="text"],
.cliquepet-form-group input[type="email"],
.cliquepet-form-group input[type="number"],
.cliquepet-form-group select,
.cliquepet-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.cliquepet-form-group input:focus,
.cliquepet-form-group select:focus,
.cliquepet-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cliquepet-form-group input.error-highlight,
.cliquepet-form-group select.error-highlight,
.cliquepet-form-group textarea.error-highlight {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

.cliquepet-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.cliquepet-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.cliquepet-wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.cliquepet-wizard-prev {
    margin-right: auto;
}

.cliquepet-form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.cliquepet-form-response.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cliquepet-form-response.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .cliquepet-adoption-form-wrapper {
        padding: 20px 15px;
        max-height: 90vh;
    }
    
    .cliquepet-modal-content {
        width: 95%;
        margin: 3% auto;
        padding: 20px 15px;
    }
    
    .cliquepet-form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .cliquepet-form-actions {
        flex-direction: column;
    }
    
    .cliquepet-wizard-navigation {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cliquepet-wizard-navigation .cliquepet-button {
        flex: 1;
        min-width: auto;
    }
    
    .cliquepet-wizard-prev {
        order: 1;
    }
    
    .cliquepet-modal-close {
        order: 2;
    }
    
    .cliquepet-wizard-next,
    .cliquepet-wizard-submit {
        order: 3;
    }
    
    .cliquepet-wizard-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .cliquepet-wizard-step {
        min-width: 80px;
    }
    
    .cliquepet-wizard-step .step-label {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .cliquepet-wizard-step .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .cliquepet-pets-grid {
        grid-template-columns: 1fr;
    }
    
    .cliquepet-form-row {
        grid-template-columns: 1fr;
    }
    
    .cliquepet-user-panel {
        padding: 25px 20px;
        margin: 30px auto;
    }
    
    .cliquepet-user-panel-navigation ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .cliquepet-user-panel-navigation li a {
        padding: 10px 15px;
    }
    
    .cliquepet-dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cliquepet-form-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cliquepet-user-panel {
        padding: 20px 15px;
        margin: 20px auto;
        border-radius: 4px;
    }
    
    .cliquepet-user-panel-header h2 {
        font-size: 20px;
    }
    
    .cliquepet-user-panel-navigation li a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .cliquepet-stat-card {
        padding: 15px;
    }
    
    .cliquepet-stat-card h3 {
        font-size: 28px;
    }
    
    .cliquepet-adoption-form-wrapper {
        padding: 15px 10px;
    }
    
    .cliquepet-modal-content h2 {
        font-size: 20px;
    }
    
    .cliquepet-wizard-step .step-label {
        display: none;
    }
    
    .cliquepet-wizard-step {
        min-width: 50px;
    }
    
    .cliquepet-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .cliquepet-form-group label {
        font-size: 13px;
    }
    
    .cliquepet-form-group input,
    .cliquepet-form-group select,
    .cliquepet-form-group textarea {
        font-size: 14px;
        padding: 8px 10px;
    }
}
