/* SGC Canil Frontend Styles */

.sgc-container {
    margin: 20px 0;
}

/* Grid de Filhotes */
.sgc-filhotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    --col: 3;
}

@media (max-width: 768px) {
    .sgc-filhotes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

/* Card do Filhote */
.sgc-filhote-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sgc-filhote-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #667eea;
}

.sgc-filhote-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.sgc-filhote-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgc-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

/* Badge de Status */
.sgc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #28a745;
    color: white;
}

.sgc-badge-vendido {
    background: #dc3545;
}

/* Info do Filhote */
.sgc-filhote-info {
    padding: 15px;
}

.sgc-filhote-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.sgc-info-item {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

.sgc-info-item strong {
    color: #333;
}

/* Grid de Animais */
.sgc-animais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Card de Animal */
.sgc-animal-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sgc-animal-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.sgc-animal-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.sgc-animal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgc-animal-info {
    padding: 15px;
}

.sgc-animal-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Calendário */
.sgc-calendario {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.sgc-resumo {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sgc-resumo h3 {
    margin: 0 0 15px 0;
}

.sgc-resumo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.sgc-resumo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.sgc-resumo-valor {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sgc-resumo-label {
    font-size: 13px;
    opacity: 0.9;
}

.sgc-timeline {
    padding: 20px;
}

.sgc-timeline h3 {
    margin: 0 0 15px 0;
}

.sgc-lista-calendario {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sgc-evento-calendario {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-left: 4px solid #667eea;
    background: #f9f9f9;
    border-radius: 4px;
}

.sgc-data-evento {
    font-weight: bold;
    color: #667eea;
    min-width: 100px;
}

.sgc-info-evento p {
    margin: 5px 0;
    font-size: 14px;
}

.sgc-info-evento p:first-child {
    color: #333;
    font-weight: bold;
}

/* Alertas */
.sgc-alert {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.sgc-alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.sgc-info-vazia {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Responsivo */
@media (max-width: 768px) {
    .sgc-filhote-card,
    .sgc-animal-card {
        margin-bottom: 15px;
    }
    
    .sgc-resumo-cards {
        grid-template-columns: 1fr;
    }
}
