/* Estilos para o frontend do plugin AMAMA Encomendas */

.amama-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.amama-encomenda-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amama-encomenda-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.amama-encomenda-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.amama-encomenda-info .info-item {
    display: flex;
    flex-direction: column;
}

.amama-encomenda-info .info-label {
    font-weight: bold;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.amama-encomenda-info .info-value {
    color: #333;
    font-size: 1em;
}

.amama-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.amama-status.recebida {
    background: #e3f2fd;
    color: #1976d2;
}

.amama-status.aguardando_retirada {
    background: #fff3e0;
    color: #f57c00;
}

.amama-status.retirada {
    background: #e8f5e8;
    color: #388e3c;
}

.amama-status.devolvida {
    background: #ffebee;
    color: #d32f2f;
}

.amama-galeria {
    margin-top: 20px;
}

.amama-galeria h4 {
    margin-bottom: 15px;
    color: #333;
}

.amama-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.amama-galeria-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.amama-galeria-item:hover {
    transform: scale(1.05);
}

.amama-galeria-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.amama-galeria-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.amama-galeria-item:hover .overlay {
    opacity: 1;
}

.amama-search-form {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.amama-search-form h3 {
    margin-top: 0;
    color: #333;
}

.amama-search-form .form-group {
    margin-bottom: 15px;
}

.amama-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.amama-search-form input,
.amama-search-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.amama-search-form button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.amama-search-form button:hover {
    background: #005a87;
}

.amama-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.amama-no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

.amama-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.amama-pagination a,
.amama-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.amama-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.amama-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsividade */
@media (max-width: 768px) {
    .amama-encomenda-info {
        grid-template-columns: 1fr;
    }
    
    .amama-galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .amama-search-form {
        padding: 15px;
    }
}
